diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-08 14:17:50 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-13 11:07:46 +0000 |
commit | 8361d9782d0a8ec31832087f6b6c509c33f5357d (patch) | |
tree | 19ab0a12769dec47f5c027fb6aa0915d3a635725 /tests/i915/gem_exec_fence.c | |
parent | 06b161d7d52b3c632bcc3525a0444ce75ed2b29c (diff) |
i915/gem_exec_fence: Allow GPU resets during hang checks
The pair of *-hang-all will generate sufficient hangs for the kernel to
ban the client. This is unfortunate as it means all further tests are
skipped. Ask nicely not to be banned.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests/i915/gem_exec_fence.c')
-rw-r--r-- | tests/i915/gem_exec_fence.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/i915/gem_exec_fence.c b/tests/i915/gem_exec_fence.c index d2d26a28..4e8bdd7b 100644 --- a/tests/i915/gem_exec_fence.c +++ b/tests/i915/gem_exec_fence.c @@ -1522,6 +1522,8 @@ igt_main } igt_subtest_group { + igt_hang_t hang; + igt_fixture { igt_fork_hang_detector(i915); } @@ -1533,12 +1535,17 @@ igt_main igt_fixture { igt_stop_hang_detector(); + hang = igt_allow_hang(i915, 0, 0); } igt_subtest("busy-hang-all") test_fence_busy_all(i915, HANG); igt_subtest("wait-hang-all") test_fence_busy_all(i915, WAIT | HANG); + + igt_fixture { + igt_disallow_hang(i915, hang); + } } for (e = intel_execution_engines; e->name; e++) { |