From 79ac7d54a0cdb4851dad77a17f6971652718ddb7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 7 Dec 2017 09:47:45 +0000 Subject: igt/gem_mocs_settings: Force use of master device To use SECURE batches requires root + master, and we need SECURE batches to write to the privileged mocs registers, do be sure to use drm_open_driver_master() Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104157 Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen --- tests/gem_mocs_settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_mocs_settings.c b/tests/gem_mocs_settings.c index cb99010d..29788b64 100644 --- a/tests/gem_mocs_settings.c +++ b/tests/gem_mocs_settings.c @@ -421,7 +421,7 @@ igt_main int fd = -1; igt_fixture { - fd = drm_open_driver(DRIVER_INTEL); + fd = drm_open_driver_master(DRIVER_INTEL); /* for SECURE */ igt_require_gem(fd); gem_require_mocs_registers(fd); igt_require(get_mocs_settings(fd, &table, false)); -- cgit v1.2.3