[PATCH 2/2] lib/amdgpu: fix valid error codes for deadlock asserts
Zhang, Jesse(Jie)
Jesse.Zhang at amd.com
Thu Jun 26 01:32:59 UTC 2025
[AMD Official Use Only - AMD Internal Distribution Only]
this serials is Reviewed-by: Jesse Zhang <Jesse.Zhang at amd.com>
-----Original Message-----
From: Alex Deucher <alexdeucher at gmail.com>
Sent: Wednesday, June 25, 2025 10:07 PM
To: Deucher, Alexander <Alexander.Deucher at amd.com>; Zhang, Jesse(Jie) <Jesse.Zhang at amd.com>; Prosyak, Vitaly <Vitaly.Prosyak at amd.com>
Cc: igt-dev at lists.freedesktop.org
Subject: Re: [PATCH 2/2] lib/amdgpu: fix valid error codes for deadlock asserts
+ Jesse, Vitaly
On Wed, Jun 25, 2025 at 12:22 AM Alex Deucher <alexander.deucher at amd.com> wrote:
>
> 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