Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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/

authored by

Rob Clark and committed by
Rob Clark
001ddc85 b5e7a2f1

+1 -1
+1 -1
drivers/gpu/drm/msm/msm_gem.c
··· 755 755 GEM_WARN_ON(!is_purgeable(msm_obj)); 756 756 757 757 /* Get rid of any iommu mapping(s): */ 758 - put_iova_spaces(obj, true); 758 + put_iova_spaces(obj, false); 759 759 760 760 msm_gem_vunmap(obj); 761 761