]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Explicitly skip bus address marked segments in __iommu_map_sg()
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 8 Jul 2022 16:50:58 +0000 (10:50 -0600)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 11:27:48 +0000 (07:27 -0400)
commit9c6ead35f20dee21227887b1c6efa0d3b69918ea
treeb248e071c6dfaf3d0eb8ac99f9d653abba98b076
parentd2a50a0e5c9d3a25b3417f2a9ccedfe5a79ebc1c
iommu: Explicitly skip bus address marked segments in __iommu_map_sg()

In order to support PCI P2PDMA mappings with dma-iommu, explicitly skip
any segments marked with sg_dma_mark_bus_address() in __iommu_map_sg().

These segments should not be mapped into the IOVA and will be handled
separately in as subsequent patch for dma-iommu.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/iommu/iommu.c