Check we can reset the GPU before running the reset test.

Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
---
 tests/perf_pmu.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index 21292bf3a..1fdbcc154 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -1812,8 +1812,14 @@ igt_main
                                        accuracy(fd, e, pct[i], 10);
                        }
 
-                       igt_subtest_f("busy-hang-%s", e->name)
+                       igt_subtest_f("busy-hang-%s", e->name) {
+                               igt_hang_t hang =
+                                       igt_allow_hang(fd, 0, e2ring(fd, e));
+
                                single(fd, e, TEST_BUSY | FLAG_HANG);
+
+                               igt_disallow_hang(fd, hang);
+                       }
                }
 
                /**
-- 
2.20.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to