diff options
| author | Peng Fan <peng.fan@nxp.com> | 2026-09-16 23:23:33 +0800 |
|---|---|---|
| committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2026-09-23 09:56:10 +0200 |
| commit | 057e5e07420c753f248f9ce148040ab6dcf8359f (patch) | |
| tree | 425bf2b1fd03e873e5e158012d18697c872098aa /tools/lib/python | |
| parent | 55a8e1451869233db837a97e8f3cbf9983bc8678 (diff) | |
| download | linux-next-057e5e07420c753f248f9ce148040ab6dcf8359f.tar.gz linux-next-057e5e07420c753f248f9ce148040ab6dcf8359f.zip | |
iommu/dma: skip swiotlb bounce for DMA_ATTR_MMIO in iommu_dma_map_phys
MMIO resources mapped via dma_map_resource() carry DMA_ATTR_MMIO. These
never need swiotlb bounce buffering, but the current code enters the
swiotlb path when the physical address is not page-aligned, then rejects
the mapping because MMIO cannot be bounced.
Move the DMA_ATTR_MMIO check before the swiotlb block so the entire bounce
path is skipped for MMIO, falling through directly to __iommu_dma_map()
which creates the IOVA mapping.
Fixes: f9374de14c0e8 ("iommu/dma: implement DMA_ATTR_MMIO for iommu_dma_(un)map_phys()")
Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Robin Murphy <robin.murphy@arm.comn>
Link: https://lore.kernel.org/r/20260916-iommu-dma-fix-v1-1-a59a0c45ec5b@nxp.com
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
