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

Sobin Thomas sobin.thomas at intel.com
Thu Aug 21 08:02:38 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 message
in dmesg as warnings.

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

diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c
index 7ae53c679..94768b48c 100644
--- a/tests/intel/xe_exec_reset.c
+++ b/tests/intel/xe_exec_reset.c
@@ -251,6 +251,9 @@ test_balancer(int fd, int gt, int class, int n_exec_queues, int n_execs,
 			xe_spin_wait_started(&data[i].spin);
 
 	}
+	for (i = 0; i < n_exec_queues && n_execs; i++)
+		igt_assert(syncobj_wait(fd, &syncobjs[i], 1, INT64_MAX, 0, 
+					NULL));
 
 	if (flags & GT_RESET)
 		xe_force_gt_reset_async(fd, gt);
@@ -266,9 +269,6 @@ test_balancer(int fd, int gt, int class, int n_exec_queues, int n_execs,
 		return;
 	}
 
-	for (i = 0; i < n_exec_queues && n_execs; i++)
-		igt_assert(syncobj_wait(fd, &syncobjs[i], 1, INT64_MAX, 0,
-					NULL));
 	igt_assert(syncobj_wait(fd, &sync[0].handle, 1, INT64_MAX, 0, NULL));
 
 	sync[0].flags |= DRM_XE_SYNC_FLAG_SIGNAL;
-- 
2.34.1



More information about the igt-dev mailing list