[PATCH] [i-g-t, v2] tests/intel/xe_vm: Reduce n_execs for bind-array-enobufs
Jagmeet Randhawa
jagmeet.randhawa at intel.com
Tue Nov 5 20:29:54 UTC 2024
The bind-array-enobufs test in xe_vm.c is intended to trigger
an -ENOBUFS error by submitting an oversized bind array.
After encountering and handling the error, the test reduces
n_execs by half and retries the operation. On some environments
with stricter resource limits (e.g. simulator), halving
n_execs isn't sufficient to prevent the ENOBUFS error on the retry.
Reducing n_execs further to n_execs / 4 allows the test to pass
successfully.
Signed-off-by: Jagmeet Randhawa <jagmeet.randhawa at intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
---
tests/intel/xe_vm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/intel/xe_vm.c b/tests/intel/xe_vm.c
index 7a8740b69..e78ddd0e5 100644
--- a/tests/intel/xe_vm.c
+++ b/tests/intel/xe_vm.c
@@ -957,7 +957,7 @@ test_bind_array(int fd, struct drm_xe_engine_class_instance *eci, int n_execs,
xe_cork_end(&cork);
xe_cork_wait_done(&cork);
xe_cork_fini(&cork);
- n_execs = n_execs / 2;
+ n_execs = n_execs / 4;
}
xe_vm_bind_array(fd, vm, bind_exec_queue, bind_ops, n_execs, sync, 1);
--
2.34.1
More information about the igt-dev
mailing list