[PATCH] tests/amdgpu: improve fuzzing test

Zhang, Jesse(Jie) Jesse.Zhang at amd.com
Sun Apr 28 01:37:30 UTC 2024


[AMD Official Use Only - General]

The change looks good to me.
Reviewed by: Jesse Zhang <Jesse.Zhang at amd.com>

-----Original Message-----
From: vitaly.prosyak at amd.com <vitaly.prosyak at amd.com>
Sent: Saturday, April 27, 2024 12:10 PM
To: igt-dev at lists.freedesktop.org
Cc: Prosyak, Vitaly <Vitaly.Prosyak at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>; Koenig, Christian <Christian.Koenig at amd.com>; Kamil Konieczny <kamil.konieczny at linux.intel.com>; Zhang, Jesse(Jie) <Jesse.Zhang at amd.com>
Subject: [PATCH] tests/amdgpu: improve fuzzing test

From: Vitaly Prosyak <vitaly.prosyak at amd.com>

Improve cs wait for fuzzing test by using all possible IP blocks.
Due to some IP blocks being different for different ASICs's the return code for ioctl  DRM_IOCTL_AMDGPU_WAIT_CS is ignored.

Cc: Alex Deucher <alexander.deucher at amd.com>
Cc: Christian Koenig <christian.koenig at amd.com>
Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Cc: Jesse Zhang <Jesse.Zhang at amd.com>
Signed-off-by: Vitaly Prosyak <vitaly.prosyak at amd.com>
---
 tests/amdgpu/amd_fuzzing.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/amdgpu/amd_fuzzing.c b/tests/amdgpu/amd_fuzzing.c index b47b26cf0..b2bba83fa 100644
--- a/tests/amdgpu/amd_fuzzing.c
+++ b/tests/amdgpu/amd_fuzzing.c
@@ -91,7 +91,6 @@ void amd_cs_wait_fuzzing(int fd, const enum amd_ip_block_type types[], int size)
                r = igt_ioctl(fd, DRM_IOCTL_AMDGPU_WAIT_CS, &cs_wait);
                igt_info("%s AMDGPU_WAIT_CS %s r %d\n", __func__,
                                amd_ip_type_arr[types[i]].name, r);
-               igt_assert_eq(r, 0);
        }
 }

@@ -160,7 +159,10 @@ igt_main
 {
        int fd = -1;
        const enum amd_ip_block_type arr_types[] = {
-                       AMD_IP_VCE, AMD_IP_VCN_ENC, AMD_IP_VCN_JPEG, AMD_IP_VPE };
+                       AMD_IP_GFX, AMD_IP_COMPUTE, AMD_IP_DMA, AMD_IP_UVD,
+                       AMD_IP_VCE, AMD_IP_UVD_ENC, AMD_IP_VCN_DEC, AMD_IP_VCN_ENC,
+                       AMD_IP_VCN_JPEG, AMD_IP_VPE
+       };

        igt_fixture {
                fd = drm_open_driver(DRIVER_AMDGPU);
--
2.25.1



More information about the igt-dev mailing list