xserver/hw/xfree86/os-support
Adam Jackson 74b7427c41 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.

(backported from commit 0816e8fca6)

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
2020-08-18 17:20:09 +00:00
..
bsd Fix old-style definition warning for xf86OSInputThreadInit() 2020-03-22 15:34:32 -07:00
bus xfree86: Move DRICreatePCIBusID to xf86Pci.h 2017-06-22 10:53:08 -04:00
hurd Fix old-style definition warning for xf86OSInputThreadInit() 2020-03-22 15:34:32 -07:00
linux linux: Make platform device probe less fragile 2020-08-18 17:20:09 +00:00
misc Replace all checks for 'linux' macro with '__linux__' 2017-05-11 15:24:05 -04:00
shared xfree86: Test presence of isastream() 2019-11-22 15:24:27 -05:00
solaris Fix old-style definition warning for xf86OSInputThreadInit() 2020-03-22 15:34:32 -07:00
stub Fix old-style definition warning for xf86OSInputThreadInit() 2020-03-22 15:34:32 -07:00
Makefile.am xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
meson.build xfree86: Inline xf86{Read,Write}Mmio{8,16,32} on alpha 2018-08-01 15:27:21 -04:00
xf86OSpriv.h xfree86: Remove xf86LinearVidMem 2014-09-16 11:58:53 -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 Add xf86OSInputThreadInit call from common layer into os-support layer 2020-01-13 22:25:39 +00:00