Commit 2a99e5bb authored by Chris Wilson's avatar Chris Wilson 🤔

i915/gem_ctx_exec: Set a fast preempt timeout for nohangcheck

We want the test to run in a reasonable time, and verify that if
the hangcheck modparam is disabled we can still recover from a dead
context. The issue is that we've disabled preempt_timeout on tgl/rcs0 by
default, and so since we want this test to be fast, we need to re-enable
it for the test. Otherwise, we would have to wait several seconds for
the heartbeat to notice the hung engine, exceeding the limits imposed on
the test.
Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Acked-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
parent 03de2b70
Pipeline #175985 passed with stages
in 12 minutes and 11 seconds
......@@ -289,6 +289,10 @@ static void nohangcheck_hostile(int i915)
igt_spin_t *spin;
int new;
/* Set a fast hang detection for a dead context */
gem_engine_property_printf(i915, e->name,
"preempt_timeout_ms", "%d", 50);
spin = __igt_spin_new(i915, ctx,
.engine = e->flags,
.flags = (IGT_SPIN_NO_PREEMPTION |
......
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