summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLe Ma <le.ma@amd.com>2019-03-04 16:56:55 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-10-15 13:45:11 -0400
commit236a139f099685ff656face9f433b00cc68e25fc (patch)
treea4380d34ae295e3c72558ed9092e0149d57d9b24
parent301b4b64d0baac1f32b8757ffe67fbee38bb8a2a (diff)
downloadlibdrm-236a139f099685ff656face9f433b00cc68e25fc.tar.gz
libdrm-236a139f099685ff656face9f433b00cc68e25fc.tar.bz2
libdrm-236a139f099685ff656face9f433b00cc68e25fc.zip
tests/amdgpu: disable gfx engine basic test cases for Arcturus
Since Arcturus has no gfx pipeline(CPG), cases below is not suitable: - Command submission Test (GFX) - Command submission Test (Multi-Fence) - Sync dependency Test Acked-by: Huang Rui <ray.huang@amd.com> Acked-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Le Ma <le.ma@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--tests/amdgpu/basic_tests.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
index a1b0323a..5fbc8363 100644
--- a/tests/amdgpu/basic_tests.c
+++ b/tests/amdgpu/basic_tests.c
@@ -602,13 +602,38 @@ static bool asic_is_arcturus(uint32_t asic_id)
CU_BOOL suite_basic_tests_enable(void)
{
+ uint32_t asic_id;
+
if (amdgpu_device_initialize(drm_amdgpu[0], &major_version,
&minor_version, &device_handle))
return CU_FALSE;
+ asic_id = device_handle->info.asic_id;
+
if (amdgpu_device_deinitialize(device_handle))
return CU_FALSE;
+ /* disable gfx engine basic test cases for Arturus due to no CPG */
+ if (asic_is_arcturus(asic_id)) {
+ if (amdgpu_set_test_active("Basic Tests",
+ "Command submission Test (GFX)",
+ CU_FALSE))
+ fprintf(stderr, "test deactivation failed - %s\n",
+ CU_get_error_msg());
+
+ if (amdgpu_set_test_active("Basic Tests",
+ "Command submission Test (Multi-Fence)",
+ CU_FALSE))
+ fprintf(stderr, "test deactivation failed - %s\n",
+ CU_get_error_msg());
+
+ if (amdgpu_set_test_active("Basic Tests",
+ "Sync dependency Test",
+ CU_FALSE))
+ fprintf(stderr, "test deactivation failed - %s\n",
+ CU_get_error_msg());
+ }
+
return CU_TRUE;
}