xserver/hw
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
..
dmx Update URL's in man pages 2020-08-18 04:12:08 +00:00
kdrive Add ddxInputThread call from os layer into ddx layer 2020-01-13 22:25:39 +00:00
vfb Add ddxInputThread call from os layer into ddx layer 2020-01-13 22:25:39 +00:00
xfree86 linux: Make platform device probe less fragile 2020-08-18 17:20:09 +00:00
xnest Add ddxInputThread call from os layer into ddx layer 2020-01-13 22:25:39 +00:00
xquartz Update URL's in man pages 2020-08-18 04:12:08 +00:00
xwayland xwayland: Handle NULL xwl_seat in xwl_seat_can_emulate_pointer_warp 2020-08-18 04:12:09 +00:00
xwin Add ddxInputThread call from os layer into ddx layer 2020-01-13 22:25:39 +00:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build meson: Move Xvfb build under an option. 2017-09-20 13:19:21 -04:00