[PATCH 2/2] lib/amdgpu: fix valid error codes for deadlock asserts
Alex Deucher
alexander.deucher at amd.com
Wed Jun 25 04:21:33 UTC 2025
If the job was guilty it will return -ETIME for the fence,
so add that. This fixes the deadlock tests for per job resets.
Signed-off-by: Alex Deucher <alexander.deucher 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 0cd83f061..f7845edb0 100644
--- a/lib/amdgpu/amd_deadlock_helpers.c
+++ b/lib/amdgpu/amd_deadlock_helpers.c
@@ -164,7 +164,7 @@ amdgpu_wait_memory(amdgpu_device_handle device_handle, unsigned int ip_type, uin
r = amdgpu_cs_query_fence_status(&fence_status, AMDGPU_TIMEOUT_INFINITE, 0,
&expired);
- if (r != 0 && r != -ECANCELED && r != -ENODATA)
+ if (r != 0 && r != -ECANCELED && r != -ENODATA && r != -ETIME)
igt_assert(0);
/* send signal to modify the memory we wait for */
--
2.49.0
More information about the igt-dev
mailing list