tests/amd_queue_reset: add sdma test in queue reset
PATCH 2/2 tests/amd_queue_reset: add sdma test in queue reset
To enhance queue reset, add sdma ip test.
v4: 1.add sdma support flag,
2.add a function about calcuating num of tests, 3.remove !strstr(it->name, "CMD").(Vitaly) 4.temporarily ignore memory page has hardware error (EHWPOISON)
Cc Vitaly Prosyak <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Christian Koenig <[email protected]>
Signed-off-by Jesse Zhang <[email protected]>
Reviewed-by Vitaly Prosyak <[email protected]>
Change-Id Iaecd4634b23545fec1c6bc1a133c26469662ca19
--- lib/amdgpu/amd_command_submission.c | 2 +- lib/amdgpu/amd_ip_blocks.h | 1 + tests/amdgpu/amd_queue_reset.c | 41 ++++++++++++++++++++++------- 3 files changed, 33 insertions(+), 11 deletions(-)
lib/amdgpu/amd_command_submission.c +1 -1
@@ -78,7 +78,7 @@ int amdgpu_test_exec_cs_helper(amdgpu_device_handle device, unsigned int ip_typeif (expect_failure)igt_info ("amdgpu_cs_submit %d PID %d\n" , r,getpid ());else { -if (r != -ECANCELED && r != -ENODATA )/* we allow ECANCELED or ENODATA for good jobs temporally */ +if (r != -ECANCELED && r != -ENODATA && r != -EHWPOISON )/* we allow ECANCELED, ENODATA or -EHWPOISON for good jobs temporally */ igt_assert_eq (r,0 ); }
lib/amdgpu/amd_ip_blocks.h +1 -0
@@ -70,6 +70,7 @@ struct dynamic_test{const char *describe;struct asic_id_filter exclude_filter[_MAX_NUM_ASIC_ID_EXCLUDE_FILTER];struct reset_err_result result; +bool support_sdma; };#define for_each_test (t,T ) for(typeof(*T) *t = T; t->name; t++)
tests/amdgpu/amd_queue_reset.c +31 -10
96 lines not on this page · raw message
Signature · 1 line
2.25.1