aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/msm_gem.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2025-06-29 20:12:53 +0000
committerRob Clark <[email protected]>2025-07-04 18:09:44 +0000
commit001ddc857c5ba1b093b289d2f52002bcbe95d177 (patch)
tree4b4c5d547cb707f66da02555f1ac333f64932953 /drivers/gpu/drm/msm/msm_gem.c
parentdrm/msm: Collapse vma close and delete (diff)
downloadkernel-001ddc857c5ba1b093b289d2f52002bcbe95d177.tar.gz
kernel-001ddc857c5ba1b093b289d2f52002bcbe95d177.zip
drm/msm: Don't close VMAs on purge
Previously we'd also tear down the VMA, making the address space available again. But with drm_gpuvm conversion, this would require holding the locks of all VMs the GEM object is mapped in. Which is problematic for the shrinker. Instead just let the VMA hang around until the GEM object is freed. Signed-off-by: Rob Clark <[email protected]> Signed-off-by: Rob Clark <[email protected]> Tested-by: Antonino Maniscalco <[email protected]> Reviewed-by: Antonino Maniscalco <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/661472/
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem.c')
-rw-r--r--drivers/gpu/drm/msm/msm_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c
index 7b0430628834..a20ae783f244 100644
--- a/drivers/gpu/drm/msm/msm_gem.c
+++ b/drivers/gpu/drm/msm/msm_gem.c
@@ -755,7 +755,7 @@ void msm_gem_purge(struct drm_gem_object *obj)
GEM_WARN_ON(!is_purgeable(msm_obj));
/* Get rid of any iommu mapping(s): */
- put_iova_spaces(obj, true);
+ put_iova_spaces(obj, false);
msm_gem_vunmap(obj);