Hello Jammy, On 1 June 2015 at 03:12, Zhou, Jammy <Jammy.Zhou at amd.com> wrote: >> Jammy or Frank might be able to provide some pseudo code in the interim. > > I think the requirement here is quite simple. We would like to have some > interface to enumerate the GPU devices on the system, and select some > specific device for different purposes (i.e, rendering, computing, > displaying, etc). Current libdrm interfaces are just for single device, and > there is no good consideration for multiple GPUs yet. > I believe I've read the same quote earlier, although still explains the goal, rather than the requirements :'-( Can you elaborate on what exactly the interface should provide - I can think of the following: - Number of devices. - ^^ + masked by vendor id/module name. This one seem like an overkill imho.. - Flags indicating if the device has primary/control/render node. - Location (bus info) for the device(s) - PCI/platform device information.
Does the above cover all the things that you have planned for the interface to provide ? Thanks Emil