Skip to content

arm64: IOMMU-backed DMA mapping

Yong Wu linux-arm-kernel linux-iommu 2 versions – New

Get series with b4
b4 am 1440569966.25782.3.camel@mhfsdcap03

Versions newest first · linked by author and title

  1. v5 Latest0 of 3 patches 0 repliesNew
  2. v1 RFC0 of 5 patches 0 repliesSuperseded

Patches in v5 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/3] arm64: IOMMU-backed DMA mapping
Quoted 15 lines · Robin Murphy

Hi all,

Here's an update following Catalin's feedback on v4[1].

Changes this round:
- Rebased onto linux-next
- IOVA alignment fix applied already
- iommu_iova_cache_init() is now iova_cache_get()
- Tidied up iommu_dma_alloc()
- Simplified pgprot handling
- Removed redundant memset
- Skip coherent page-flushing in a simpler way
- Spotted a bug in iommu_dma_init_domain() where the checks for reinitialising an existing domain were backwards.

Quoted 5 lines

If it is going to be down to me to tackle all the driver fixes and conversion of arch/arm dma_ops, I'd still much rather have this code merged first as a stable base to work with (and un-block arm64 in the meantime). Have we decided yet whether this should go via the IOMMU tree or the arm64 tree?

Hi Robin,
Sorry to disturb you. Is there any plan for the next version of arm64
DMA. If it's yes, when could we get it?
Thanks very much.

Quoted 23 lines

Thanks,
Robin.

[1]:http://thread.gmane.org/gmane.linux.kernel.iommu/10181

Robin Murphy (3):
iommu: Implement common IOMMU ops for DMA mapping
arm64: Add IOMMU dma_ops
arm64: Hook up IOMMU dma_ops

 arch/arm64/Kconfig                   |   1 +
 arch/arm64/include/asm/dma-mapping.h |  15 +-
 arch/arm64/mm/dma-mapping.c          | 449 +++++++++++++++++++++++++++++
 drivers/iommu/Kconfig                |   7 +
 drivers/iommu/Makefile               |   1 +
 drivers/iommu/dma-iommu.c            | 534 +++++++++++++++++++++++++++++++++++
 include/linux/dma-iommu.h            |  84 ++++++
 include/linux/iommu.h                |   1 +
 8 files changed, 1084 insertions(+), 8 deletions(-)
 create mode 100644 drivers/iommu/dma-iommu.c
 create mode 100644 include/linux/dma-iommu.h