[PATCH 2/3] tests/amd_deadlock: add bad memory test for compute
vitaly.prosyak at amd.com
vitaly.prosyak at amd.com
Tue Aug 6 23:39:29 UTC 2024
From: Jesse Zhang <jesse.zhang at amd.com>
To enhance the test, add bad memory test for compute ring.
v2: Replace dynamic subtests with igt_subtest (Kamil).
Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Cc: Alex Deucher <alexander.deucher at amd.com>
Cc: Christian Koenig <christian.koenig at amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang at amd.com>
Reviewed-by: Vitaly Prosyak <vitaly.prosyak 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