[PATCH i-g-t] tests/xe_eudebug: add basic-vm-access-parameters-userptr

Mika Kuoppala mika.kuoppala at linux.intel.com
Thu Dec 19 13:39:26 UTC 2024


There is an easy way to also use the access-parameters test
to be based on userptr backing storage. Make it so.

Cc: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
Cc: Christoph Manszewski <christoph.manszewski at intel.com>
Cc: Andrzej Hajda <andrzej.hajda at intel.com>
Cc: Dominik Karol Piątkowski <dominik.karol.piatkowski at intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
---
 tests/intel/xe_eudebug.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/tests/intel/xe_eudebug.c b/tests/intel/xe_eudebug.c
index d9281f78f..dc8e587b7 100644
--- a/tests/intel/xe_eudebug.c
+++ b/tests/intel/xe_eudebug.c
@@ -1773,7 +1773,13 @@ static void vm_trigger_access_parameters(struct xe_eudebug_debugger *d,
 /**
  * SUBTEST: basic-vm-access-parameters
  * Description:
- *      Check negative scenarios of VM_OPEN ioctl and pread/pwrite usage.
+ *      Check negative scenarios of VM_OPEN ioctl and pread/pwrite usage
+ *      with bo backing storage.
+ *
+ * SUBTEST: basic-vm-access-parameters-userptr
+ * Description:
+ *      Check negative scenarios of VM_OPEN ioctl and pread/pwrite usage
+ *      with userptr backing storage.
  */
 static void test_vm_access_parameters(int fd, unsigned int flags, int num_clients)
 {
@@ -2830,6 +2836,9 @@ igt_main
 	igt_subtest("basic-vm-access-parameters")
 		test_vm_access_parameters(fd, 0, 1);
 
+	igt_subtest("basic-vm-access-parameters-userptr")
+		test_vm_access_parameters(fd, VM_BIND_OP_MAP_USERPTR, 1);
+
 	igt_subtest("multiple-sessions")
 		test_basic_sessions(fd, CREATE_VMS | CREATE_EXEC_QUEUES, 4, true);
 
-- 
2.43.0



More information about the igt-dev mailing list