diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-07 09:47:45 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-08 11:37:58 +0000 |
commit | 79ac7d54a0cdb4851dad77a17f6971652718ddb7 (patch) | |
tree | ac23aee77cddfe7256bab68c6173f1bd78119d5d | |
parent | 4919d1fd78a7b70b18fc2175ead89ff3f09a71b7 (diff) |
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 <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
-rw-r--r-- | tests/gem_mocs_settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |