From: Jesse Zhang <jesse.zhang@amd.com>
To: <igt-dev@lists.freedesktop.org>
Cc: Jesse Zhang <Jesse.Zhang@amd.com>
Subject: [igt-dev] [PATCH] lib/amdgpu: add the fence status check
Date: Wed, 28 Jun 2023 15:45:03 +0800 [thread overview]
Message-ID: <20230628074503.2902624-1-jesse.zhang@amd.com> (raw)
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
next reply other threads:[~2023-06-28 7:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-28 7:45 Jesse Zhang [this message]
2023-06-28 13:02 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/amdgpu: add the fence status check Patchwork
2023-06-28 14:22 ` [igt-dev] ✗ GitLab.Pipeline: warning " Patchwork
2023-06-29 8:31 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230628074503.2902624-1-jesse.zhang@amd.com \
--to=jesse.zhang@amd.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox