diff options
author | Matthew Auld <matthew.auld@intel.com> | 2022-07-05 11:49:45 +0100 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2022-07-06 09:41:58 +0100 |
commit | ac3cdf3a3791fc3521517df2f088bcb8b9560802 (patch) | |
tree | 6e24a8595ebe1d88dbf4878bbb770d65eb7cbec9 /tests/i915 | |
parent | 261740e5fd4990a549f537d3272351ec84458710 (diff) |
tests/gem_exec_capture: adjust the pi subtest
This was broken by the kernel change: 71b1669ea9bd ("drm/i915/uapi:
tweak error capture on recoverable contexts"). Update the test to use
non-recoverable context if needed.
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6350
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@linux.intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Diffstat (limited to 'tests/i915')
-rw-r--r-- | tests/i915/gem_exec_capture.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c index c2639082..a25f529b 100644 --- a/tests/i915/gem_exec_capture.c +++ b/tests/i915/gem_exec_capture.c @@ -721,6 +721,15 @@ static void prioinv(int fd, int dir, const intel_ctx_t *ctx, ctx2 = intel_ctx_create_all_physical(fd); igt_assert(ctx2); + if (needs_recoverable_ctx(fd)) { + struct drm_i915_gem_context_param param = { + .ctx_id = ctx2->id, + .param = I915_CONTEXT_PARAM_RECOVERABLE, + .value = 0, + }; + + gem_context_set_param(fd, ¶m); + } intel_allocator_init(); /* Reopen the allocator in the new process. */ |