Re: [PATCH v2 0/5] drm/panthor: Fix partial unmaps, again
From: Boris Brezillon
Date: Fri Dec 04 2026 - 03:45:12 EST
Hi Thomas,
On Fri, 4 Dec 2026 08:59:54 +0100
Thomas Zimmermann <tzimmermann@xxxxxxx> wrote:
> Hi
>
> Am 24.09.26 um 13:04 schrieb Boris Brezillon:
> > 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
>
> I've found this entire series in drm-misc-fixes while preparing the PR
> today. To be honest, it's a bit too large for -fixes IMO. 3 of these
> patches didn't even have a Fixes tag. Rule of thumb is that patches in
> -fixes should have a Fixes tag. They should also be easy to cherry-pick
> and backport into older releases. Patches with too many dependencies
> aren't backportable. They better go into regular feature PRs.
I made sure the fixes don't depend on the non-fixes changes and I
thought the rest of the changes (mostly cleanups) were simple enough to
be okay to push to drm-misc-fixes as well, but fair enough. What's the
plan here? Will you drop those changes from drm-misc-fixes (this implies
force-pushing which I know DRM maintainers try to avoid). Will you
revert? Can you let me know when you've reverted/dropped the changes so
I can queue those to drm-misc-next before the branching point (we're at
-rc5 already)?
Sorry again for the inconvenience, I'll try to make sure this doesn't
happen again.
Regards,
Boris