From: vitaly prosyak <vprosyak@amd.com>
To: "Jesse.zhang@amd.com" <jesse.zhang@amd.com>,
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>
Subject: Re: [PATCH i-g-t 2/2] tests/amdgpu: enhance sdma test for deadlock
Date: Thu, 10 Oct 2024 15:52:56 -0400 [thread overview]
Message-ID: <0294f1ed-5024-48a8-94cb-6a76d2d63afb@amd.com> (raw)
In-Reply-To: <20241010045810.491920-2-jesse.zhang@amd.com>
Both changes looks good to me. Reviewed-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
On 2024-10-10 00:58, Jesse.zhang@amd.com wrote:
> 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);
> }
> }
next prev parent reply other threads:[~2024-10-10 19:53 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 ` [PATCH i-g-t 2/2] tests/amdgpu: enhance sdma test for deadlock Jesse.zhang@amd.com
2024-10-10 19:52 ` vitaly prosyak [this message]
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=0294f1ed-5024-48a8-94cb-6a76d2d63afb@amd.com \
--to=vprosyak@amd.com \
--cc=alexander.deucher@amd.com \
--cc=christian.koenig@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jesse.zhang@amd.com \
--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