iommu/amd: Improve domain allocator and device attach code path
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 10 patches | 17 replies | Superseded | |
| v1 | 10 patches | 0 replies | Superseded |
Changes in v5 from the cover letter
- Rebased on top of iommu/core branch
- Added Reviewed-by tags
- Renamed amd_iommu_pdom_id_alloc -> pdom_id_alloc() as its static function
- Fixed patch 11 subject line
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | iommu/amd/pgtbl_v2: Take protection domain lock before invalidating TLBdrivers/ | +3 | 0 replies | |
| 2/12 | iommu/amd: Use ida interface to manage protection domain IDdrivers/ drivers/ drivers/ | +35 | 0 replies | |
| 3/12 | iommu/amd: Remove protection_domain.dev_cnt variabledrivers/ drivers/ | +1 | 0 replies | |
| 4/12 | iommu/amd: xarray to track protection_domain->iommu listdrivers/ drivers/ | +77 | 0 replies | |
| 5/12 | iommu/amd: Remove unused amd_iommus variabledrivers/ drivers/ | +0 | 0 replies | |
| 6/12 | iommu/amd: Do not detach devices in domain free pathdrivers/ | +1 | 0 replies | |
| 7/12 | iommu/amd: Reduce domain lock scope in attach device pathdrivers/ | +30 | 0 replies | |
| 8/12 | iommu/amd: Rearrange attach device codedrivers/ | +36 | 0 replies | |
| 9/12 | iommu/amd: Convert dev_data lock from spinlock to mutexdrivers/ drivers/ | +8 | 0 replies | |
| 10/12 | iommu/amd: Reorder attach device codedrivers/ | +29 | 0 replies | |
| 11/12 | iommu/amd: Add ops->release_domaindrivers/ | +9 | 0 replies | |
| 12/12 | iommu/amd: Improve amd_iommu_release_device()drivers/ | +6 | 0 replies |
Reviews trailers per patch
All 12 patches have a Reviewed-by or Acked-by.
| Patch | Jason Gunthorpe | Suravee Suthikulpanit | Joerg Roedel |
|---|---|---|---|
| 1/12 | R-b | ||
| 2/12 | R-b | ||
| 3/12 | R-b | R-b | R-b |
| 4/12 | R-b | R-b | |
| 5/12 | R-b | R-b | |
| 6/12 | R-b | R-b | |
| 7/12 | R-b | ||
| 8/12 | R-b | R-b | |
| 9/12 | R-b | R-b | |
| 10/12 | R-b | ||
| 11/12 | R-b | ||
| 12/12 | 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 3 reviewers.
Cover letter [PATCH v5 00/12] iommu/amd: Improve domain allocator and device attach code path
This series aims to improve domain allocator and attach device code path.
- Replace custom domain ID allocator with IDA allocator.
- Improve protection domain data structure
- Improve attach device code path and replace dev_data spinlock with mutex
- Add ops->release_domain() support
This series is on top of iommu/core branch (Commit a33bf8d8ce7).
This is also available at github :
https://github.com/AMDESE/linux-iommu/tree/iommu_rework_attach_dev_v5
Changes from v4 - v5:
- Rebased on top of iommu/core branch
- Added Reviewed-by tags
- Renamed amd_iommu_pdom_id_alloc -> pdom_id_alloc() as its static function
- Fixed patch 11 subject line
V4: https://lore.kernel.org/linux-iommu/[email protected]/T/#t
Changes from v3 - v4:
- Added release domain support
- Added new patch to fix missign lock in pgtbl_v2 code path
- Reworked protection domain ID allocation code
- Fixed missing lock in TLB flush code path
- Improved amd_iommu_release_device()
V3 : https://lore.kernel.org/linux-iommu/[email protected]/T/#u
Changes from v2 -> v3:
- Rebased on top of v6.12-rc3
- Added Reviewed-by tags
- Updated patch description
V2 : https://lore.kernel.org/linux-iommu/[email protected]/T/#t
Changes from v1 -> v2:
- Rebased on top of iommu/next
- Minor fixes.
V1 : https://lore.kernel.org/linux-iommu/[email protected]/T/#t
-Vasant
Vasant Hegde (12):
iommu/amd/pgtbl_v2: Take protection domain lock before invalidating
TLB
iommu/amd: Use ida interface to manage protection domain ID iommu/amd: Remove protection_domain.dev_cnt variable iommu/amd: xarray to track protection_domain->iommu list iommu/amd: Remove unused amd_iommus variable
iommu/amd: Do not detach devices in domain free path iommu/amd: Reduce domain lock scope in attach device path iommu/amd: Rearrange attach device code
iommu/amd: Convert dev_data lock from spinlock to mutex iommu/amd: Reorder attach device code
iommu/amd: Add ops->release_domain
iommu/amd: Improve amd_iommu_release_device()
drivers/iommu/amd/amd_iommu_types.h | 23 +- drivers/iommu/amd/init.c | 37 +-- drivers/iommu/amd/io_pgtable_v2.c | 3 + drivers/iommu/amd/iommu.c | 360 +++++++++++++--------------- 4 files changed, 194 insertions(+), 229 deletions(-)
Signature · 1 line
2.31.1