iommu: Introduce and roll out test_dev domain op
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 22 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | iommu: Lock group->mutex in iommu_deferred_attach()drivers/ | +10 | 0 replies | |
| 2/20 | iommu: Introduce a test_dev domain op and an internal helperdrivers/ include/ | +93 | 15 replies | |
| 3/20 | iommu/arm-smmu-v3: Implement arm_smmu_domain_test_devdrivers/ drivers/ drivers/ +1 more | +74 | 4 replies | |
| 4/20 | iommu/intel: Implement test_dev callbacks to domain opsdrivers/ drivers/ drivers/ | +67 | 0 replies | |
| 5/20 | iommu/amd: Implement test_dev callbacks to domain opsdrivers/ drivers/ drivers/ | +38 | 0 replies | |
| 6/20 | iommu/arm-smmu: Implement arm_smmu_test_devdrivers/ | +71 | 0 replies | |
| 7/20 | iommu/qcom_iommu: Implement test_dev callbacks to domain opsdrivers/ | +34 | 0 replies | |
| 8/20 | iommu/riscv: Implement riscv_iommu_test_paging_domaindrivers/ | +13 | 0 replies | |
| 9/20 | iommu/mkt_iommu: Implement mtk_iommu_test_devicedrivers/ | +15 | 0 replies | |
| 10/20 | iommu/apple-dart: Implement test_dev callbacks to domain opsdrivers/ | +39 | 0 replies | |
| 11/20 | iommu/ipmmu-vmsa: Implement ipmmu_domain_test_devicedrivers/ | +26 | 0 replies | |
| 12/20 | iommu/sun50i-iommu: Implement sun50i_iommu_domain_test_devicedrivers/ | +11 | 0 replies | |
| 13/20 | iommu/rockchip-iommu: Implement rk_iommu_identity_test_devdrivers/ | +12 | 0 replies | |
| 14/20 | iommu/msm_iommu: Implement msm_iommu_domain_test_devdrivers/ | +26 | 0 replies | |
| 15/20 | iommu/fsl_pamu_domain: Implement fsl_pamu_domain_test_devicedrivers/ | +38 | 1 reply | |
| 16/20 | iommu/omap-iommu: Implement omap_iommu_domain_test_devdrivers/ | +26 | 0 replies | |
| 17/20 | iommu/s390-iommu: Implement s390_iommu_domain_test_devicedrivers/ | +15 | 1 reply | |
| 18/20 | iommufd/selftest: Implement mock_domain_nop_testdrivers/ | +36 | 0 replies | |
| 19/20 | iommu/virtio-iommu: Implement viommu_domain_test_devdrivers/ | +13 | 0 replies | |
| 20/20 | iommu/tegra-smmu: Implement tegra_smmu_domain_test_devdrivers/ | +14 | 0 replies |
Reviews trailers per patch
3 of 20 patches have a Reviewed-by or Acked-by.
| Patch | Jason Gunthorpe | Kevin Tian | Niklas Schnelle |
|---|---|---|---|
| 1/20 | R-b | R-b | |
| 2/20 | R-b | ||
| 3/20 | |||
| 4/20 | |||
| 5/20 | |||
| 6/20 | |||
| 7/20 | |||
| 8/20 | |||
| 9/20 | |||
| 10/20 | |||
| 11/20 | |||
| 12/20 | |||
| 13/20 | |||
| 14/20 | |||
| 15/20 | |||
| 16/20 | |||
| 17/20 | R-b | ||
| 18/20 | |||
| 19/20 | |||
| 20/20 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v1 00/20] iommu: Introduce and roll out test_dev domain op
Add a new test_dev domain op for drivers to run a compatibility test prior to the actual attachment at the driver level. Any incompatible attachment will be rejected early, allowing the iommu core to postpone any concurrent attachment during a device reset state.
This is a preparatory series for new iommu_dev_reset APIs:
https://lore.kernel.org/all/[email protected]/
The change is a must to keep attach uAPI behavior consistent.
This is on github:
https://github.com/nicolinc/iommufd/tree/iommu_test_dev-v1
Nicolin Chen (20):
iommu: Lock group->mutex in iommu_deferred_attach()
iommu: Introduce a test_dev domain op and an internal helper iommu/arm-smmu-v3: Implement arm_smmu_domain_test_dev iommu/intel: Implement test_dev callbacks to domain ops iommu/amd: Implement test_dev callbacks to domain ops iommu/arm-smmu: Implement arm_smmu_test_dev iommu/qcom_iommu: Implement test_dev callbacks to domain ops iommu/riscv: Implement riscv_iommu_test_paging_domain iommu/mkt_iommu: Implement mtk_iommu_test_device iommu/apple-dart: Implement test_dev callbacks to domain ops iommu/ipmmu-vmsa: Implement ipmmu_domain_test_device iommu/sun50i-iommu: Implement sun50i_iommu_domain_test_device iommu/rockchip-iommu: Implement rk_iommu_identity_test_dev iommu/msm_iommu: Implement msm_iommu_domain_test_dev iommu/fsl_pamu_domain: Implement fsl_pamu_domain_test_device iommu/omap-iommu: Implement omap_iommu_domain_test_dev iommu/s390-iommu: Implement s390_iommu_domain_test_device iommufd/selftest: Implement mock_domain_nop_test iommu/virtio-iommu: Implement viommu_domain_test_dev iommu/tegra-smmu: Implement tegra_smmu_domain_test_dev
drivers/iommu/amd/amd_iommu.h | 3 - drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 2 + include/linux/iommu.h | 17 ++- drivers/iommu/amd/iommu.c | 27 ++-- drivers/iommu/amd/pasid.c | 29 ++-- drivers/iommu/apple-dart.c | 50 +++++-- .../arm/arm-smmu-v3/arm-smmu-v3-iommufd.c | 6 +- .../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 4 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 113 ++++++++++------ drivers/iommu/arm/arm-smmu/arm-smmu.c | 116 +++++++++------- drivers/iommu/arm/arm-smmu/qcom_iommu.c | 46 +++++-- drivers/iommu/fsl_pamu_domain.c | 50 +++++-- drivers/iommu/intel/iommu.c | 66 ++++++---- drivers/iommu/intel/nested.c | 29 ++-- drivers/iommu/intel/svm.c | 11 +- drivers/iommu/iommu.c | 124 +++++++++++++----- drivers/iommu/iommufd/selftest.c | 45 +++++-- drivers/iommu/ipmmu-vmsa.c | 38 ++++-- drivers/iommu/msm_iommu.c | 31 ++++- drivers/iommu/mtk_iommu.c | 17 ++- drivers/iommu/omap-iommu.c | 41 +++--- drivers/iommu/riscv/iommu.c | 16 ++- drivers/iommu/rockchip-iommu.c | 18 ++- drivers/iommu/s390-iommu.c | 22 +++- drivers/iommu/sun50i-iommu.c | 16 ++- drivers/iommu/tegra-smmu.c | 23 ++-- drivers/iommu/virtio-iommu.c | 16 ++- 27 files changed, 671 insertions(+), 305 deletions(-)
Signature · 1 line
2.43.0