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
parent
70c97212b8
commit
bbaec1283f
|
@ -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_ */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue