Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "tests/intel/xe_vm: Do not error on -ECANCELED"
@ 2024-04-05 22:52 Matthew Brost
  2024-04-05 23:46 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matthew Brost @ 2024-04-05 22:52 UTC (permalink / raw)
  To: igt-dev; +Cc: Matthew Brost, Jonathan Cavitt

The test should never unbind an address used by hammer thread nor should
the exec queue in the hammer thread get banned.

This reverts commit 81462e71323ae6764d7f509f4a1bbd3e41aab13e.

Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
---
 tests/intel/xe_vm.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/intel/xe_vm.c b/tests/intel/xe_vm.c
index ecb2a783c4..bd4973cc38 100644
--- a/tests/intel/xe_vm.c
+++ b/tests/intel/xe_vm.c
@@ -1126,7 +1126,6 @@ static void *hammer_thread(void *tdata)
 	uint32_t exec_queue = xe_exec_queue_create(t->fd, t->vm, t->eci, 0);
 	int b;
 	int i = 0;
-	int err = 0;
 
 	sync[0].handle = syncobj_create(t->fd, 0);
 	pthread_barrier_wait(t->barrier);
@@ -1149,15 +1148,14 @@ static void *hammer_thread(void *tdata)
 		exec.address = batch_addr;
 		if (i % 32) {
 			exec.num_syncs = 0;
-			err = __xe_exec(t->fd, &exec);
+			xe_exec(t->fd, &exec);
 		} else {
 			exec.num_syncs = 1;
-			err = __xe_exec(t->fd, &exec);
+			xe_exec(t->fd, &exec);
 			igt_assert(syncobj_wait(t->fd, &sync[0].handle, 1,
 						INT64_MAX, 0, NULL));
 			syncobj_reset(t->fd, &sync[0].handle, 1);
 		}
-		igt_assert(!err || err == -ECANCELED);
 		++i;
 	}
 
-- 
2.34.1


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

end of thread, other threads:[~2024-04-10 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-05 22:52 [PATCH] Revert "tests/intel/xe_vm: Do not error on -ECANCELED" Matthew Brost
2024-04-05 23:46 ` ✓ CI.xeBAT: success for " Patchwork
2024-04-05 23:53 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-04-10 15:49 ` [PATCH] " Cavitt, Jonathan

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