[Intel-gfx] [PATCH 8/8] xfree86: Also handle EAGAIN errors from drmSetInterfaceVersion().
Bryce Harrington
bryce at canonical.com
Fri Mar 15 19:02:58 CET 2013
It has been suggested that the kernel may pass EAGAIN when the device is
unavailable. This hasn't been seen in practice, and examination of the
function definition in libdrm suggests EAGAIN is handled internally so
would not be seen by the xserver when making this call. So, this patch
is probably unneeded. But include support anyway.
Signed-off-by: Bryce Harrington <bryce at canonical.com>
---
hw/xfree86/os-support/linux/lnx_platform.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/xfree86/os-support/linux/lnx_platform.c b/hw/xfree86/os-support/linux/lnx_platform.c
index 3386b67..b05719d 100644
--- a/hw/xfree86/os-support/linux/lnx_platform.c
+++ b/hw/xfree86/os-support/linux/lnx_platform.c
@@ -46,6 +46,9 @@ get_drm_info(struct OdevAttributes *attribs, char *path)
} if (err == -EACCES) {
if (tries % 500 == 0)
LogMessage(X_INFO, "waiting on drm device...\n");
+ } if (err == -EAGAIN) {
+ if (tries % 500 == 0)
+ LogMessage(X_INFO, "drm device busy...\n");
} else {
break;
}
--
1.7.9.5
More information about the Intel-gfx
mailing list