[PATCH 8/8] xfree86: Also handle EAGAIN errors from drmSetInterfaceVersion().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux