xserver/hw/xfree86/os-support/linux
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
..
int10 xfree86: Remove xf86InterceptSignals 2017-12-13 11:11:38 -05:00
Makefile.am xfree86: Inline xf86{Read,Write}Mmio{8,16,32} on alpha 2018-08-01 15:27:21 -04:00
linux.h linux: Add a may_fail paramter to linux_parse_vt_settings 2015-06-03 11:31:41 +02:00
lnx_acpi.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
lnx_agp.c Replace all checks for 'linux' macro with '__linux__' 2017-05-11 15:24:05 -04:00
lnx_apm.c Use ARRAY_SIZE all over the tree 2017-10-30 13:45:20 -04:00
lnx_bell.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_ev56.c xfree86: Remove MMIO_ONB* and friends 2014-07-28 12:19:01 -07:00
lnx_init.c Fix old-style definition warning for xf86OSInputThreadInit() 2020-03-22 15:34:32 -07:00
lnx_kmod.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
lnx_platform.c linux: Make platform device probe less fragile 2020-08-18 17:20:09 +00:00
lnx_video.c xfree86: Inline xf86{Read,Write}Mmio{8,16,32} on alpha 2018-08-01 15:27:21 -04:00
systemd-logind.c systemd-logind.c: don't parse VT settings for non-seat0 X servers 2015-12-08 11:54:11 -05:00