]> www.infradead.org Git - users/hch/block.git/commit
dma-mapping: change the dma_alloc_iova / dma_link_range API
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Oct 2024 09:40:18 +0000 (11:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 5 Oct 2024 17:19:32 +0000 (19:19 +0200)
commit4efd58fca48c18675130589882ca529988ede443
treedac942170a8fdf33e917fa406c8a83b07d8b83c9
parentd86a03930160ddad48801a97253b62b277c13f4d
dma-mapping: change the dma_alloc_iova / dma_link_range API

Return the IOVA passed to the hardware from dma_alloc_iova, as for
normal SGLish-API that's all the driver needs, and stop returning a
dma_addr_t from dma_link_range, as it will constant offsets from
the original allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/infiniband/core/umem_odp.c
drivers/iommu/dma-iommu.c
drivers/vfio/pci/mlx5/cmd.c
include/linux/dma-mapping.h
include/linux/iommu-dma.h
kernel/dma/mapping.c