xserver-multidpi/hw/xfree86/os-support
Adam Jackson 0816e8fca6 linux: Make platform device probe less fragile
At the point where xf86BusProbe runs we haven't yet taken our own VT,
which means we can't perform drm "master" operations on the device. This
is tragic, because we need master to fish the bus id string out of the
kernel, which we can only do after drmSetInterfaceVersion, which for
some reason stores that string on the device not the file handle and
thus needs master access.

Fortunately we know the format of the busid string, and it happens to
almost be the same as the ID_PATH variable from udev. Use that instead
and stop calling drmSetInterfaceVersion.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-10-18 13:52:11 -04:00
..
bsd meson, automake: Drop unused USESTDRES cflag setup. 2018-08-09 13:28:10 -04:00
bus xfree86: Move DRICreatePCIBusID to xf86Pci.h 2017-06-22 10:53:08 -04:00
hurd meson, automake: Drop unused USESTDRES cflag setup. 2018-08-09 13:28:10 -04:00
linux linux: Make platform device probe less fragile 2018-10-18 13:52:11 -04:00
misc Replace all checks for 'linux' macro with '__linux__' 2017-05-11 15:24:05 -04:00
shared posix_tty: free leak of xf86SetStrOption return value. 2018-09-12 12:26:48 +10:00
solaris meson, automake: Drop unused USESTDRES cflag setup. 2018-08-09 13:28:10 -04:00
stub xfree86: Remove xf86ReadBIOS 2014-09-16 11:58:53 -04:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Makefile.am xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07:00
meson.build meson: Add linking to x86 iopl libs on BSDs. 2018-08-09 13:28:21 -04:00
xf86_OSlib.h os, xfree86: Stop being so weird about <limits.h> 2017-05-12 09:49:07 -04:00
xf86_OSproc.h dix: Merge AbortDDX into ddxGiveUp 2018-09-28 16:25:12 -04:00
xf86OSpriv.h xfree86: Remove xf86LinearVidMem 2014-09-16 11:58:53 -04:00