amdgpu: Disable VM test suite by default for SI ASICs
Hangs my Cape Verde. Acked-by: Christian König <christian.koenig@amd.com>main
parent
8e75f5a145
commit
82aef5f0cb
|
@ -167,7 +167,7 @@ static Suites_Active_Status suites_active_stat[] = {
|
|||
},
|
||||
{
|
||||
.pName = VM_TESTS_STR,
|
||||
.pActive = always_active,
|
||||
.pActive = suite_vm_tests_enable,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -184,6 +184,11 @@ int suite_vm_tests_init();
|
|||
*/
|
||||
int suite_vm_tests_clean();
|
||||
|
||||
/**
|
||||
* Decide if the suite is enabled by default or not.
|
||||
*/
|
||||
CU_BOOL suite_vm_tests_enable(void);
|
||||
|
||||
/**
|
||||
* Tests in vm test suite
|
||||
*/
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include "amdgpu_test.h"
|
||||
#include "amdgpu_drm.h"
|
||||
#include "amdgpu_internal.h"
|
||||
|
||||
static amdgpu_device_handle device_handle;
|
||||
static uint32_t major_version;
|
||||
|
@ -33,6 +34,25 @@ static uint32_t minor_version;
|
|||
|
||||
static void amdgpu_vmid_reserve_test(void);
|
||||
|
||||
CU_BOOL suite_vm_tests_enable(void)
|
||||
{
|
||||
CU_BOOL enable = CU_TRUE;
|
||||
|
||||
if (amdgpu_device_initialize(drm_amdgpu[0], &major_version,
|
||||
&minor_version, &device_handle))
|
||||
return CU_FALSE;
|
||||
|
||||
if (device_handle->info.family_id == AMDGPU_FAMILY_SI) {
|
||||
printf("\n\nCurrently hangs the CP on this ASIC, VM suite disabled\n");
|
||||
enable = CU_FALSE;
|
||||
}
|
||||
|
||||
if (amdgpu_device_deinitialize(device_handle))
|
||||
return CU_FALSE;
|
||||
|
||||
return enable;
|
||||
}
|
||||
|
||||
int suite_vm_tests_init(void)
|
||||
{
|
||||
struct amdgpu_gpu_info gpu_info = {0};
|
||||
|
|
Loading…
Reference in New Issue