Commit ac3cdf3a authored by Matthew Auld's avatar Matthew Auld
Browse files

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: intel#6350

Signed-off-by: Matthew Auld's avatarMatthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@linux.intel.com>
Reviewed-by: Nirmoy Das's avatarNirmoy Das <nirmoy.das@intel.com>
parent 261740e5
Pipeline #630688 passed with stages
in 10 minutes and 34 seconds
......@@ -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, &param);
}
intel_allocator_init();
/* Reopen the allocator in the new process. */
......
Supports Markdown
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