diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-07 10:04:00 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-08 18:01:50 +0000 |
commit | 37339e7171ee0bd6b45abf8cfef593ed9d8bf750 (patch) | |
tree | 510d0277825e367ad98bb34cb67068e33ef4961f /lib/drmtest.c | |
parent | 43199fbc6523ac387ba4b905b613d946e8cdb91c (diff) |
lib: Print other clients when DRM_SET_MASTER fails
It looks like there are some rogue processes running in CI that prevent
DRM_MASTER from being obtained. Dump the list of clients on failure to
make it more obvious what is being left behind.
v2: Fix up gtkdocs, meson build
References: https://bugs.freedesktop.org/show_bug.cgi?id=104157
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index ef2f772ea..b2d8150f4 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -51,6 +51,7 @@ #include "intel_chipset.h" #include "intel_io.h" #include "igt_debugfs.h" +#include "igt_device.h" #include "igt_gt.h" #include "igt_kmod.h" #include "version.h" @@ -423,8 +424,7 @@ int drm_open_driver_master(int chipset) { int fd = drm_open_driver(chipset); - igt_require_f(drmSetMaster(fd) == 0, "Can't become DRM master, " - "please check if no other DRM client is running.\n"); + igt_device_set_master(fd); return fd; } |