[PATCH i-g-t 1/1] tests/intel/xe_exec_reset: Wait for spin jobs to start

Sobin Thomas sobin.thomas at intel.com
Mon Aug 11 11:20:37 UTC 2025


This fix will allow waiting for the spin jobs to be triggered
before performing the gt reset. This allows all the job
to be started on the guc ids and prevents the timeout

Signed-off-by: Sobin Thomas <sobin.thomas at intel.com>
---
 tests/intel/xe_exec_reset.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c
index 7ae53c679..c78850c4f 100644
--- a/tests/intel/xe_exec_reset.c
+++ b/tests/intel/xe_exec_reset.c
@@ -252,8 +252,11 @@ test_balancer(int fd, int gt, int class, int n_exec_queues, int n_execs,
 
 	}
 
-	if (flags & GT_RESET)
+	if (flags & GT_RESET) {
+		for (i = 0 ; i < bad_batches ; i++)
+			xe_spin_wait_started(&data[i].spin);
 		xe_force_gt_reset_async(fd, gt);
+	}
 
 	if (flags & CLOSE_FD) {
 		if (flags & CLOSE_EXEC_QUEUES) {
-- 
2.34.1



More information about the igt-dev mailing list