Commit 79ac7d54 authored by Chris Wilson's avatar Chris Wilson 🤔

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=104157Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen's avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
parent 4919d1fd
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment