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 <boris.brezillon@collabora.com>
---
Changes in v2:
- Add a commit dropping a redundant panthor_fix_sparse_map_offset() call
- Collect R-bs
- Link to v1: https://patch.msgid.link/20260917-panthor-fix-partial-unmap-v1-0-c7008f15fea3@collabora.com
---
Boris Brezillon (5):
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
drm/panthor: Remove redundant panthor_fix_sparse_map_offset() call
drivers/gpu/drm/panthor/panthor_mmu.c | 112 +++++++++++++++++++++++-----------
1 file changed, 77 insertions(+), 35 deletions(-)
---
base-commit: 45585c3aa285854face65293acc95eff73063d6d
change-id: 20260916-panthor-fix-partial-unmap-a52034f21184
Best regards,
--
Boris Brezillon <boris.brezillon@collabora.com>