]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm: Support pgtable preallocation
authorRob Clark <robdclark@chromium.org>
Sun, 29 Jun 2025 20:13:16 +0000 (13:13 -0700)
committerRob Clark <robin.clark@oss.qualcomm.com>
Sat, 5 Jul 2025 00:48:37 +0000 (17:48 -0700)
commite601ea31d66ba83d565cae9cfa45cbbcdd8286dd
tree7a44d3d41164c01c371f58b0c21d3a5c6458d9dd
parent2b93efeb83bd2d4bc82817109a1973acb8129173
drm/msm: Support pgtable preallocation

Introduce a mechanism to count the worst case # of pages required in a
VM_BIND op.

Note that previously we would have had to somehow account for
allocations in unmap, when splitting a block.  This behavior was removed
in commit 33729a5fc0ca ("iommu/io-pgtable-arm: Remove split on unmap
behavior)"

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/661515/
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_iommu.c
drivers/gpu/drm/msm/msm_mmu.h