[PATCH i-g-t V2] tests/amd_deadlock: add bad memory test for compute

Jesse Zhang jesse.zhang at amd.com
Tue Aug 6 07:06:34 UTC 2024


To enhance the test, add bad memory test for compute ring.

v2: Replace dynamic subtests with igt_subtest (Kamil).

Signed-off-by: Jesse Zhang <jesse.zhang at amd.com>
---
 tests/amdgpu/amd_deadlock.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/amdgpu/amd_deadlock.c b/tests/amdgpu/amd_deadlock.c
index 01185bfd3..52ba08494 100644
--- a/tests/amdgpu/amd_deadlock.c
+++ b/tests/amdgpu/amd_deadlock.c
@@ -94,6 +94,13 @@ igt_main
 		}
 	}
 
+	igt_describe("Test-GPU-reset-by-access-compute-illegal-mem-addr");
+	igt_subtest("amdgpu-compute-illegal-mem-access") {
+		igt_skip_on_f(!arr_cap[AMD_IP_COMPUTE], "SKIP, compute ring don't support\n");
+		bad_access_helper(device, CMD_STREAM_TRANS_BAD_MEM_ADDRESS,
+				AMDGPU_HW_IP_COMPUTE);
+	}
+
 	igt_describe("Test-GPU-reset-by-flooding-compute-ring-with-jobs");
 	igt_subtest_with_dynamic("amdgpu-deadlock-compute") {
 		if (arr_cap[AMD_IP_COMPUTE]) {
-- 
2.25.1



More information about the igt-dev mailing list