Skip to content

iommu: Pass in old_domain pointer to attach_dev

Nicolin Chen asahi linux-arm-kernel linux-arm-msm linux-iommu linux-mediatek linux-patches linux-riscv linux-rockchip linux-s390 linux-samsung-soc linux-sunxi linux-tegra lkml virtualization 2 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. v2 Latest6 patches 4 repliesApplied 5/6
  2. v16 patches 6 repliesSuperseded

Patches in v2 Applied · 5/6

#Subject and filesSizeRepliesApplied
1/6iommu: Generic support for RMRs during device releasedrivers/iommu/iommu.c+14 -21 replyApplied
2/6iommu/arm-smmu-v3: Set release_domain to arm_smmu_blocked_domaindrivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c+1 -60 repliesApplied
3/6iommu/exynos-iommu: Set release_domain to exynos_identity_domaindrivers/iommu/exynos-iommu.c+1 -20 repliesApplied
4/6iommu/amd: Set release_domain to blocked_domaindrivers/iommu/amd/iommu.c+1 -90 repliesApplied
5/6iommu: Do not revert set_domain for the last gdevdrivers/iommu/iommu.c+3 -21 replyApplied
6/6iommu: Pass in old domain to attach_dev callback functionsarch/powerpc/kernel/iommu.c drivers/iommu/amd/iommu.c drivers/iommu/apple-dart.c +23 more+153 -1001 reply

Reviews trailers per patch

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

PatchJason GunthorpeMarek SzyprowskiKevin TianLu Baolu
1/6R-b
2/6R-b
3/6R-b A-b
4/6R-b
5/6R-b R-b
6/6R-b R-b R-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 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/6] iommu: Pass in old_domain pointer to attach_dev

Tidy the release_device callbacks in the drivers and switch to the core managed release_domain.

This allows the core further to pass in the old domain pointer into the attach_dev callbacks to reduce the use of iommu_get_domain_for_dev().

This is a preparatory series for new iommu_dev_reset APIs:
https://lore.kernel.org/all/[email protected]/

This is on github:
https://github.com/nicolinc/iommufd/tree/iommu_attach_old_dom-v2

Changelog
v2
* Add "Acked-by" from Marek
* Add "Reviewed-by" from Jason
* Fix build break in s390-iommu
v1
https://lore.kernel.org/all/[email protected]/

Jason Gunthorpe (1):
iommu: Generic support for RMRs during device release

Nicolin Chen (5):
iommu/arm-smmu-v3: Set release_domain to arm_smmu_blocked_domain iommu/exynos-iommu: Set release_domain to exynos_identity_domain iommu/amd: Set release_domain to blocked_domain
iommu: Do not revert set_domain for the last gdev
iommu: Pass in old domain to attach_dev callback functions

 include/linux/iommu.h                         |  3 +-
 arch/powerpc/kernel/iommu.c                   |  5 ++-
 drivers/iommu/amd/iommu.c                     | 21 +++------
 drivers/iommu/apple-dart.c                    |  9 ++--
 .../arm/arm-smmu-v3/arm-smmu-v3-iommufd.c     |  5 ++-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   | 31 ++++++-------
 drivers/iommu/arm/arm-smmu/arm-smmu.c         |  9 ++--
 drivers/iommu/arm/arm-smmu/qcom_iommu.c       | 11 ++---
 drivers/iommu/exynos-iommu.c                  | 11 ++---
 drivers/iommu/fsl_pamu_domain.c               | 12 ++---
 drivers/iommu/intel/iommu.c                   | 10 +++--
 drivers/iommu/intel/nested.c                  |  2 +-
 drivers/iommu/iommu.c                         | 44 +++++++++++++------
 drivers/iommu/iommufd/selftest.c              |  2 +-
 drivers/iommu/ipmmu-vmsa.c                    | 10 ++---
 drivers/iommu/msm_iommu.c                     | 11 ++---
 drivers/iommu/mtk_iommu.c                     |  8 ++--
 drivers/iommu/mtk_iommu_v1.c                  |  7 ++-
 drivers/iommu/omap-iommu.c                    | 12 ++---
 drivers/iommu/riscv/iommu.c                   |  9 ++--
 drivers/iommu/rockchip-iommu.c                | 20 ++++++---
 drivers/iommu/s390-iommu.c                    | 13 +++---
 drivers/iommu/sprd-iommu.c                    |  3 +-
 drivers/iommu/sun50i-iommu.c                  |  8 ++--
 drivers/iommu/tegra-smmu.c                    | 10 ++---
 drivers/iommu/virtio-iommu.c                  |  6 ++-
 26 files changed, 172 insertions(+), 120 deletions(-)
Signature · 1 line
2.43.0