All of lore.kernel.org
 help / color / mirror / Atom feed
* implement generic dma_map_ops for IOMMUs v4
@ 2019-04-30 10:51 ` Christoph Hellwig
  0 siblings, 0 replies; 119+ messages in thread
From: Christoph Hellwig @ 2019-04-30 10:51 UTC (permalink / raw)
  To: Robin Murphy
  Cc: Joerg Roedel, Catalin Marinas, Will Deacon, Tom Lendacky, iommu,
	linux-arm-kernel, linux-kernel

Hi Robin,

please take a look at this series, which implements a completely generic
set of dma_map_ops for IOMMU drivers.  This is done by taking the
existing arm64 code, moving it to drivers/iommu and then massaging it
so that it can also work for architectures with DMA remapping.  This
should help future ports to support IOMMUs more easily, and also allow
to remove various custom IOMMU dma_map_ops implementations, like Tom
was planning to for the AMD one.

A git tree is also available at:

    git://git.infradead.org/users/hch/misc.git dma-iommu-ops.3

Gitweb:

    http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-iommu-ops.3

Changes since v3:
 - fold the separate patch to refactor mmap bounds checking
 - don't warn on not finding a vm_area
 - improve a commit log
 - refactor __dma_iommu_free a little differently
 - remove a minor MSI map cleanup to avoid a conflict with the
   "Split iommu_dma_map_msi_msg" series

Changes since v2:
 - address various review comments and include patches from Robin

Changes since v1:
 - only include other headers in dma-iommu.h if CONFIG_DMA_IOMMU is enabled
 - keep using a scatterlist in iommu_dma_alloc
 - split out mmap/sgtable fixes and move them early in the series
 - updated a few commit logs

^ permalink raw reply	[flat|nested] 119+ messages in thread

end of thread, other threads:[~2019-05-07 11:35 UTC | newest]

Thread overview: 119+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-30 10:51 implement generic dma_map_ops for IOMMUs v4 Christoph Hellwig
2019-04-30 10:51 ` Christoph Hellwig
2019-04-30 10:51 ` Christoph Hellwig
2019-04-30 10:51 ` Christoph Hellwig
2019-04-30 10:51 ` [PATCH 01/25] arm64/iommu: handle non-remapped addresses in ->mmap and ->get_sgtable Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-05-03 11:33   ` Catalin Marinas
2019-05-03 11:33     ` Catalin Marinas
2019-05-03 11:33     ` Catalin Marinas
2019-05-07  6:37     ` Christoph Hellwig
2019-05-07  6:37       ` Christoph Hellwig
2019-05-07  6:37       ` Christoph Hellwig
2019-05-07  9:05       ` Will Deacon
2019-05-07  9:05         ` Will Deacon
2019-05-07  9:05         ` Will Deacon
2019-04-30 10:51 ` [PATCH 02/25] dma-mapping: add a Kconfig symbol to indicated arch_dma_prep_coherent presence Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-05-03 11:36   ` Catalin Marinas
2019-05-03 11:36     ` Catalin Marinas
2019-05-03 11:36     ` Catalin Marinas
2019-04-30 10:51 ` [PATCH 03/25] iommu/dma: Cleanup dma-iommu.h Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51 ` [PATCH 04/25] iommu/dma: Remove the flush_page callback Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-05-03 11:43   ` Catalin Marinas
2019-05-03 11:43     ` Catalin Marinas
2019-05-03 11:43     ` Catalin Marinas
2019-05-03 11:44     ` Catalin Marinas
2019-05-03 11:44       ` Catalin Marinas
2019-05-03 11:44       ` Catalin Marinas
2019-04-30 10:51 ` [PATCH 05/25] iommu/dma: Use for_each_sg in iommu_dma_alloc Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51 ` [PATCH 06/25] iommu/dma: move the arm64 wrappers to common code Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-05-03 11:45   ` Catalin Marinas
2019-05-03 11:45     ` Catalin Marinas
2019-05-03 11:45     ` Catalin Marinas
2019-04-30 10:51 ` [PATCH 07/25] iommu/dma: Move __iommu_dma_map Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51 ` [PATCH 08/25] iommu/dma: Move domain lookup into __iommu_dma_{map,unmap} Christoph Hellwig
2019-04-30 10:51   ` [PATCH 08/25] iommu/dma: Move domain lookup into __iommu_dma_{map, unmap} Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51 ` [PATCH 09/25] iommu/dma: Squash __iommu_dma_{map,unmap}_page helpers Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51 ` [PATCH 10/25] iommu/dma: Factor out remapped pages lookup Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:51   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 11/25] iommu/dma: Refactor the page array remapping allocator Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 12/25] iommu/dma: Remove __iommu_dma_free Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 13/25] iommu/dma: Refactor iommu_dma_free Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 14/25] iommu/dma: Refactor iommu_dma_alloc Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 15/25] iommu/dma: Don't remap CMA unnecessarily Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 16/25] iommu/dma: Merge the CMA and alloc_pages allocation paths Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 17/25] iommu/dma: Split iommu_dma_free Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 18/25] iommu/dma: Cleanup variable naming in iommu_dma_alloc Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 19/25] iommu/dma: Refactor iommu_dma_alloc, part 2 Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 20/25] iommu/dma: Refactor iommu_dma_get_sgtable Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 21/25] iommu/dma: Refactor iommu_dma_mmap Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 22/25] iommu/dma: Don't depend on CONFIG_DMA_DIRECT_REMAP Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 23/25] iommu/dma: Switch copyright boilerplace to SPDX Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52 ` [PATCH 24/25] arm64: switch copyright boilerplace to SPDX in dma-mapping.c Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-05-03 11:45   ` Catalin Marinas
2019-05-03 11:45     ` Catalin Marinas
2019-05-03 11:45     ` Catalin Marinas
2019-04-30 10:52 ` [PATCH 25/25] arm64: trim includes " Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-04-30 10:52   ` Christoph Hellwig
2019-05-03 11:46   ` Catalin Marinas
2019-05-03 11:46     ` Catalin Marinas
2019-05-03 11:46     ` Catalin Marinas
2019-05-02 13:22 ` implement generic dma_map_ops for IOMMUs v4 Christoph Hellwig
2019-05-02 13:22   ` Christoph Hellwig
2019-05-02 13:22   ` Christoph Hellwig
2019-05-03 11:47   ` Catalin Marinas
2019-05-03 11:47     ` Catalin Marinas
2019-05-03 11:47     ` Catalin Marinas
2019-05-03 11:59     ` Christoph Hellwig
2019-05-03 11:59       ` Christoph Hellwig
2019-05-03 11:59       ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.