Skip to content

iommu/amd: Convert the AMD iommu driver to the dma-iommu api

Tom Murphy linux-arm-kernel linux-arm-msm linux-iommu linux-mediatek linux-rockchip linux-s390 linux-samsung-soc linux-tegra lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest5 patches 12 repliesIn review

Changes in v4 from the cover letter

-Rebase on top of linux-next
-Split the removing of the unnecessary locking in the amd iommu driver into a seperate patch -refactor the "iommu/dma-iommu: Handle deferred devices" patch and address comments v3:
-rename dma_limit to dma_mask
-exit handle_deferred_device early if (!is_kdump_kernel())
-remove pointless calls to handle_deferred_device

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iommu/amd: Remove unnecessary locking from AMD iommu driverdrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_types.h+1 -100 replies
1/5iommu/amd: Remove unnecessary locking from AMD iommu driverdrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_types.h+1 -100 replies
2/5iommu: Add gfp parameter to iommu_ops::mapdrivers/iommu/amd_iommu.c drivers/iommu/arm-smmu-v3.c drivers/iommu/arm-smmu.c +16 more+77 -260 replies
2/5iommu: Add gfp parameter to iommu_ops::mapdrivers/iommu/amd_iommu.c drivers/iommu/arm-smmu-v3.c drivers/iommu/arm-smmu.c +16 more+77 -260 replies
3/5iommu/dma-iommu: Handle deferred devicesdrivers/iommu/dma-iommu.c+26 -10 replies
3/5iommu/dma-iommu: Handle deferred devicesdrivers/iommu/dma-iommu.c+26 -10 replies
4/5iommu/dma-iommu: Use the dev->coherent_dma_maskdrivers/iommu/dma-iommu.c+8 -60 replies
4/5iommu/dma-iommu: Use the dev->coherent_dma_maskdrivers/iommu/dma-iommu.c+8 -60 replies
5/5iommu/amd: Convert AMD iommu driver to the dma-iommu apidrivers/iommu/Kconfig drivers/iommu/amd_iommu.c+68 -6100 replies
5/5iommu/amd: Convert AMD iommu driver to the dma-iommu apidrivers/iommu/Kconfig drivers/iommu/amd_iommu.c+68 -6100 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/5] iommu/amd: Convert the AMD iommu driver to the dma-iommu api

Convert the AMD iommu driver to the dma-iommu api. Remove the iova handling and reserve region code from the AMD iommu driver.

Change-log:
V4:
-Rebase on top of linux-next
-Split the removing of the unnecessary locking in the amd iommu driver into a seperate patch -refactor the "iommu/dma-iommu: Handle deferred devices" patch and address comments v3:
-rename dma_limit to dma_mask
-exit handle_deferred_device early if (!is_kdump_kernel())
-remove pointless calls to handle_deferred_device
v2:
-Rebase on top of this series:
http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-iommu-ops.3
-Add a gfp_t parameter to the iommu_ops::map function.
-Made use of the reserve region code inside the dma-iommu api

Tom Murphy (5):
iommu/amd: Remove unnecessary locking from AMD iommu driver
iommu: Add gfp parameter to iommu_ops::map iommu/dma-iommu: Handle deferred devices iommu/dma-iommu: Use the dev->coherent_dma_mask iommu/amd: Convert AMD iommu driver to the dma-iommu api

 drivers/iommu/Kconfig           |   1 +
 drivers/iommu/amd_iommu.c       | 690 ++++----------------------------
 drivers/iommu/amd_iommu_types.h |   1 -
 drivers/iommu/arm-smmu-v3.c     |   2 +-
 drivers/iommu/arm-smmu.c        |   2 +-
 drivers/iommu/dma-iommu.c       |  45 ++-
 drivers/iommu/exynos-iommu.c    |   2 +-
 drivers/iommu/intel-iommu.c     |   2 +-
 drivers/iommu/iommu.c           |  43 +-
 drivers/iommu/ipmmu-vmsa.c      |   2 +-
 drivers/iommu/msm_iommu.c       |   2 +-
 drivers/iommu/mtk_iommu.c       |   2 +-
 drivers/iommu/mtk_iommu_v1.c    |   2 +-
 drivers/iommu/omap-iommu.c      |   2 +-
 drivers/iommu/qcom_iommu.c      |   2 +-
 drivers/iommu/rockchip-iommu.c  |   2 +-
 drivers/iommu/s390-iommu.c      |   2 +-
 drivers/iommu/tegra-gart.c      |   2 +-
 drivers/iommu/tegra-smmu.c      |   2 +-
 drivers/iommu/virtio-iommu.c    |   2 +-
 include/linux/iommu.h           |  21 +-
 21 files changed, 179 insertions(+), 652 deletions(-)
Signature · 1 line
2.20.1