Skip to contentSkip to conversation

drm/amdgpu - Put the fence returned by amdgpu_gem_va_update_vm

PATCH New YuanShang 1 participant 1 message Feb 10, 2025

Subsystems (2)
lore
Share & tools
lore

YuanShang

author
#0 lore raw

PATCH 1/1 drm/amdgpu - Put the fence returned by amdgpu_gem_va_update_vm

The fence in amdgpu_gem_va_update_vm is not used after amdgpu_gem_update_bo_mapping.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +2 -0
index 8b67aae6c2fe..aedc0c8ee469 100644
@@ -973,6 +973,8 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
 						     args->vm_timeline_point,
 						     fence, timeline_syncobj,
 						     timeline_chain);
+		
+		dma_fence_put(fence);
 	}
 
 error:
Signature · 1 line
2.25.1