[igt-dev] [PATCH 6/6] tests/amdgpu: add tests for invalid memory and register access
vitaly.prosyak at amd.com
vitaly.prosyak at amd.com
Thu Oct 13 13:25:27 UTC 2022
From: Vitaly Prosyak <vitaly.prosyak at amd.com>
Signed-off-by: Vitaly Prosyak <vitaly.prosyak at amd.com>
---
tests/amdgpu/amd_deadlock.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/tests/amdgpu/amd_deadlock.c b/tests/amdgpu/amd_deadlock.c
index c7e8e05e9..4fefe6935 100644
--- a/tests/amdgpu/amd_deadlock.c
+++ b/tests/amdgpu/amd_deadlock.c
@@ -53,6 +53,18 @@ amdgpu_dispatch_hang_slow_compute(amdgpu_device_handle device_handle)
amdgpu_dispatch_hang_slow_helper(device_handle, AMDGPU_HW_IP_COMPUTE);
}
+static void
+amdgpu_illegal_reg_access(amdgpu_device_handle device_handle)
+{
+ bad_access_helper(device_handle, 1);
+}
+
+static void
+amdgpu_illegal_mem_access(amdgpu_device_handle device_handle)
+{
+ bad_access_helper(device_handle, 0);
+}
+
igt_main
{
amdgpu_device_handle device;
@@ -79,6 +91,12 @@ igt_main
}
+ igt_subtest("amdgpu_illegal_reg_access")
+ amdgpu_illegal_reg_access(device);
+
+ igt_subtest("amdgpu_illegal_mem_access")
+ amdgpu_illegal_mem_access(device);
+
igt_subtest("amdgpu_deadlock_gfx")
amdgpu_deadlock_gfx(device);
--
2.25.1
More information about the igt-dev
mailing list