Skip to content

iommu: Remove IOMMU_DEV_FEAT_SVA/_IOPF

Lu Baolu dri-devel linux-iommu lkml 5 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. v5 Latest8 patches 9 repliesApplied
  2. v48 patches 14 repliesSuperseded
  3. v312 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v212 patches25 repliesSuperseded
v112 patches31 repliesSuperseded

Changes in v5 from the cover letter

- Rebased to v6.15-rc1. No functionality change.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/8iommu/arm-smmu-v3: Put iopf enablement in the domain attach pathdrivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h+90 -1390 replies
2/8iommu: Remove IOMMU_DEV_FEAT_SVAdrivers/accel/amdxdna/aie2_pci.c drivers/dma/idxd/init.c drivers/iommu/amd/iommu.c +5 more+4 -486 replies
3/8iommu/vt-d: Put iopf enablement in domain attach pathdrivers/iommu/intel/iommu.c drivers/iommu/intel/iommu.h drivers/iommu/intel/nested.c +1 more+90 -100 replies
4/8iommufd/selftest: Put iopf enablement in domain attach pathdrivers/iommu/iommufd/selftest.c+47 -100 replies
5/8dmaengine: idxd: Remove unnecessary IOMMU_DEV_FEAT_IOPFdrivers/dma/idxd/init.c+6 -310 replies
6/8uacce: Remove unnecessary IOMMU_DEV_FEAT_IOPFdrivers/misc/uacce/uacce.c+0 -310 replies
7/8iommufd: Remove unnecessary IOMMU_DEV_FEAT_IOPFdrivers/iommu/iommufd/device.c drivers/iommu/iommufd/eventq.c drivers/iommu/iommufd/iommufd_private.h+30 -830 replies
8/8iommu: Remove iommu_dev_enable/disable_feature()drivers/iommu/amd/iommu.c drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c drivers/iommu/intel/iommu.c +2 more+0 -1511 reply

Reviews trailers per patch

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

PatchZhangfei GaoWill DeaconKevin TianYi LiuNicolin ChenVinod KoulDave JiangFenghua YuJason Gunthorpe
1/8T-b A-b
2/8T-b R-b R-b
3/8T-b R-b R-b
4/8T-b R-b R-b R-b
5/8T-b R-b R-b A-b R-b R-b R-b
6/8A-b T-b R-b R-b
7/8T-b R-b R-b
8/8T-b R-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 9 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/8] iommu: Remove IOMMU_DEV_FEAT_SVA/_IOPF

The new method for driver fault reporting support relies on the domain to specify a iopf_handler. The driver should detect this and setup the HW when fault capable domains are attached.

Move SMMUv3 to use this method and have VT-D validate support during attach so that all three fault capable drivers have a no-op FEAT_SVA and _IOPF. Then remove them.

This was initiated by Jason. I'm following up to remove FEAT_IOPF and further clean up.

The whole series is also available at github:
https://github.com/LuBaolu/intel-iommu/commits/iommu_no_feat-v5

Change log:
v5:
- Rebased to v6.15-rc1. No functionality change.

v4: https://lore.kernel.org/linux-iommu/[email protected]/
- Refined arm_smmu_disable_iopf() to improve code clarity.
- Separate patches for vt-d refactoring have been merged.
- All patches are based on the latest iommu/next branch to prevent potential merge conflicts.

v3: https://lore.kernel.org/linux-iommu/[email protected]/
- Series has been tested by Zhangfei Gao with arm-smmu-v3 driver.
- Refined some code according to Kevin's suggestions.
- No functional change.

v2: https://lore.kernel.org/linux-iommu/[email protected]/
- Fix removing wrong nesting master_domain in arm_smmu_remove_master_domain().
- Fix iopf enable/disable in iommufd mock driver for domain
replacement.

v1: https://lore.kernel.org/linux-iommu/[email protected]/

Jason Gunthorpe (2):
iommu/arm-smmu-v3: Put iopf enablement in the domain attach path
iommu: Remove IOMMU_DEV_FEAT_SVA

Lu Baolu (6):
iommu/vt-d: Put iopf enablement in domain attach path iommufd/selftest: Put iopf enablement in domain attach path
dmaengine: idxd: Remove unnecessary IOMMU_DEV_FEAT_IOPF
uacce: Remove unnecessary IOMMU_DEV_FEAT_IOPF
iommufd: Remove unnecessary IOMMU_DEV_FEAT_IOPF
iommu: Remove iommu_dev_enable/disable_feature()

 drivers/accel/amdxdna/aie2_pci.c              |  13 +-
 drivers/dma/idxd/init.c                       |  43 +-----
 drivers/iommu/amd/iommu.c                     |  34 -----
 .../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c   |  86 +----------
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   | 136 ++++++++++--------
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h   |  39 +----
 drivers/iommu/intel/iommu.c                   |  71 +++++----
 drivers/iommu/intel/iommu.h                   |  33 +++++
 drivers/iommu/intel/nested.c                  |  16 ++-
 drivers/iommu/intel/svm.c                     |   9 +-
 drivers/iommu/iommu-sva.c                     |   3 -
 drivers/iommu/iommu.c                         |  32 -----
 drivers/iommu/iommufd/device.c                |  59 ++++----
 drivers/iommu/iommufd/eventq.c                |  48 +------
 drivers/iommu/iommufd/iommufd_private.h       |   6 -
 drivers/iommu/iommufd/selftest.c              |  57 ++++++--
 drivers/misc/uacce/uacce.c                    |  40 ------
 include/linux/iommu.h                         |  35 -----
 18 files changed, 262 insertions(+), 498 deletions(-)
Signature · 1 line
2.43.0