public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] i915/perf_pmu: Check for hangs allowed
@ 2019-01-28 10:14 Chris Wilson
  2019-01-28 10:18 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Wilson @ 2019-01-28 10:14 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev, Tvrtko Ursulin

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

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-28 13:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-28 10:14 [igt-dev] [PATCH i-g-t] i915/perf_pmu: Check for hangs allowed Chris Wilson
2019-01-28 10:18 ` Chris Wilson
2019-01-28 11:00   ` [igt-dev] [Intel-gfx] " Tvrtko Ursulin
2019-01-28 11:36     ` Chris Wilson
2019-01-28 10:54 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/perf_pmu: Check for hangs allowed (rev2) Patchwork
2019-01-28 13:04 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox