xserver/hw/xfree86/os-support/linux
Bryce Harrington 70739e817b xfree86: Fix race condition failure opening drm.
If other processes have had drm open previously, xserver may attempt to
open the device too early and fail, with xserver error exit "Cannot
run in framebuffer mode" or Xorg.0.log messages about "setversion 1.4
failed".

In this situation, we're receiving back -EACCES from libdrm.  To address
this we need to re-set ourselves as the drm master, and keep trying to
set the interface until it works (or until we give up).

See https://bugs.launchpad.net/ubuntu/+source/libdrm/+bug/982889

Signed-off-by: Bryce Harrington <bryce@canonical.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-04-08 09:13:12 -07:00
..
int10 api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
Makefile.am xfree86: use udev to provide device enumeration for kms devices (v10) 2012-07-06 10:20:19 +01:00
lnx_acpi.c xfree86: bail on misformed acpi strings (#73227) 2013-02-08 13:47:23 +10:00
lnx_agp.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_apm.c Fix up formatting of initializers for arrays of structs 2012-08-06 15:22:53 -07:00
lnx_axp.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_bell.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_ev56.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_init.c linux: Prefer ioctl(KDSKBMUTE, 1) over ioctl(KDSKBMODE, K_OFF) 2012-11-19 12:13:39 +10:00
lnx_kmod.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_platform.c xfree86: Fix race condition failure opening drm. 2013-04-08 09:13:12 -07:00
lnx_video.c linux: Make failure to iopl non-fatal 2012-09-20 11:07:27 -04:00