[igt-dev] [PATCH] lib/amdgpu: add the fence status check
Jesse Zhang
jesse.zhang at amd.com
Wed Jun 28 07:45:03 UTC 2023
when waiting for the fence to time out, the fence status will return -ETIME.
Because it is a negative test, the -ETIME should be our expect error.
Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
Signed-off-by: Vitaly Prosyak <vitaly.prosyak at amd.com>
Reviewed-by: Vitaly Prosyak <vitaly.prosyak at amd.com>
---
lib/amdgpu/amd_deadlock_helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/amdgpu/amd_deadlock_helpers.c b/lib/amdgpu/amd_deadlock_helpers.c
index bef70893..177e58a3 100644
--- a/lib/amdgpu/amd_deadlock_helpers.c
+++ b/lib/amdgpu/amd_deadlock_helpers.c
@@ -255,7 +255,7 @@ bad_access_helper(amdgpu_device_handle device_handle, int reg_access, unsigned i
r = amdgpu_cs_query_fence_status(&fence_status,
AMDGPU_TIMEOUT_INFINITE,0, &expired);
- if (r != 0 && r != -ECANCELED)
+ if (r != 0 && r != -ECANCELED && r == -ETIME)
igt_assert(0);
amdgpu_bo_list_destroy(bo_list);
--
2.25.1
More information about the igt-dev
mailing list