summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2022-02-14 16:31:45 -0500
committerAlex Deucher <alexdeucher@gmail.com>2022-03-02 16:10:41 +0000
commitdce623f5256bc0e05c24a30e5b58e452cc883db6 (patch)
treefba97111f4439885094871ae39057ec0d926d8cf /tests
parentb47c057d6932798ff174ddce68486c262ca8e3a6 (diff)
downloaddrm-dce623f5256bc0e05c24a30e5b58e452cc883db6.tar.gz
test/amdgpu: only disable deadlock tests on asics without GPU reset
Switch the logic to only disable the tests for asics which don't have GPU reset support. This way we don't need to update it every time we add a new asic which does support it. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/amdgpu/deadlock_tests.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/amdgpu/deadlock_tests.c b/tests/amdgpu/deadlock_tests.c
index 07a39446..0f780d48 100644
--- a/tests/amdgpu/deadlock_tests.c
+++ b/tests/amdgpu/deadlock_tests.c
@@ -139,11 +139,13 @@ CU_BOOL suite_deadlock_tests_enable(void)
/*
* Only enable for ASICs supporting GPU reset and for which it's enabled
- * by default (currently GFX8/9 dGPUS)
+ * by default (currently GFX8+ dGPUS and gfx9+ APUs). Note that Raven1
+ * did not support GPU reset, but newer variants do.
*/
- if (family_id != AMDGPU_FAMILY_VI &&
- family_id != AMDGPU_FAMILY_AI &&
- family_id != AMDGPU_FAMILY_CI) {
+ if (family_id == AMDGPU_FAMILY_SI ||
+ family_id == AMDGPU_FAMILY_KV ||
+ family_id == AMDGPU_FAMILY_CZ ||
+ family_id == AMDGPU_FAMILY_RV) {
printf("\n\nGPU reset is not enabled for the ASIC, deadlock suite disabled\n");
enable = CU_FALSE;
}