tests/amdgpu: move arcturus asic check function to common place

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>
main
Le Ma 2019-07-24 15:42:24 +08:00 committed by Alex Deucher
parent 70c97212b8
commit bbaec1283f
2 changed files with 13 additions and 13 deletions

View 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_ */

View 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;