summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@linux.intel.com>2017-08-29 15:53:42 +0300
committerLyude <lyude@redhat.com>2017-08-30 14:36:11 -0400
commita23ef519a6bf5b504b9ad67537339f4af4c058de (patch)
tree5feb00c9648c8d2da4c1761bfcd9d93bed49091c /lib/igt_debugfs.c
parent4e4500a7a62c5583973c8da5ca366de859bbd0d1 (diff)
lib/igt_debugfs: Open DRM driver without master for hpd storm exit
When running the full chamelium test binary, it occurs that the hpd storm exit handler (that restores its initial value) will fail when trying to acquire DRM master. This happens even though the previously-held DRM file descriptor was closed already. Since there is no need to get DRM master for debugfs access purposes, open the DRM node without requesting master to fix the issue. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@linux.intel.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r--lib/igt_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index ee1f0f54..090b56e0 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -579,7 +579,7 @@ void igt_require_pipe_crc(int fd)
static void igt_hpd_storm_exit_handler(int sig)
{
- int fd = drm_open_driver_master(DRIVER_INTEL);
+ int fd = drm_open_driver(DRIVER_INTEL);
/* Here we assume that only one i915 device will be ever present */
igt_hpd_storm_reset(fd);