[PATCH v3 0/2] DMA IOMMU static calls

From: Leon Romanovsky
Date: Sun Jul 21 2024 - 03:49:27 EST


Changelog:
v3:
* Changed coding style as Christoph asked
* Moved debug WARN_ON check to dma_set_mask.
* Slightly updated commit messages
* Added Greg to the CC list
v2: https://lore.kernel.org/all/cover.1721219730.git.leon@xxxxxxxxxx/
* Ditched dma_ops flag in favor of field in struct device (suggested by
Christoph)
* Removed CONFIG_DMA_OPS select from dma-iommu.c Kconfig
* Removed flags field which exist only in default IOMMU
v1: https://lore.kernel.org/all/cover.1721041611.git.leon@xxxxxxxxxx/
* Dropped extra layer and called directly to iommu_dma_* functions
* Added unmap_page and unmap_sg to dummy ops
* Converted all dma-mapping calls to use iommu directly
* Updated commit messages
v0:
https://lore.kernel.org/all/98d1821780028434ff55b5d2f1feea287409fbc4.1720693745.git.leon@xxxxxxxxxx/

Leon Romanovsky (2):
dma: call unconditionally to unmap_page and unmap_sg callbacks
dma: add IOMMU static calls with clear default ops

MAINTAINERS | 1 +
drivers/iommu/Kconfig | 1 -
drivers/iommu/dma-iommu.c | 127 +++++++++++----------------
include/linux/device.h | 5 ++
include/linux/dma-map-ops.h | 33 ++++---
include/linux/iommu-dma.h | 169 ++++++++++++++++++++++++++++++++++++
kernel/dma/dummy.c | 23 +++++
kernel/dma/mapping.c | 84 +++++++++++++++---
8 files changed, 338 insertions(+), 105 deletions(-)
create mode 100644 include/linux/iommu-dma.h

--
2.45.2