amdgpu: Disable deadlock test suite for Vega 10

The test stalls the CP, until RCA is done the test is
disabled to not disrupt regression testing.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
main
Andrey Grodzovsky 2017-11-14 09:02:48 -05:00
parent 9ad9b7e91e
commit 18ffe485cd
3 changed files with 25 additions and 1 deletions

View File

@ -162,7 +162,7 @@ static Suites_Active_Status suites_active_stat[] = {
},
{
.pName = DEADLOCK_TESTS_STR,
.pActive = always_active,
.pActive = suite_deadlock_tests_enable,
},
{
.pName = VM_TESTS_STR,

View File

@ -159,6 +159,11 @@ int suite_deadlock_tests_init();
*/
int suite_deadlock_tests_clean();
/**
* Decide if the suite is enabled by default or not.
*/
CU_BOOL suite_deadlock_tests_enable(void);
/**
* Tests in uvd enc test suite
*/

View File

@ -36,6 +36,7 @@
#include "amdgpu_test.h"
#include "amdgpu_drm.h"
#include "amdgpu_internal.h"
#include <pthread.h>
@ -87,6 +88,24 @@ static void amdgpu_deadlock_helper(unsigned ip_type);
static void amdgpu_deadlock_gfx(void);
static void amdgpu_deadlock_compute(void);
CU_BOOL suite_deadlock_tests_enable(void)
{
if (amdgpu_device_initialize(drm_amdgpu[0], &major_version,
&minor_version, &device_handle))
return CU_FALSE;
if (amdgpu_device_deinitialize(device_handle))
return CU_FALSE;
if (device_handle->info.family_id == AMDGPU_FAMILY_AI) {
printf("\n\nCurrently hangs the CP on this ASIC, deadlock suite disabled\n");
return CU_FALSE;
}
return CU_TRUE;
}
int suite_deadlock_tests_init(void)
{
struct amdgpu_gpu_info gpu_info = {0};