Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/selftests: Wait longer for request to start
@ 2026-08-31  9:33 Janusz Krzysztofik
  2026-08-31 15:23 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Janusz Krzysztofik @ 2026-08-31  9:33 UTC (permalink / raw)
  To: intel-gfx
  Cc: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	Andi Shyti, Krzysztof Karas, Sebastian Brzezinka,
	Krzysztof Niemiec, Janusz Krzysztofik, dri-devel, igt-dev

CI extreamly sporadically (five times over last six mohths) reported
failures of igt@i915_selftest@live@hangcheck on ARL-S machines.  The
selftest was timing out while waiting up to 1 second for a request
supposed to trigger a GPU hang to be started.  It occurred possible to
reproduce this issue manually by running the selftest in a loop for a
few hours.

Among results from 5 occurrences reported by CI so far, and two manual
reproductions, two of them contained messages that suggested a
posssibility of the awaited request to actually start soon after
timeout.  With the timeout extended from 1 to 2 seconds, it occurred no
longer possible to trigger the failure, even when running the test in a
loop for 10, then for 12 hours, on the same machine where it was failing
before in 2-3 hours.

Assume the conditions that prevented the hang requests to start within 1
second were always transient, and 2 seconds is sufficient for those
requests to start effectively on machines in the CI environment.  Fix
the issue by using that value as the timeout.

Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/16624
Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
---
 drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/selftest_hangcheck.c b/drivers/gpu/drm/i915/gt/selftest_hangcheck.c
index 00dfc37221fac..53f3ce5c33a47 100644
--- a/drivers/gpu/drm/i915/gt/selftest_hangcheck.c
+++ b/drivers/gpu/drm/i915/gt/selftest_hangcheck.c
@@ -278,7 +278,7 @@ static bool wait_until_running(struct hang *h, struct i915_request *rq)
 			     10) &&
 		 wait_for(i915_seqno_passed(hws_seqno(h, rq),
 					    rq->fence.seqno),
-			  1000));
+			  2000));
 }
 
 static int igt_hang_sanitycheck(void *arg)
-- 
2.54.0


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

end of thread, other threads:[~2026-09-02  9:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31  9:33 [PATCH] drm/i915/selftests: Wait longer for request to start Janusz Krzysztofik
2026-08-31 15:23 ` ✓ i915.CI.BAT: success for " Patchwork
2026-08-31 20:21 ` ✗ i915.CI.Full: failure " Patchwork
2026-09-01 10:43   ` Janusz Krzysztofik
2026-09-01 14:24     ` Ravali, JupallyX
2026-09-01  6:19 ` [PATCH] " Krzysztof Karas
2026-09-01  8:07   ` Janusz Krzysztofik
2026-09-01 12:57 ` ✓ i915.CI.Full: success for " Patchwork
2026-09-02  9:54 ` [PATCH] " Krzysztof Niemiec

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