The forced-reset itself should be immediate; it's just the wait after
the health check where we appear to have issues!

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

diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c
index 007b9fb70..7c8ff10df 100644
--- a/tests/i915/gem_eio.c
+++ b/tests/i915/gem_eio.c
@@ -76,12 +76,15 @@ static void trigger_reset(int fd)
        igt_kmsg(KMSG_DEBUG "Forcing GPU reset\n");
        igt_force_gpu_reset(fd);
 
+       /* The forced reset should be immediate */
+       igt_assert_lte(igt_seconds_elapsed(&ts), 2);
+
        /* And just check the gpu is indeed running again */
        igt_kmsg(KMSG_DEBUG "Checking that the GPU recovered\n");
        gem_test_engine(fd, ALL_ENGINES);
        igt_drop_caches_set(fd, DROP_ACTIVE);
 
-       /* We expect forced reset and health check to be quick. */
+       /* We expect health check to be quick. */
        igt_assert_lte(igt_seconds_elapsed(&ts), 10);
 }
 
-- 
2.23.0

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

Reply via email to