[PATCH] tests/amdgpu: improve fuzzing test

vitaly.prosyak at amd.com vitaly.prosyak at amd.com
Sat Apr 27 04:09:46 UTC 2024


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