Skip to content

iommu: Remove usage of dev->archdata.iommu

Joerg Roedel intel-gfx linux-arm-kernel linux-ia64 linux-iommu linuxppc-dev lkml 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13iommu/exynos: Use dev_iommu_priv_get/set()drivers/iommu/exynos-iommu.c drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h+13 -111 reply
2/13iommu/vt-d: Use dev_iommu_priv_get/set()drivers/gpu/drm/i915/selftests/mock_gem_device.c drivers/iommu/intel/iommu.c+17 -111 reply
3/13iommu/msm: Use dev_iommu_priv_get/set()drivers/iommu/msm_iommu.c+2 -20 replies
4/13iommu/omap: Use dev_iommu_priv_get/set()drivers/iommu/omap-iommu.c+10 -100 replies
5/13iommu/rockchip: Use dev_iommu_priv_get/set()drivers/iommu/rockchip-iommu.c+4 -40 replies
6/13iommu/tegra: Use dev_iommu_priv_get/set()drivers/iommu/tegra-gart.c drivers/iommu/tegra-smmu.c+8 -80 replies
7/13iommu/pamu: Use dev_iommu_priv_get/set()drivers/iommu/fsl_pamu_domain.c+4 -40 replies
8/13iommu/mediatek: Do no use dev->archdata.iommudrivers/iommu/mtk_iommu.h drivers/iommu/mtk_iommu_v1.c+6 -60 replies
9/13x86: Remove dev->archdata.iommu pointerarch/x86/include/asm/device.h+0 -31 reply
10/13ia64: Remove dev->archdata.iommu pointerarch/ia64/include/asm/device.h+0 -30 replies
11/13arm: Remove dev->archdata.iommu pointerarch/arm/include/asm/device.h+0 -30 replies
12/13arm64: Remove dev->archdata.iommu pointerarch/arm64/include/asm/device.h+0 -31 reply
13/13powerpc/dma: Remove dev->archdata.iommu_domainarch/powerpc/include/asm/device.h+0 -31 reply

Reviews trailers per patch

5 of 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWill DeaconLu BaoluJerry SnitselaarBorislav PetkovMarek SzyprowskiMichael Ellerman
SeriesR-b
1/13A-b
2/13R-b
3/13
4/13
5/13
6/13
7/13
8/13
9/13A-b
10/13
11/13
12/13A-b
13/13A-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 6 reviewers.

Read the v1 thread

Cover letter [PATCH 00/13] iommu: Remove usage of dev->archdata.iommu

From: Joerg Roedel <[email protected]>

Hi,

here is a patch-set to remove the usage of dev->archdata.iommu from the IOMMU code in the kernel and replace its uses by the iommu per-device private data field. The changes also remove the field entirely from the architectures which no longer need it.

On PowerPC the field is called dev->archdata.iommu_domain and was only used by the PAMU IOMMU driver. It gets removed as well.

The patches have been runtime tested on Intel VT-d and compile tested with allyesconfig for:

* x86 (32 and 64 bit)
* arm and arm64
* ia64 (only drivers/ because build failed for me in arch/ia64)
* PPC64

Besides that the changes also survived my IOMMU tree compile tests.

Please review.

Regards,

Joerg

Joerg Roedel (13):
iommu/exynos: Use dev_iommu_priv_get/set()
iommu/vt-d: Use dev_iommu_priv_get/set()
iommu/msm: Use dev_iommu_priv_get/set()
iommu/omap: Use dev_iommu_priv_get/set()
iommu/rockchip: Use dev_iommu_priv_get/set()
iommu/tegra: Use dev_iommu_priv_get/set()
iommu/pamu: Use dev_iommu_priv_get/set()
iommu/mediatek: Do no use dev->archdata.iommu
x86: Remove dev->archdata.iommu pointer
ia64: Remove dev->archdata.iommu pointer
arm: Remove dev->archdata.iommu pointer
arm64: Remove dev->archdata.iommu pointer
powerpc/dma: Remove dev->archdata.iommu_domain

 arch/arm/include/asm/device.h                 |  3 ---
 arch/arm64/include/asm/device.h               |  3 ---
 arch/ia64/include/asm/device.h                |  3 ---
 arch/powerpc/include/asm/device.h             |  3 ---
 arch/x86/include/asm/device.h                 |  3 ---
 .../gpu/drm/i915/selftests/mock_gem_device.c  | 10 ++++++++--
 drivers/iommu/exynos-iommu.c                  | 20 +++++++++----------
 drivers/iommu/fsl_pamu_domain.c               |  8 ++++----
 drivers/iommu/intel/iommu.c                   | 18 ++++++++---------
 drivers/iommu/msm_iommu.c                     |  4 ++--
 drivers/iommu/mtk_iommu.h                     |  2 ++
 drivers/iommu/mtk_iommu_v1.c                  | 10 ++++------
 drivers/iommu/omap-iommu.c                    | 20 +++++++++----------
 drivers/iommu/rockchip-iommu.c                |  8 ++++----
 drivers/iommu/tegra-gart.c                    |  8 ++++----
 drivers/iommu/tegra-smmu.c                    |  8 ++++----
 .../media/platform/s5p-mfc/s5p_mfc_iommu.h    |  4 +++-
 17 files changed, 64 insertions(+), 71 deletions(-)
Signature · 1 line
2.27.0