Skip to content

swiotlb: Backport to linux-stable 6.6

Fabio Estevam stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3swiotlb: Enforce page alignment in swiotlb_alloc()kernel/dma/swiotlb.c+6 -00 replies
2/3swiotlb: Reinstate page-alignment for mappings >= PAGE_SIZEkernel/dma/swiotlb.c+11 -70 replies
3/3swiotlb: extend buffer pre-padding to alloc_align_mask if necessarykernel/dma/swiotlb.c+46 -130 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMichael KelleyPetr TesarikNicolin ChenRobin Murphy
1/3R-b T-b R-b T-b
2/3T-b R-b T-b R-b
3/3R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] swiotlb: Backport to linux-stable 6.6

This series of swiotlb patches fixes a iwlwifi regression on the i.MX8MM IoT Gateway board running kernel 6.6.

This was noticed when updating the kernel from 5.10 to 6.6.

Without this series, the board cannot boot kernel 6.6 due to the storm of alignment errors from the iwlwifi driver.

This has been reported and discussed in the linux-wireless list:
https://lore.kernel.org/linux-wireless/CAOMZO5D2Atb=rnvmNLvu8nrsn+3L9X9NbG1bkZx_MenCCmJK2Q@mail.gmail.com/T/#md2b5063655dfcadf8740285573d504fd46ad0145

Will Deacon suggested:

"If you want to backport that change, then I think you should probably take the whole series:

https://lore.kernel.org/all/[email protected]/

(and there were some follow-ups from Michael iirc; you're best off checking the git history for kernel/dma/swiotlb.c).

FWIW: we have this series backported to 6.6 in the android15-6.6 tree."

From this series, only the two patches below are not present in the 6.6 stable tree:

swiotlb: Enforce page alignment in swiotlb_alloc()
swiotlb: Reinstate page-alignment for mappings >= PAGE_SIZE

While at it, also backport:
swiotlb: extend buffer pre-padding to alloc_align_mask if necessary

as it fixes a commit that is present in 6.6.

Petr Tesarik (1):
swiotlb: extend buffer pre-padding to alloc_align_mask if necessary

Will Deacon (2):
swiotlb: Enforce page alignment in swiotlb_alloc()
swiotlb: Reinstate page-alignment for mappings >= PAGE_SIZE

 kernel/dma/swiotlb.c | 83 +++++++++++++++++++++++++++++++++-----------
 1 file changed, 63 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1