[igt-dev] [PATCH] i915/gem_ctx_persistence: adjust hostile test timeout

Andrzej Hajda andrzej.hajda at intel.com
Tue Jul 12 07:17:22 UTC 2022


GPU occasionally can hang during hostile test. Detection of such case and
then reset can take up to 5 seconds.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/2410
Suggested-by: Chris Wilson <chris.p.wilson at intel.com>
Signed-off-by: Andrzej Hajda <andrzej.hajda at intel.com>
---
 tests/i915/gem_ctx_persistence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c
index 00dda3a8b52..50196edb19f 100644
--- a/tests/i915/gem_ctx_persistence.c
+++ b/tests/i915/gem_ctx_persistence.c
@@ -370,7 +370,7 @@ static void test_nohangcheck_hostile(int i915, const intel_ctx_cfg_t *cfg)
 	igt_require(__enable_hangcheck(dir, false));
 
 	for_each_ctx_cfg_engine(i915, cfg, e) {
-		int64_t timeout = reset_timeout_ms * NSEC_PER_MSEC;
+		int64_t timeout = 10000 * NSEC_PER_MSEC;
 		const intel_ctx_t *ctx = intel_ctx_create(i915, cfg);
 		uint64_t ahnd = get_reloc_ahnd(i915, ctx->id);
 		igt_spin_t *spin;
-- 
2.25.1



More information about the igt-dev mailing list