diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-19 01:42:00 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-19 01:44:20 +0000 |
commit | 101834d77ec9af97f549e2977d4d1f714c7c3047 (patch) | |
tree | 1d5cb8bf3e99bace529ae227c9f2f18bb642c272 /tests/i915/i915_hangman.c | |
parent | 3dee51f828e96a26a537b984c7d7b229fa3caf78 (diff) |
i915/i915_hangman: Only check per-engine reset under preemption
In order for the hangcheck to differentiate between a hanging request
and a busy one, we use preemption. So in order for the test to not
misidentify the background load as being hung, the HW must support
preemption.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/i915_hangman.c')
-rw-r--r-- | tests/i915/i915_hangman.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/i915/i915_hangman.c b/tests/i915/i915_hangman.c index 3f84567e..72e4d8b8 100644 --- a/tests/i915/i915_hangman.c +++ b/tests/i915/i915_hangman.c @@ -341,6 +341,7 @@ igt_main .value = &has_gpu_reset, }; + igt_require(gem_scheduler_has_preemption(device)); igt_params_set(device, "reset", "%u", -1); ioctl(device, DRM_IOCTL_I915_GETPARAM, &gp); igt_require(has_gpu_reset > 1); |