[PATCH 1/2] Revert "tests/intel/xe_vm: Do not error on -ECANCELED"
Matthew Brost
matthew.brost at intel.com
Fri Apr 12 04:18:40 UTC 2024
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 at intel.com>
Signed-off-by: Matthew Brost <matthew.brost at intel.com>
Acked-by: Jonathan Cavitt <jonathan.cavitt at 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
More information about the igt-dev
mailing list