OSDN Git Service

amdgpu/test: Disable deadlock tests for all non gfx8/9 ASICs.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 2 Nov 2018 16:11:49 +0000 (12:11 -0400)
committerAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 2 Nov 2018 20:22:49 +0000 (16:22 -0400)
Since only for those ASICs gpu reset is enabled by deafult.
Also update disable message and fix identation .

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
tests/amdgpu/deadlock_tests.c

index 04600a7..6bd36aa 100644 (file)
@@ -119,11 +119,13 @@ CU_BOOL suite_deadlock_tests_enable(void)
                                             &minor_version, &device_handle))
                return CU_FALSE;
 
-       if (device_handle->info.family_id == AMDGPU_FAMILY_SI ||
-                       device_handle->info.family_id == AMDGPU_FAMILY_CZ ||
-                       device_handle->info.family_id == AMDGPU_FAMILY_RV ||
-                       device_handle->info.family_id == AMDGPU_FAMILY_KV) {
-               printf("\n\nCurrently hangs the CP on this ASIC, deadlock suite disabled\n");
+       /*
+        * Only enable for ASICs supporting GPU reset and for which it's enabled
+        * by default (currently GFX8/9 dGPUS)
+        */
+       if (device_handle->info.family_id != AMDGPU_FAMILY_VI &&
+           device_handle->info.family_id != AMDGPU_FAMILY_AI) {
+               printf("\n\nGPU reset is not enabled for the ASIC, deadlock suite disabled\n");
                enable = CU_FALSE;
        }