From: "Jesse.zhang@amd.com" <jesse.zhang@amd.com>
To: <igt-dev@lists.freedesktop.org>
Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>,
Alex Deucher <alexander.deucher@amd.com>,
Christian Koenig <christian.koenig@amd.com>,
Kamil Konieczny <kamil.konieczny@linux.intel.com>,
"Jesse.zhang@amd.com" <jesse.zhang@amd.com>,
Jesse Zhang <Jesse.Zhang@amd.com>
Subject: [PATCH i-g-t 2/2] tests/amdgpu: enhance sdma test for deadlock
Date: Thu, 10 Oct 2024 12:58:10 +0800 [thread overview]
Message-ID: <20241010045810.491920-2-jesse.zhang@amd.com> (raw)
In-Reply-To: <20241010045810.491920-1-jesse.zhang@amd.com>
Test all sdma rings and ensure
all rings can be recovered by sdma queue reset.
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
---
tests/amdgpu/amd_deadlock.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/amdgpu/amd_deadlock.c b/tests/amdgpu/amd_deadlock.c
index 696fac2eb..b5d053663 100644
--- a/tests/amdgpu/amd_deadlock.c
+++ b/tests/amdgpu/amd_deadlock.c
@@ -73,7 +73,7 @@ igt_main
igt_subtest_with_dynamic("amdgpu-gfx-illegal-reg-access") {
if (arr_cap[AMD_IP_GFX]) {
igt_dynamic_f("amdgpu-illegal-reg-access")
- bad_access_helper(device, CMD_STREAM_TRANS_BAD_REG_ADDRESS,
+ bad_access_ring_helper(device, CMD_STREAM_TRANS_BAD_REG_ADDRESS,
AMDGPU_HW_IP_GFX);
}
}
@@ -82,7 +82,7 @@ igt_main
igt_subtest_with_dynamic("amdgpu-gfx-illegal-mem-access") {
if (arr_cap[AMD_IP_GFX]) {
igt_dynamic_f("amdgpu-illegal-mem-access")
- bad_access_helper(device, CMD_STREAM_TRANS_BAD_MEM_ADDRESS,
+ bad_access_ring_helper(device, CMD_STREAM_TRANS_BAD_MEM_ADDRESS,
AMDGPU_HW_IP_GFX);
}
}
@@ -99,7 +99,7 @@ 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,
+ bad_access_ring_helper(device, CMD_STREAM_TRANS_BAD_MEM_ADDRESS,
AMDGPU_HW_IP_COMPUTE);
}
@@ -115,7 +115,7 @@ igt_main
igt_subtest_with_dynamic("amdgpu-deadlock-sdma-corrupted-header-test") {
if (arr_cap[AMD_IP_DMA]) {
igt_dynamic_f("amdgpu-deadlock-sdma-corrupted-header-test")
- amdgpu_hang_sdma_helper(device, DMA_CORRUPTED_HEADER_HANG);
+ amdgpu_hang_sdma_ring_helper(device, DMA_CORRUPTED_HEADER_HANG);
}
}
@@ -123,7 +123,7 @@ igt_main
igt_subtest_with_dynamic("amdgpu-deadlock-sdma-slow-linear-copy") {
if (arr_cap[AMD_IP_DMA]) {
igt_dynamic_f("amdgpu-deadlock-sdma-slow-linear-copy")
- amdgpu_hang_sdma_helper(device, DMA_SLOW_LINEARCOPY_HANG);
+ amdgpu_hang_sdma_ring_helper(device, DMA_SLOW_LINEARCOPY_HANG);
}
}
@@ -131,7 +131,7 @@ igt_main
igt_subtest_with_dynamic("amdgpu-deadlock-sdma-badop-test") {
if (arr_cap[AMD_IP_DMA]) {
igt_dynamic_f("amdgpu-deadlock-sdma-badop-test")
- bad_access_helper(device, CMD_STREAM_EXEC_INVALID_OPCODE,
+ bad_access_ring_helper(device, CMD_STREAM_EXEC_INVALID_OPCODE,
AMDGPU_HW_IP_DMA);
}
}
@@ -140,7 +140,7 @@ igt_main
igt_subtest_with_dynamic("amdgpu-deadlock-sdma-bad-mem-test") {
if (arr_cap[AMD_IP_DMA]) {
igt_dynamic_f("amdgpu-deadlock-sdma-bad-mem-test")
- bad_access_helper(device, CMD_STREAM_TRANS_BAD_MEM_ADDRESS,
+ bad_access_ring_helper(device, CMD_STREAM_TRANS_BAD_MEM_ADDRESS,
AMDGPU_HW_IP_DMA);
}
}
@@ -149,7 +149,7 @@ igt_main
igt_subtest_with_dynamic("amdgpu-deadlock-sdma-bad-reg-test") {
if (arr_cap[AMD_IP_DMA]) {
igt_dynamic_f("amdgpu-deadlock-sdma-bad-reg-test")
- bad_access_helper(device, CMD_STREAM_TRANS_BAD_REG_ADDRESS,
+ bad_access_ring_helper(device, CMD_STREAM_TRANS_BAD_REG_ADDRESS,
AMDGPU_HW_IP_DMA);
}
}
@@ -158,7 +158,7 @@ igt_main
igt_subtest_with_dynamic("amdgpu-deadlock-sdma-bad-length-test") {
if (arr_cap[AMD_IP_DMA]) {
igt_dynamic_f("amdgpu-deadlock-sdma-bad-length-test")
- bad_access_helper(device, CMD_STREAM_EXEC_INVALID_PACKET_LENGTH,
+ bad_access_ring_helper(device, CMD_STREAM_EXEC_INVALID_PACKET_LENGTH,
AMDGPU_HW_IP_DMA);
}
}
--
2.25.1
next prev parent reply other threads:[~2024-10-10 4:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 4:58 [PATCH i-g-t 1/2] lib/amdgpu: add sdma ring id paramter for deadlock helper Jesse.zhang@amd.com
2024-10-10 4:58 ` Jesse.zhang@amd.com [this message]
2024-10-10 19:52 ` [PATCH i-g-t 2/2] tests/amdgpu: enhance sdma test for deadlock vitaly prosyak
2024-10-10 5:49 ` ✓ CI.xeBAT: success for series starting with [i-g-t,1/2] lib/amdgpu: add sdma ring id paramter for deadlock helper Patchwork
2024-10-10 5:59 ` ✓ Fi.CI.BAT: " Patchwork
2024-10-10 19:06 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-11 11:45 ` ✓ Fi.CI.IGT: success " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241010045810.491920-2-jesse.zhang@amd.com \
--to=jesse.zhang@amd.com \
--cc=alexander.deucher@amd.com \
--cc=christian.koenig@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=vitaly.prosyak@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox