[GIT PULL] dma-mapping update for Linux 6.16
Marek Szyprowski
m.szyprowski at samsung.com
Mon May 26 05:11:05 PDT 2025
The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8:
Linux 6.15-rc1 (2025-04-06 13:11:33 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux.git tags/dma-mapping-6.16-2025-05-26
for you to fetch changes up to 3ee7d9496342246f4353716f6bbf64c945ff6e2d:
docs: core-api: document the IOVA-based API (2025-05-06 08:36:54 +0200)
----------------------------------------------------------------
dma-mapping updates for Linux 6.16:
- new two step DMA mapping API, which is is a first step to a long path
to provide alternatives to scatterlist and to remove hacks, abuses and
design mistakes related to scatterlists; this new approach optimizes
some calls to DMA-IOMMU layer and cache maintenance by batching them,
reduces memory usage as it is no need to store mapped DMA addresses to
unmap them, and reduces some function call overhead; it is a combination
effort of many people, lead and developed by Christoph Hellwig and Leon
Romanovsky
----------------------------------------------------------------
Christoph Hellwig (6):
PCI/P2PDMA: Refactor the p2pdma mapping helpers
dma-mapping: move the PCI P2PDMA mapping helpers to pci-p2pdma.h
iommu: generalize the batched sync after map interface
iommu/dma: Factor out a iommu_dma_map_swiotlb helper
dma-mapping: add a dma_need_unmap helper
docs: core-api: document the IOVA-based API
Leon Romanovsky (3):
iommu: add kernel-doc for iommu_unmap_fast
dma-mapping: Provide an interface to allow allocate IOVA
dma-mapping: Implement link/unlink ranges API
Documentation/core-api/dma-api.rst | 71 ++++++
drivers/iommu/dma-iommu.c | 482 ++++++++++++++++++++++++++++++++-----
drivers/iommu/iommu.c | 84 ++++---
drivers/pci/p2pdma.c | 38 +--
include/linux/dma-map-ops.h | 54 -----
include/linux/dma-mapping.h | 85 +++++++
include/linux/iommu.h | 4 +
include/linux/pci-p2pdma.h | 85 +++++++
kernel/dma/direct.c | 44 ++--
kernel/dma/mapping.c | 18 ++
10 files changed, 764 insertions(+), 201 deletions(-)
----------------------------------------------------------------
Thanks!
Best regards
Marek Szyprowski, PhD
Samsung R&D Institute Poland
More information about the Linux-nvme
mailing list