Re: [PATCH v2 0/5] drm/panthor: Fix partial unmaps, again
From: Boris Brezillon
Date: Thu Dec 03 2026 - 04:43:22 EST
+Dominik who sent a slightly different fix for the same bug.
On Thu, 24 Sep 2026 13:04:37 +0200
Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxxxxx>
> ---
> 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@xxxxxxxxxxxxx
>
> ---
> 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
Oops, looks like another one of those fell through the cracks. Queued to
drm-misc-fixes now.
>
> 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@xxxxxxxxxxxxx>
>