[igt-dev] [PATCH i-g-t] i915/i915_hangman: Idle the gpu for next test

Nirmoy Das nirmoy.das at intel.com
Fri Oct 7 16:02:03 UTC 2022


After each subtest gpu should be idle or else busy
engine leaks into next subtest.

References: https://gitlab.freedesktop.org/drm/intel/-/issues/5888
Suggested-by: Chris Wilson <chris.p.wilson at intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
---
 tests/i915/i915_hangman.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/i915/i915_hangman.c b/tests/i915/i915_hangman.c
index ddbe10675a..8acce8f1a4 100644
--- a/tests/i915/i915_hangman.c
+++ b/tests/i915/i915_hangman.c
@@ -96,6 +96,7 @@ static void check_alive(void)
 	gem_close(fd, scratch);
 	put_ahnd(ahnd);
 	intel_ctx_destroy(fd, ctx);
+	gem_quiescent_gpu(fd);
 	close(fd);
 }
 
-- 
2.37.3



More information about the igt-dev mailing list