Skip to content

iommu, dma-mapping: Simplify arch_setup_dma_ops()

Robin Murphy linux-acpi linux-arm-kernel linux-arm-msm linux-devicetree linux-iommu linux-tegra lkml 4 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 24 repliesApplied
  2. v37 patches 9 repliesSuperseded
  3. v27 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches21 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/7OF: Retire dma-ranges mask workarounddrivers/of/device.c+0 -160 replies
2/7OF: Simplify DMA range calculationsdrivers/of/device.c+8 -110 replies
3/7ACPI/IORT: Handle memory address size limits as limitsdrivers/acpi/arm64/dma.c drivers/acpi/arm64/iort.c include/linux/acpi_iort.h+15 -180 replies
4/7dma-mapping: Add helpers for dma_range_map boundsarch/loongarch/kernel/dma.c drivers/acpi/arm64/dma.c drivers/of/device.c +1 more+23 -230 replies
5/7iommu/dma: Make limit checks self-containeddrivers/iommu/dma-iommu.c+9 -1211 replies
6/7iommu/dma: Centralise iommu_setup_dma_ops()arch/arm64/mm/dma-mapping.c drivers/iommu/amd/iommu.c drivers/iommu/dma-iommu.c +6 more+19 -7310 replies
7/7dma-mapping: Simplify arch_setup_dma_ops()arch/arc/mm/dma.c arch/arm/mm/dma-mapping-nommu.c arch/arm/mm/dma-mapping.c +7 more+19 -351 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchRob HerringJason GunthorpeHanjun GuoChristoph HellwigLu BaoluMichael KelleyCatalin MarinasNiklas SchnelleJon Hunter
1/7A-b
2/7A-b R-b
3/7R-b A-b T-b
4/7A-b R-b R-b T-b R-b
5/7R-b T-b T-b
6/7R-b T-b R-b A-b A-b T-b
7/7A-b R-b T-b R-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 9 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/7] iommu, dma-mapping: Simplify arch_setup_dma_ops()

v3: https://lore.kernel.org/linux-iommu/[email protected]/

Hi all,

Since this ended up missing the boat for 6.9, here's a rebase and resend with the additional tags from v3 collected.

Cheers,
Robin.

Robin Murphy (7):
OF: Retire dma-ranges mask workaround
OF: Simplify DMA range calculations ACPI/IORT: Handle memory address size limits as limits
dma-mapping: Add helpers for dma_range_map bounds iommu/dma: Make limit checks self-contained iommu/dma: Centralise iommu_setup_dma_ops()
dma-mapping: Simplify arch_setup_dma_ops()

 arch/arc/mm/dma.c               |  3 +--
 arch/arm/mm/dma-mapping-nommu.c |  3 +--
 arch/arm/mm/dma-mapping.c       | 16 +++++++------
 arch/arm64/mm/dma-mapping.c     |  5 +---
 arch/loongarch/kernel/dma.c     |  9 ++-----
 arch/mips/mm/dma-noncoherent.c  |  3 +--
 arch/riscv/mm/dma-noncoherent.c |  3 +--
 drivers/acpi/arm64/dma.c        | 17 ++++---------
 drivers/acpi/arm64/iort.c       | 20 ++++++++--------
 drivers/acpi/scan.c             |  7 +-----
 drivers/hv/hv_common.c          |  6 +----
 drivers/iommu/amd/iommu.c       |  8 -------
 drivers/iommu/dma-iommu.c       | 39 ++++++++++++------------------
 drivers/iommu/dma-iommu.h       | 14 +++++------
 drivers/iommu/intel/iommu.c     |  7 ------
 drivers/iommu/iommu.c           | 20 ++++++----------
 drivers/iommu/s390-iommu.c      |  6 -----
 drivers/iommu/virtio-iommu.c    | 10 --------
 drivers/of/device.c             | 42 ++++++---------------------------
 include/linux/acpi_iort.h       |  4 ++--
 include/linux/dma-direct.h      | 18 ++++++++++++++
 include/linux/dma-map-ops.h     |  6 ++---
 include/linux/iommu.h           |  7 ------
 23 files changed, 89 insertions(+), 184 deletions(-)
Signature · 1 line
2.39.2.101.g768bb238c484.dirty