Commit ee6e0062 authored by Chris Wilson's avatar Chris Wilson

i915/gem_ctx_exec: Remember to ask for permission to reset the GPU

norecovery intentionally issues a GPU reset, but we should only do so
after confirming with the kernel that this can work.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109691Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
parent 091cf557
Pipeline #20218 passed with stages
in 8 minutes and 1 second
...@@ -158,7 +158,10 @@ static bool has_recoverable_param(int i915) ...@@ -158,7 +158,10 @@ static bool has_recoverable_param(int i915)
static void norecovery(int i915) static void norecovery(int i915)
{ {
igt_hang_t hang;
igt_require(has_recoverable_param(i915)); igt_require(has_recoverable_param(i915));
hang = igt_allow_hang(i915, 0, 0);
for (int pass = 1; pass >= 0; pass--) { for (int pass = 1; pass >= 0; pass--) {
struct drm_i915_gem_context_param param = { struct drm_i915_gem_context_param param = {
...@@ -190,6 +193,8 @@ static void norecovery(int i915) ...@@ -190,6 +193,8 @@ static void norecovery(int i915)
gem_context_destroy(i915, param.ctx_id); gem_context_destroy(i915, param.ctx_id);
} }
igt_disallow_hang(i915, hang);
} }
igt_main igt_main
......
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