From 37339e7171ee0bd6b45abf8cfef593ed9d8bf750 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 7 Dec 2017 10:04:00 +0000 Subject: 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 Reviewed-by: Daniel Vetter --- lib/drmtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index ef2f772e..b2d8150f 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; } -- cgit v1.2.3