]> www.infradead.org Git - users/hch/misc.git/commit
dma-mapping: move the PCI P2PDMA mapping helpers to pci-p2pdma.h
authorChristoph Hellwig <hch@lst.de>
Mon, 5 May 2025 07:01:39 +0000 (10:01 +0300)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 6 May 2025 06:36:53 +0000 (08:36 +0200)
commitca2c2e4a78c619bcf1c1df29fee5981035f3fcbc
treeb1c8c9f39a16c6eb0db7be832b9704902de9e44d
parenta25e7962db0d79882c9d32fd2a67a02e79129c0e
dma-mapping: move the PCI P2PDMA mapping helpers to pci-p2pdma.h

To support the upcoming non-scatterlist mapping helpers, we need to go
back to have them called outside of the DMA API.  Thus move them out of
dma-map-ops.h, which is only for DMA API implementations to pci-p2pdma.h,
which is for driver use.

Note that the core helper is still not exported as the mapping is
expected to be done only by very highlevel subsystem code at least for
now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/iommu/dma-iommu.c
include/linux/dma-map-ops.h
include/linux/pci-p2pdma.h
kernel/dma/direct.c