Support attaching PASID to the blocked_domain
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest7 patches 3 repliesApplied
- v57 patches 1 replySuperseded
- v47 patches 7 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 7 patches | 20 replies | Superseded | |
| v2 | 3 patches | 12 replies | Superseded | |
| v1 | 3 patches | 5 replies | Superseded |
Changes in v6 from the cover letter
- Add Jason's r-b on patch 01.
- Rebased on top of 6.13-rc1
Patches in v6 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | iommu: Prevent pasid attach if no ops->remove_dev_pasiddrivers/ | +8 | 2 replies | |
| 2/7 | iommu: Consolidate the ops->remove_dev_pasid usage into a helperdrivers/ | +11 | 0 replies | |
| 3/7 | iommu: Detaching pasid by attaching to the blocked_domaindrivers/ | +14 | 0 replies | |
| 4/7 | iommu/arm-smmu-v3: Make the blocked domain support PASIDdrivers/ | +6 | 0 replies | |
| 5/7 | iommu/vt-d: Make the blocked domain support PASIDdrivers/ | +11 | 0 replies | |
| 6/7 | iommu/amd: Make the blocked domain support PASIDdrivers/ | +9 | 0 replies | |
| 7/7 | iommu: Remove the remove_dev_pasid opdrivers/ include/ | +4 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Jason Gunthorpe | Vasant Hegde | Kevin Tian | Lu Baolu | Nicolin Chen |
|---|---|---|---|---|---|
| 1/7 | R-b | R-b | R-b | ||
| 2/7 | R-b | R-b | R-b | R-b | |
| 3/7 | R-b | R-b | R-b | R-b | |
| 4/7 | R-b | R-b | |||
| 5/7 | R-b | R-b | R-b | ||
| 6/7 | R-b | R-b | R-b | ||
| 7/7 | R-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 5 reviewers.
Cover letter [PATCH v6 0/7] Support attaching PASID to the blocked_domain
During the review of iommufd pasid series, Kevin and Jason suggested attaching PASID to the blocked domain hence replacing the usage of remove_dev_pasid() op [1]. This makes sense as it makes the PASID path aligned with the RID path which attaches the RID to the blocked_domain when it is to be blocked. To do it, it requires passing the old domain to the iommu driver. This has been done in [2].
This series makes the Intel iommu driver, ARM SMMUv3 driver and AMD iommu driver support attaching PASID to the blocked domain. And in the end remove the remove_dev_pasid op from iommu_ops.
[1] https://lore.kernel.org/linux-iommu/[email protected]/
[2] https://lore.kernel.org/linux-iommu/[email protected]/
v6:
- Add Jason's r-b on patch 01.
- Rebased on top of 6.13-rc1
v5: https://lore.kernel.org/linux-iommu/[email protected]/
- Fix an issue spotted by Baolu in patch 01 of v4. The new version lifts the group check to be the first check, hence it can ensure a valid iommu_ops returned dev_iommu_ops(). Per this changes, it also removes the duplicated dev_has_iommu() check as group check can replace it. Due to the changes, drop the r-b tags on this patch.
- Add Baolu's r-b tag.
v4: https://lore.kernel.org/linux-iommu/[email protected]/
- Remove unnecessary braces in patch 02 (Vasant)
- Minor tweaks to patch 01 and 03 (Kevin)
- Add r-b tags from Jason, Vasant, Kevin
v3: https://lore.kernel.org/linux-iommu/[email protected]/
- Add a patch to check remove_dev_pasid() in iommu_attach_device_pasid()
- Split patch 01 of v2 into two patches, drop the r-b of this patch due the split.
- Add AMD iommu blocked domain pasid support (Jason)
- Remove the remove_dev_pasid op as all the iommu drivers that support pasid attach have supported attaching pasid to blocked domain.
v2: https://lore.kernel.org/linux-iommu/[email protected]/#t
- Add Kevin's r-b
- Adjust the order of patch 03 of v1, it should be the first patch (Baolu)
v1: https://lore.kernel.org/linux-iommu/[email protected]/
Regards,
Yi Liu
Jason Gunthorpe (1):
iommu/arm-smmu-v3: Make the blocked domain support PASID
Yi Liu (6):
iommu: Prevent pasid attach if no ops->remove_dev_pasid
iommu: Consolidate the ops->remove_dev_pasid usage into a helper
iommu: Detaching pasid by attaching to the blocked_domain iommu/vt-d: Make the blocked domain support PASID iommu/amd: Make the blocked domain support PASID
iommu: Remove the remove_dev_pasid op
drivers/iommu/amd/iommu.c | 10 +++++- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 12 +++---- drivers/iommu/intel/iommu.c | 15 ++++++--- drivers/iommu/iommu.c | 35 +++++++++++++-------- include/linux/iommu.h | 5 --- 5 files changed, 48 insertions(+), 29 deletions(-)
Signature · 1 line
2.34.1