Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_exec_reset: Skip syncobj_wait during the gt_reset
@ 2024-09-25 10:31 Bommu Krishnaiah
  2024-09-26  5:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Bommu Krishnaiah @ 2024-09-25 10:31 UTC (permalink / raw)
  To: igt-dev; +Cc: Bommu Krishnaiah, Stuart Summers

From: "Bommu Krishnaiah" <krishnaiah.bommu@intel.com>

Skipping the syncobj_wait for the workloads which is submitted
before gt reset, since After gt reset There is no expectation
from the hardware/GuC/KMD that the workload will then
re-execute and complete.

Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
Cc: Stuart Summers <stuart.summers@intel.com>
---
 tests/intel/xe_exec_reset.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c
index b5d5f43ea..b1a7548c6 100644
--- a/tests/intel/xe_exec_reset.c
+++ b/tests/intel/xe_exec_reset.c
@@ -263,8 +263,9 @@ test_balancer(int fd, int gt, int class, int n_exec_queues, int n_execs,
 	}
 
 	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))
+			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;
@@ -410,7 +411,8 @@ test_legacy_mode(int fd, struct drm_xe_engine_class_instance *eci,
 	}
 
 	for (i = 0; i < n_exec_queues && n_execs; i++)
-		igt_assert(syncobj_wait(fd, &syncobjs[i], 1, INT64_MAX, 0,
+		if (!(flags & GT_RESET))
+			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));
 
-- 
2.34.1


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

end of thread, other threads:[~2024-10-03 16:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 10:31 [PATCH i-g-t] tests/intel/xe_exec_reset: Skip syncobj_wait during the gt_reset Bommu Krishnaiah
2024-09-26  5:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
2024-09-26  5:24 ` ✓ CI.xeBAT: success " Patchwork
2024-09-26 17:03 ` ✗ CI.xeFULL: failure " Patchwork
2024-09-27 10:05 ` [PATCH i-g-t] " Bernatowicz, Marcin
2024-09-27 10:22   ` Matthew Auld
2024-09-30 10:18     ` Bommu, Krishnaiah
2024-10-03 16:08       ` Matthew Brost

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