tests/amdgpu: move arcturus asic check function to common place
authorLe Ma <le.ma@amd.com>
Wed, 24 Jul 2019 07:42:24 +0000 (15:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Oct 2020 17:45:22 +0000 (13:45 -0400)
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: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
tests/amdgpu/amdgpu_test.h
tests/amdgpu/basic_tests.c

index cc996dc..be9297e 100644 (file)
@@ -423,4 +423,17 @@ static inline CU_ErrorCode amdgpu_set_test_active(const char *suite_name,
        return r;
 }
 
+static inline bool asic_is_arcturus(uint32_t asic_id)
+{
+       switch(asic_id) {
+       /* Arcturus asic DID */
+       case 0x738C:
+       case 0x7388:
+       case 0x738E:
+               return true;
+       default:
+               return false;
+       }
+}
+
 #endif  /* #ifdef _AMDGPU_TEST_H_ */
index 5fbc836..dfd3ddb 100644 (file)
@@ -587,19 +587,6 @@ 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;
-       }
-}
-
 CU_BOOL suite_basic_tests_enable(void)
 {
        uint32_t asic_id;