]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm: Don't close VMAs on purge
authorRob Clark <robdclark@chromium.org>
Sun, 29 Jun 2025 20:12:53 +0000 (13:12 -0700)
committerRob Clark <robin.clark@oss.qualcomm.com>
Fri, 4 Jul 2025 18:09:44 +0000 (11:09 -0700)
commit001ddc857c5ba1b093b289d2f52002bcbe95d177
tree4b4c5d547cb707f66da02555f1ac333f64932953
parentb5e7a2f1a396f3cf80800a215878183059c3808e
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 <robdclark@chromium.org>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Tested-by: Antonino Maniscalco <antomani103@gmail.com>
Reviewed-by: Antonino Maniscalco <antomani103@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/661472/
drivers/gpu/drm/msm/msm_gem.c