Message ID | 20200702174620.230048-1-chris@chris-wilson.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [i-g-t] i915/perf: Instantiate a local drm_fd for the unprivileged helper | expand |
diff --git a/tests/i915/perf.c b/tests/i915/perf.c index d4ebae30d..92edc9f1f 100644 --- a/tests/i915/perf.c +++ b/tests/i915/perf.c @@ -4120,8 +4120,13 @@ gen12_test_single_ctx_render_target_writes_a_counter(void) do { igt_fork_helper(&child) { + /* A local device for local resources. */ + drm_fd = gem_reopen_driver(drm_fd); + igt_drop_root(); gen12_single_ctx_helper(); + + close(drm_fd); } child_ret = igt_wait_helper(&child); igt_assert(WEXITSTATUS(child_ret) == EAGAIN ||