summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLe Ma <le.ma@amd.com>2019-06-27 18:57:14 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-10-15 13:44:34 -0400
commitba0d45eca669aa9f385be1a006d4045afc67a602 (patch)
treeab622b924a7fa36682d05e58ae6c488b58137632
parent5de99aebba44212ff048145a91e66490a98b2233 (diff)
downloadlibdrm-ba0d45eca669aa9f385be1a006d4045afc67a602.tar.gz
libdrm-ba0d45eca669aa9f385be1a006d4045afc67a602.tar.bz2
libdrm-ba0d45eca669aa9f385be1a006d4045afc67a602.zip
tests/amdgpu: add function to check Asic is Arcturus
Since Arcturus has no gfx engine, add function to blacklist gfx related 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.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
index 57496c82..5c5b8af5 100644
--- a/tests/amdgpu/basic_tests.c
+++ b/tests/amdgpu/basic_tests.c
@@ -586,6 +586,19 @@ int amdgpu_bo_alloc_and_map_raw(amdgpu_device_handle dev, unsigned size,
+static bool asic_is_arcturus(uint32_t asic_id)
+{
+ switch(asic_id) {
+ /* asic DID */
+ case 0x738C:
+ case 0x7388:
+ case 0x738E:
+ return true;
+ default:
+ return false;
+ }
+}
+
int suite_basic_tests_init(void)
{
struct amdgpu_gpu_info gpu_info = {0};