[Intel-gfx] [PATCH igt] igt/gem_mocs_settings: Force use of master device
Chris Wilson
chris at chris-wilson.co.uk
Thu Dec 7 09:50:16 UTC 2017
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 <chris at chris-wilson.co.uk>
---
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 cb99010d7..29788b648 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));
--
2.15.1
More information about the Intel-gfx
mailing list