Finding the available hardware

Jon Smirl jonsmirl at gmail.com
Fri Apr 29 15:19:26 PDT 2005


What is the process for finding the available hardware. I would like
to make egl work without config files for standard setups. I would
also like to fix things so that the server can run without being root.

Via hotplug support the Linux kernel can be made to automatically load
the DRM drivers for all of the video hardware it recognizes. Loading
these drivers will automatically create /dev/drm/card0 for each card
found.  PAM can be used to assign ownership of the DRM devices to a
group normal users can get to.

The user space app can then walk through all of the cardX devices and
see which ones it can open. If it can open the device IOCTL it to find
out which driver it needs, now it knows which user space drivers to
load.

This works for everything except the radeon/r200 case. Are we anywhere
close to merging radeon support into the r200 driver so that a single
DLL supports radeon?

If not I could clone radeonfb and split the radeon and r200+ PCI IDs.
This may require cloning the radeon DRM driver too. Merging
radeon_dri.so and r200_dri.so would be a much cleaner solution.


-- 
Jon Smirl
jonsmirl at gmail.com


More information about the dri-egl mailing list