From ba0d45eca669aa9f385be1a006d4045afc67a602 Mon Sep 17 00:00:00 2001 From: Le Ma Date: Thu, 27 Jun 2019 18:57:14 +0800 Subject: [PATCH] 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 Acked-by: Leo Liu Signed-off-by: Le Ma Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- tests/amdgpu/basic_tests.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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};