libdrm and platform devices?
Hi All,
I have a drm device on the platform bus, similar to the exynos driver. right now libdrm (at least the tests included in libdrm) refuses to open the device because i915, nouveau, radeon and vmwgfx is all they know about. Looking at the libdrm code it is not obvious how to fix this (except for adding "exynos", "mydevice", "myotherdevice" to the module table which seems awkward and not very futureproof). Any hints or thoughts how to proceed here?
Thanks
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 8 lines
I have a drm device on the platform bus, similar to the exynos driver. right now libdrm (at least the tests included in libdrm) refuses to open the device because i915, nouveau, radeon and vmwgfx is all they know about. Looking at the libdrm code it is not obvious how to fix this (except for adding "exynos", "mydevice", "myotherdevice" to the module table which seems awkward and not very futureproof). Any hints or thoughts how to proceed here?
libdrm tests aren't really used that much, and it might be easier to just not care.
people just hack on them for their platforms and sometimes someone pushes one in.
You more likely want specific tests for your platform like intel-gpu-tools.
Dave.
Quoted 14 lines
Thanks
Sascha--
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Dave Airlie
Quoted 8 lines
I have a drm device on the platform bus, similar to the exynos driver. right now libdrm (at least the tests included in libdrm) refuses to open the device because i915, nouveau, radeon and vmwgfx is all they know about. Looking at the libdrm code it is not obvious how to fix this (except for adding "exynos", "mydevice", "myotherdevice" to the module table which seems awkward and not very futureproof). Any hints or thoughts how to proceed here?
Quoted 5 lines
libdrm tests aren't really used that much, and it might be easier to just not care.
people just hack on them for their platforms and sometimes someone pushes one in.
Ok, I can keep a local hack. What are your plans for the xf86-modesetting driver? It works nicely after I commented out some pci specific things and replaced drmOpen(NULL, BusID) with open("/dev/dri/card0", O_RDWR). Do you plan to continue on the driver and would accept patches for it?
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 13 lines · Sascha Hauer
Quoted 12 lines · Dave Airlie
Quoted 8 lines
I have a drm device on the platform bus, similar to the exynos driver. right now libdrm (at least the tests included in libdrm) refuses to open the device because i915, nouveau, radeon and vmwgfx is all they know about. Looking at the libdrm code it is not obvious how to fix this (except for adding "exynos", "mydevice", "myotherdevice" to the module table which seems awkward and not very futureproof). Any hints or thoughts how to proceed here?
libdrm tests aren't really used that much, and it might be easier to just not care.
Quoted 8 lines
Quoted 2 lines
people just hack on them for their platforms and sometimes someone pushes one in.
Ok, I can keep a local hack. What are your plans for the xf86-modesetting driver? It works nicely after I commented out some pci specific things and replaced
drmOpen(NULL, BusID)withopen("/dev/dri/card0", O_RDWR). Do you plan to continue on the driver and would accept patches for it?
might be why I added busid to the usb, my memory of why is hazy.
you should have been able to specify /dev/dri/card0 in the xorg.conf Option "kmsdev"
and yes I'll continue working on it, I have to hook it in as a linux fallback driver in the X server.
Dave.