The first patch is just a theoretical perf improvement to avoid unnecessary unmap+map caused by false positive returned by iova_mapped_as_huge_page(). The second patch is a fix for a real bug when iova_mapped_as_huge_page() is called on an imported BO. The last 2 patches are just consolidating the logic to make things clearer.
Signed-off-by: Boris Brezillon <[email protected]> --- Boris Brezillon (4): drm/panthor: Avoid false positives in iova_mapped_as_huge_page() drm/panthor: Fix iova_mapped_as_huge_page() for imported BOs drm/panthor: Consolidate the is-huge-page-mapping test drm/panthor: Actually check huge-page mapping on sparse regions drivers/gpu/drm/panthor/panthor_mmu.c | 100 ++++++++++++++++++++++++---------- 1 file changed, 71 insertions(+), 29 deletions(-) --- base-commit: 5535d5e61a77ad79118ea7665ce1c14f857f0f12 change-id: 20260916-panthor-fix-partial-unmap-a52034f21184 Best regards, -- Boris Brezillon <[email protected]>
