amdgpu: Disable deadlock test suite for Vega 10
PATCH 1/1 amdgpu: Disable deadlock test suite for Vega 10
The suite stalls the CP, until RCA is done the suite is disabled to not disrupt regression testing.
--- tests/amdgpu/amdgpu_test.c | 2 +- tests/amdgpu/amdgpu_test.h | 5 +++++ tests/amdgpu/deadlock_tests.c | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-)
tests/amdgpu/amdgpu_test.c +1 -1
@@ -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,
tests/amdgpu/amdgpu_test.h +5 -0
@@ -160,6 +160,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 */ extern CU_TestInfo deadlock_tests[];
tests/amdgpu/deadlock_tests.c +19 -0
@@ -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 };
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): 1510668455-4979-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 14.11.2017 um 15:07 schrieb Andrey Grodzovsky:
Quoted 4 lines
The suite stalls the CP, until RCA is done the suite is disabled to not disrupt regression testing.
Signed-off-by Andrey Grodzovsky <[email protected]>
Since you now have commit rights please try to push by yourself.
Thanks,
Christian.
Quoted 62 lines
--- tests/amdgpu/amdgpu_test.c | 2 +- tests/amdgpu/amdgpu_test.h | 5 +++++ tests/amdgpu/deadlock_tests.c | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-)tests/amdgpu/amdgpu_test.c +1
-1@@ -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,tests/amdgpu/amdgpu_test.h +5
-0@@ -160,6 +160,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 */ extern CU_TestInfo deadlock_tests[];tests/amdgpu/deadlock_tests.c +12
-0@@ -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 ) {
tests/amdgpu/deadlock_tests.c static void amdgpu_deadlock_helper(unsigned ip_type); · line 111
Quoted 10 lines
tests/amdgpu/deadlock_tests.c +7
-0+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 };
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 0a906792-bb39-df09-eec6-20eb8836033a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Pushed to master branch of git.freedesktop.org/git/mesa/drm, do I also need to push to our local tree ?
Thanks,
Andrey
Quoted 74 lines · Christian König
Am 14.11.2017 um 15:07 schrieb Andrey Grodzovsky:
Quoted 4 lines
The suite stalls the CP, until RCA is done the suite is disabled to not disrupt regression testing.
Signed-off-by Andrey Grodzovsky <[email protected]>Reviewed-by Christian König <[email protected]>Since you now have commit rights please try to push by yourself.
Thanks,
Christian.Quoted 61 lines
--- tests/amdgpu/amdgpu_test.c | 2 +- tests/amdgpu/amdgpu_test.h | 5 +++++ tests/amdgpu/deadlock_tests.c | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-)tests/amdgpu/amdgpu_test.c +1
-1@@ -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,tests/amdgpu/amdgpu_test.h +5
-0@@ -160,6 +160,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 */ extern CU_TestInfo deadlock_tests[];tests/amdgpu/deadlock_tests.c +1
-0@@ -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)tests/amdgpu/deadlock_tests.c +11
-0+{ +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, deadlocksuite disabled\n");
+ returnCU_FALSE;
Quoted 10 lines
tests/amdgpu/deadlock_tests.c static void amdgpu_deadlock_helper(unsigned ip_type); · line 111
Quoted 8 lines
tests/amdgpu/deadlock_tests.c +5
-0+ } + +return CU_TRUE ; +} +int suite_deadlock_tests_init (void ) {struct amdgpu_gpu_info gpu_info = {0 };
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 6da5f845-4e1f-99e3-98cd-9afb10664b1d-5C7GfCeVMHo@public.gmane.org
Quoted 1 line
do I also need to push to our local tree ?
No, I only push to the master branch all the time as well.
AMD local trees are only cherry picked from upstream as far as I know.
Regards,
Christian.
Am 16.11.2017 um 06:06 schrieb Andrey Grodzovsky:
Quoted 92 lines
Pushed to master branch of git.freedesktop.org/git/mesa/drm, do I also need to push to our local tree ?
Thanks,
Andrey
Quoted 84 lines · Christian König
Am 14.11.2017 um 15:07 schrieb Andrey Grodzovsky:
Quoted 4 lines
The suite stalls the CP, until RCA is done the suite is disabled to not disrupt regression testing.
Signed-off-by Andrey Grodzovsky <[email protected]>Reviewed-by Christian König <[email protected]>Since you now have commit rights please try to push by yourself.
Thanks,
Christian.Quoted 69 lines
---
tests/amdgpu/amdgpu_test.c | 2 +- tests/amdgpu/amdgpu_test.h | 5 +++++tests/amdgpu/deadlock_tests.c| 19 +++++++++++++++++++3 files changed, 25 insertions(+), 1 deletion(-)tests/amdgpu/amdgpu_test.c +1
-1@@ -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,tests/amdgpu/amdgpu_test.h +5
-0@@ -160,6 +160,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 */ extern CU_TestInfo deadlock_tests[];tests/amdgpu/deadlock_tests.c +1
-0@@ -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)tests/amdgpu/deadlock_tests.c +11
-0+{ + 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, deadlocksuite disabled\n");
+ returnCU_FALSE;
+ }tests/amdgpu/deadlock_tests.c +4
-0+ + return CU_TRUE; +} +int
suite_deadlock_tests_init(void)
{
structamdgpu_gpu_infogpu_info= {0};
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx