Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH] lib/amdgpu: add the fence status check
@ 2023-06-28  7:45 Jesse Zhang
  2023-06-28 13:02 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jesse Zhang @ 2023-06-28  7:45 UTC (permalink / raw)
  To: igt-dev; +Cc: Jesse Zhang

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@amd.com>
Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Vitaly Prosyak <vitaly.prosyak@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-29  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-28  7:45 [igt-dev] [PATCH] lib/amdgpu: add the fence status check Jesse Zhang
2023-06-28 13:02 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-06-28 14:22 ` [igt-dev] ✗ GitLab.Pipeline: warning " Patchwork
2023-06-29  8:31 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox