aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorPrike Liang <[email protected]>2025-05-06 08:32:23 +0000
committerAlex Deucher <[email protected]>2025-05-07 21:44:59 +0000
commitdef41146b96a9e292a17cddb1ac97007f41c44bc (patch)
treee5216a98479821becc76d1ebceab1fd8525dd1af /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrm/amdgpu: promote the implicit sync to the dependent read fences (diff)
downloadkernel-def41146b96a9e292a17cddb1ac97007f41c44bc.tar.gz
kernel-def41146b96a9e292a17cddb1ac97007f41c44bc.zip
drm/amdgpu: unreserve the gem BO before returning from attach error
It requires unlocking the reserved gem BO before returning from attaching the eviction fence error. Signed-off-by: Prike Liang <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c1
1 files changed, 1 insertions, 0 deletions
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;
}