drm: Branch 'master' - 2 commits
[email protected] (Michel D??nzer) Fri, 26 Jan 2018 16:58:04 +0000 (UTC)
| Newsgroups | gmane.comp.video.dri.patches |
|---|---|
| Message-ID | <[email protected]> |
tests/amdgpu/amdgpu_test.c | 2 +- tests/amdgpu/amdgpu_test.h | 5 +++++ tests/amdgpu/deadlock_tests.c | 3 ++- tests/amdgpu/vm_tests.c | 20 ++++++++++++++++++++ 4 files changed, 28 insertions(+), 2 deletions(-) New commits: commit 82aef5f0cbeb5145408f8c5979dc826937d51b7b Author: Michel Dänzer <[email protected]> Date: Tue Jan 16 16:49:45 2018 +0100 amdgpu: Disable VM test suite by default for SI ASICs Hangs my Cape Verde. Acked-by: Christian König <[email protected]> diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c index 8fa3399a..cbeb1ee8 100644 --- a/tests/amdgpu/amdgpu_test.c +++ b/tests/amdgpu/amdgpu_test.c @@ -167,7 +167,7 @@ static Suites_Active_Status suites_active_stat[] = { }, { .pName = VM_TESTS_STR, - .pActive = always_active, + .pActive = suite_vm_tests_enable, }, }; diff --git a/tests/amdgpu/amdgpu_test.h b/tests/amdgpu/amdgpu_test.h index 3238e05f..1db803c6 100644 --- a/tests/amdgpu/amdgpu_test.h +++ b/tests/amdgpu/amdgpu_test.h @@ -185,6 +185,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 */ extern CU_TestInfo vm_tests[]; diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c index 5f183107..4b0121ff 100644 --- a/tests/amdgpu/vm_tests.c +++ b/tests/amdgpu/vm_tests.c @@ -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}; commit 8e75f5a1453b1699b91992493e2d2e2a6236965c Author: Michel Dänzer <[email protected]> Date: Tue Jan 16 16:48:45 2018 +0100 amdgpu: Disable deadlock test suite by default for SI ASICs Hangs my Cape Verde. Acked-by: Christian König <[email protected]> diff --git a/tests/amdgpu/deadlock_tests.c b/tests/amdgpu/deadlock_tests.c index fc49c48a..aaeea871 100644 --- a/tests/amdgpu/deadlock_tests.c +++ b/tests/amdgpu/deadlock_tests.c @@ -96,7 +96,8 @@ CU_BOOL suite_deadlock_tests_enable(void) &minor_version, &device_handle)) return CU_FALSE; - if (device_handle->info.family_id == AMDGPU_FAMILY_AI) { + if (device_handle->info.family_id == AMDGPU_FAMILY_AI || + device_handle->info.family_id == AMDGPU_FAMILY_SI) { printf("\n\nCurrently hangs the CP on this ASIC, deadlock suite disabled\n"); enable = CU_FALSE; } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot -- _______________________________________________ Dri-patches mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-patches