[PATCH] drm/amdgpu: unreserve the gem BO before returning from attach error
Christian König
christian.koenig at amd.com
Tue May 6 08:58:38 UTC 2025
On 5/6/25 10:43, Prike Liang wrote:
> It requires unlocking the reserved gem BO before returning from
> attaching the eviction fence error.
>
> Signed-off-by: Prike Liang <Prike.Liang at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> index f03fc3cf4d50..2c68118fe9fd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> @@ -298,6 +298,7 @@ static int amdgpu_gem_object_open(struct drm_gem_object *obj,
> r = amdgpu_eviction_fence_attach(&fpriv->evf_mgr, abo);
> if (r) {
> DRM_DEBUG_DRIVER("Failed to attach eviction fence to BO\n");
> + amdgpu_bo_unreserve(abo);
> return r;
> }
>
More information about the amd-gfx
mailing list