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 <[email protected]>
---
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-c7008f15f...@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

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.

Best regards
Thomas


  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 <[email protected]>


--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Stefan Gaiser, Jochen Jaser, Abhinav Puri, (HRB 36809, AG Nürnberg)


Reply via email to