[GIT PULL] dma-mapping updates for Linux 7.1

From: Marek Szyprowski

Date: Thu Apr 16 2026 - 16:44:23 EST


The following changes since commit 2cdaff22ed26f1e619aa2b43f27bb84f2c6ef8f8:

dma-mapping: add missing `inline` for `dma_free_attrs` (2026-03-25 08:01:21 +0100)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux.git tags/dma-mapping-7.1-2026-04-16

for you to fetch changes up to 15818b2cd42df3cc886f4cc46acfab4d072dcacc:

dma-buf: heaps: system: document system_cc_shared heap (2026-04-10 14:20:01 +0200)

----------------------------------------------------------------
dma-mapping updates for Linux 7.0:

- added support for batched cache sync, what improves performance of
dma_map/unmap_sg() operations on ARM64 architecture (Barry Song)

- introduced DMA_ATTR_CC_SHARED attribute for explicitly shared memory
used in confidential computing (Jiri Pirko)

- refactored spaghetti-like code in drivers/of/of_reserved_mem.c and its
clients (Marek Szyprowski, shared branch with device-tree updates to
avoid merge conflicts)

- prepared Contiguous Memory Allocator related code for making dma-buf
drivers modularized (Maxime Ripard)

- added support for benchmarking dma_map_sg() calls to tools/dma utility
(Qinxin Xia)

----------------------------------------------------------------
Barry Song (5):
arm64: Provide dcache_by_myline_op_nosync helper
arm64: Provide dcache_clean_poc_nosync helper
arm64: Provide dcache_inval_poc_nosync helper
dma-mapping: Separate DMA sync issuing and completion waiting
dma-mapping: Support batch mode for dma_direct_{map,unmap}_sg

Jiri Pirko (3):
dma-mapping: introduce DMA_ATTR_CC_SHARED for shared memory
dma-buf: heaps: system: add system_cc_shared heap for explicitly shared memory
dma-buf: heaps: system: document system_cc_shared heap

Kit Dallege (1):
dma-mapping: fix false kernel-doc comment marker

Marek Szyprowski (10):
Merge tag 'dma-mapping-7.0-2026-03-25' into dma-mapping-for-next
of: reserved_mem: remove fdt node from the structure
of: reserved_mem: use -ENODEV instead of -ENOENT
of: reserved_mem: switch to ops based OF_DECLARE()
of: reserved_mem: replace CMA quirks by generic methods
of: reserved_mem: rearrange code a bit
of: reserved_mem: clarify fdt_scan_reserved_mem*() functions
of: reserved_mem: rework fdt_init_reserved_mem_node()
Merge branch 'dt-reserved-mem-cleanups' into dma-mapping-for-next
Merge branch 'dma-contig-for-7.1-modules-prep-v4' into dma-mapping-for-next

Maxime Ripard (5):
dma: contiguous: Turn heap registration logic around
dma: contiguous: Make dev_get_cma_area() a proper function
dma: contiguous: Make dma_contiguous_default_area static
dma: contiguous: Export dev_get_cma_area()
mm: cma: Export cma_alloc(), cma_release() and cma_get_name()

Qinxin Xia (3):
dma-mapping: benchmark: modify the framework to adapt to more map modes
dma-mapping: benchmark: add support for dma_map_sg
tools/dma: Add dma_map_sg support

Documentation/userspace-api/dma-buf-heaps.rst | 7 +
arch/arm64/Kconfig | 1 +
arch/arm64/include/asm/assembler.h | 25 +-
arch/arm64/include/asm/cache.h | 5 +
arch/arm64/include/asm/cacheflush.h | 2 +
arch/arm64/kernel/relocate_kernel.S | 3 +-
arch/arm64/mm/cache.S | 57 ++++-
arch/arm64/mm/dma-mapping.c | 4 +-
drivers/dma-buf/heaps/cma_heap.c | 19 +-
drivers/dma-buf/heaps/system_heap.c | 103 ++++++++-
drivers/iommu/dma-iommu.c | 35 ++-
drivers/memory/tegra/tegra210-emc-table.c | 19 +-
drivers/of/fdt.c | 2 +-
drivers/of/of_private.h | 2 +-
drivers/of/of_reserved_mem.c | 320 +++++++++++++++-----------
drivers/xen/swiotlb-xen.c | 24 +-
include/linux/cma.h | 10 -
include/linux/dma-buf/heaps/cma.h | 16 --
include/linux/dma-map-ops.h | 23 +-
include/linux/dma-mapping.h | 12 +-
include/linux/of_reserved_mem.h | 16 +-
include/trace/events/dma.h | 3 +-
include/uapi/linux/map_benchmark.h | 13 +-
kernel/dma/Kconfig | 3 +
kernel/dma/coherent.c | 19 +-
kernel/dma/contiguous.c | 144 +++++++++---
kernel/dma/direct.c | 23 +-
kernel/dma/direct.h | 35 ++-
kernel/dma/map_benchmark.c | 246 ++++++++++++++++++--
kernel/dma/mapping.c | 19 +-
kernel/dma/swiotlb.c | 26 ++-
mm/cma.c | 3 +
tools/dma/dma_map_benchmark.c | 23 +-
33 files changed, 917 insertions(+), 345 deletions(-)
delete mode 100644 include/linux/dma-buf/heaps/cma.h

----------------------------------------------------------------

Thanks!

Best regards
Marek Szyprowski, PhD
Samsung R&D Institute Poland