[PATCH 2/2] lib/amdgpu: fix valid error codes for deadlock asserts

Alex Deucher alexdeucher at gmail.com
Wed Jun 25 14:06:51 UTC 2025


+ 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