Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/xe_exec_threads: relax data check in multi-queue hang mode
@ 2026-05-06 20:56 Xin Wang
  2026-05-06 22:08 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Xin Wang @ 2026-05-06 20:56 UTC (permalink / raw)
  To: igt-dev; +Cc: Xin Wang, Stuart Summers

In multi-queue hang mode, a reset of any queue in a queue group will
cause the entire group to reset. And since GuC only submits on the
primary queue, without explicit barriers or priority differences
between queues, we can't guarantee which queue hardware will pick up
on submission. As such, we don't know which queues will complete
prior to the group reset and need to check for all possible values.

Suggested-by: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Xin Wang <x.wang@intel.com>
---
 tests/intel/xe_exec_threads.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/intel/xe_exec_threads.c b/tests/intel/xe_exec_threads.c
index 40a6c0c6d..9331a3b88 100644
--- a/tests/intel/xe_exec_threads.c
+++ b/tests/intel/xe_exec_threads.c
@@ -707,10 +707,15 @@ test_legacy_mode(int fd, uint32_t vm, uint64_t addr, uint64_t userptr,
 	     i < n_execs; i++) {
 		int e = i % n_exec_queues;
 
-		if (flags & HANG && e == hang_exec_queue)
+		if (flags & HANG && e == hang_exec_queue) {
 			igt_assert_eq(data[i].data, 0x0);
-		else
-			igt_assert_eq(data[i].data, 0xc0ffee);
+		} else {
+			/* Multi-queue reset affects all queues; data outcome is non-deterministic */
+			if (flags & HANG && flags & MULTI_QUEUE)
+				igt_assert(data[i].data == 0x0 || data[i].data == 0xc0ffee);
+			else
+				igt_assert_eq(data[i].data, 0xc0ffee);
+		}
 	}
 
 	syncobj_destroy(fd, sync[0].handle);
-- 
2.43.0


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

end of thread, other threads:[~2026-05-07 19:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 20:56 [PATCH] tests/xe_exec_threads: relax data check in multi-queue hang mode Xin Wang
2026-05-06 22:08 ` ✓ i915.CI.BAT: success for " Patchwork
2026-05-06 22:17 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-06 23:38 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-07  4:25 ` ✗ i915.CI.Full: " Patchwork
2026-05-07 19:05 ` [PATCH] " Summers, Stuart

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