[PATCH i-g-t] tests/amdgpu: Add SDMA with UMQ test case to amd_basic

Jesse.Zhang Jesse.Zhang at amd.com
Tue Jun 24 06:33:29 UTC 2025


Add a new subtest "cs-sdma-with-IP-DMA-UMQ" to verify DMA command
submission works correctly with UMQ (User Mode Queue) for write,
constant fill, and copy operations.

The test checks SDMA functionality when using UMQ by calling
amdgpu_command_submission_sdma() with the UMQ flag set to true.
The test will only run if the user queue capability is available
for the DMA IP block.

Reviewed-by: Jesse Zhang <Jesse.Zhang at amd.com>
---
 tests/amdgpu/amd_basic.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/amdgpu/amd_basic.c b/tests/amdgpu/amd_basic.c
index 97a08a9a3..f1ffb4183 100644
--- a/tests/amdgpu/amd_basic.c
+++ b/tests/amdgpu/amd_basic.c
@@ -815,6 +815,14 @@ igt_main
 			amdgpu_sync_dependency_test(device, true);
 		}
 	}
+
+	igt_describe("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation");
+	igt_subtest_with_dynamic("cs-sdma-with-IP-DMA-UMQ") {
+		if (userq_arr_cap[AMD_IP_DMA]) {
+			igt_dynamic_f("cs-sdma-with-umq")
+			amdgpu_command_submission_sdma(device, true);
+		}
+	}
 #endif
 
 	igt_fixture {
-- 
2.49.0



More information about the igt-dev mailing list