Skip to content

iommu: Domain allocation enhancements

Vasant Hegde linux-iommu 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 Latest12 patches 8 repliesApplied
  2. v412 patches 13 repliesSuperseded
  3. v312 patches 32 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches66 repliesSuperseded
v15 patches32 repliesSuperseded

Changes in v5 from the cover letter

- Updated amd_iommu_domain_alloc_user()
- Added Review-by tags

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/12iommu: Refactor __iommu_domain_alloc()drivers/iommu/iommu.c+25 -210 replies
2/12iommu: Introduce iommu_paging_domain_alloc_flags()drivers/iommu/iommu.c include/linux/iommu.h+38 -80 replies
3/12iommu: Add new flag to explictly request PASID capable domaindrivers/iommu/iommu.c include/uapi/linux/iommufd.h+53 -111 reply
4/12iommu/arm-smmu-v3: Enhance domain_alloc_user() to allocate PASID capable domaindrivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c+5 -10 replies
5/12iommu/amd: Add helper function to check GIOSUP/GTSUPdrivers/iommu/amd/amd_iommu.h drivers/iommu/amd/init.c+7 -30 replies
6/12iommu/amd: Move V2 page table support check to early_amd_iommu_init()drivers/iommu/amd/init.c+7 -70 replies
7/12iommu/amd: Separate page table setup from domain allocationdrivers/iommu/amd/iommu.c+26 -160 replies
8/12iommu/amd: Pass page table type as param to pdom_setup_pgtable()drivers/iommu/amd/iommu.c+19 -240 replies
9/12iommu/amd: Enhance amd_iommu_domain_alloc_user()drivers/iommu/amd/iommu.c+27 -51 reply
10/12iommu/amd: Implement global identity domaindrivers/iommu/amd/amd_iommu.h drivers/iommu/amd/init.c drivers/iommu/amd/iommu.c+36 -40 replies
11/12iommu: Put domain allocation in __iommu_group_alloc_blocking_domain()drivers/iommu/iommu.c+13 -120 replies
12/12iommu: Create __iommu_alloc_identity_domain()drivers/iommu/iommu.c+29 -145 replies

Reviews trailers per patch

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

PatchLu BaoluJason GunthorpeKevin TianYi LiuJacob Pan
1/12R-b R-b R-b R-b
2/12R-b R-b R-b R-b
3/12R-b R-b
4/12R-b R-b
5/12R-b
6/12R-b
7/12R-b R-b
8/12R-b R-b
9/12R-b R-b
10/12R-b R-b
11/12R-b R-b
12/12R-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 5 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/12] iommu: Domain allocation enhancements

This series adds iommu_paging_domain_alloc_flags() which takes flags to pass additional details for domain allocation (like domain with PASID support). Also adjusts core code to handler variuos domain allocations.

Also updates AMD IOMMU driver domain allocation code. With this by default it will allocate domain with V2 page table for PASID capable device and v1 page table for rest of the devices.

Thanks everyone who reviewed previous version and provided valuable feedbacks.

This series is based on top of v6.12-rc3.

This is also available at github :
https://github.com/AMDESE/linux-iommu/tree/iommu_paging_domain_v5

Changes from v4 -> v5:
- Updated amd_iommu_domain_alloc_user()
- Added Review-by tags

V4 : https://lore.kernel.org/linux-iommu/[email protected]/T/#t

Changes from v3 -> v4:
- Added Review-by tags
- Updated Patch3 to handle -EOPNOTSUPP and allocate non-PASID domain
- Updated amd_iommu_domain_alloc_user() to do flags check first
- Few other minor fixes based on review comment

V3 : https://lore.kernel.org/linux-iommu/[email protected]/T/#t

Changes from V2 -> v3:
- Added Review-by tags
- Fixed warnings reported by 0-DAY CI
- Added patch to enhance arm_smmu_domain_alloc_user() to support IOMMU_HWPT_ALLOC_PASID flag
- Added new patch to check GIOSUP/GTSUP
- Added patch to move V2 page table check to early_amd_iommu_init()
- Added patch to adjust blocked/identity domain allocation in core layer
- Dropped "iommu/amd: Add iommu_ops->domain_alloc_paging support"

V2 : https://lore.kernel.org/linux-iommu/[email protected]/T/#t

Changes from v1 -> v2:
- Rebased on top of iommu/next
- Split patches into smaller patches
- Added global static identity domain support

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

RFC v2: https://lore.kernel.org/linux-iommu/[email protected]/T/#t

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

Jason Gunthorpe (5):
iommu: Refactor __iommu_domain_alloc()
iommu: Introduce iommu_paging_domain_alloc_flags()
iommu: Add new flag to explictly request PASID capable domain
iommu: Put domain allocation in __iommu_group_alloc_blocking_domain()
iommu: Create __iommu_alloc_identity_domain()

Vasant Hegde (7):
iommu/arm-smmu-v3: Enhance domain_alloc_user() to allocate PASID
capable domain
iommu/amd: Add helper function to check GIOSUP/GTSUP iommu/amd: Move V2 page table support check to early_amd_iommu_init() iommu/amd: Separate page table setup from domain allocation iommu/amd: Pass page table type as param to pdom_setup_pgtable() iommu/amd: Enhance amd_iommu_domain_alloc_user() iommu/amd: Implement global identity domain

 drivers/iommu/amd/amd_iommu.h               |   8 +-
 drivers/iommu/amd/init.c                    |  18 +-
 drivers/iommu/amd/iommu.c                   | 141 ++++++++++-----
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c |   6 +-
 drivers/iommu/iommu.c                       | 186 ++++++++++++++------
 include/linux/iommu.h                       |  14 +-
 include/uapi/linux/iommufd.h                |   8 +
 7 files changed, 270 insertions(+), 111 deletions(-)
Signature · 1 line
2.31.1