amdgpu: Update deadlock test to not assert on ECANCELED

Kernel will abort jobs for guilty (causing GPU hang) context
with -ECANCELED don't assert if that the case.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
main
Andrey Grodzovsky 2018-01-25 13:00:54 -05:00
parent 5df936718d
commit 5e239f3e3d
1 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ static void amdgpu_deadlock_helper(unsigned ip_type)
for (i = 0; i < 200; i++) {
r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1);
CU_ASSERT_EQUAL(r, 0);
CU_ASSERT_EQUAL((r == 0 || r == -ECANCELED), 1);
}
@ -243,7 +243,7 @@ static void amdgpu_deadlock_helper(unsigned ip_type)
r = amdgpu_cs_query_fence_status(&fence_status,
AMDGPU_TIMEOUT_INFINITE,0, &expired);
CU_ASSERT_EQUAL(r, 0);
CU_ASSERT_EQUAL((r == 0 || r == -ECANCELED), 1);
r = amdgpu_bo_list_destroy(bo_list);
CU_ASSERT_EQUAL(r, 0);