Skip to contentSkip to conversation

amdgpu/test: Disable deadlock tests for all non gfx8/9 ASICs.

PATCH In review Andrey Grodzovsky 2 participants 2 messages Nov 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amdgpu/test: Disable deadlock tests for all non gfx8/9 ASICs.

Since only for those ASICs gpu reset is enabled by deafult. Also update disable message and fix identation .

---
 tests/amdgpu/deadlock_tests.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
tests/amdgpu/deadlock_tests.c +7 -5
index 04600a7..00a17ca 100644
@@ -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;
 	}
 
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Andrey Grodzovsky

Since only for those ASICs gpu reset is enabled by deafult. Also update disable message and fix identation .

---
 tests/amdgpu/deadlock_tests.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
tests/amdgpu/deadlock_tests.c +0 -0
index 04600a7..00a17ca 100644
@@ -119,11 +119,13 @@ CU_BOOL suite_deadlock_tests_enable(void)
                                             &minor_version, &device_handle))

tests/amdgpu/deadlock_tests.c CU_BOOL suite_deadlock_tests_enable(void) · line 124

Quoted 10 lines
tests/amdgpu/deadlock_tests.c +3 -5
                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

Missing ) in your comment. With that fixed:

Quoted 10 lines
tests/amdgpu/deadlock_tests.c +4 -1
+        */
+       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;
        }
 
--

2.7.4

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel