summaryrefslogtreecommitdiff
path: root/drivers/iommu/dma-iommu.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2024-03-08 18:28:29 +0300
committerChristoph Hellwig <hch@lst.de>2024-03-13 21:39:34 +0300
commit14cebf689a78e8a1c041138af221ef6eac6bc7da (patch)
treea556053871a62a03b875d023c52449470416b361 /drivers/iommu/dma-iommu.c
parentafc5aa46ed560f01ceda897c053c6a40c77ce5c4 (diff)
downloadlinux-14cebf689a78e8a1c041138af221ef6eac6bc7da.tar.xz
swiotlb: Reinstate page-alignment for mappings >= PAGE_SIZE
For swiotlb allocations >= PAGE_SIZE, the slab search historically adjusted the stride to avoid checking unaligned slots. This had the side-effect of aligning large mapping requests to PAGE_SIZE, but that was broken by 0eee5ae10256 ("swiotlb: fix slot alignment checks"). Since this alignment could be relied upon drivers, reinstate PAGE_SIZE alignment for swiotlb mappings >= PAGE_SIZE. Reported-by: Michael Kelley <mhklinux@outlook.com> Signed-off-by: Will Deacon <will@kernel.org> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Petr Tesarik <petr.tesarik1@huawei-partners.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Tested-by: Michael Kelley <mhklinux@outlook.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/iommu/dma-iommu.c')
0 files changed, 0 insertions, 0 deletions