Minor fixups and refactorings for AMD's io-pgtable code
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest14 patches 7 repliesApplied
- v114 patches 17 repliesSuperseded
Changes in v2 from the cover letter
- Add local 'cfg' variables to improve readability
v1: https://patch.msgid.link/r/[email protected]
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | iommu/amd: Move allocation of the top table into v1_alloc_pgtabledrivers/ drivers/ | +8 | 0 replies | |
| 2/14 | iommu/amd: Allocate the page table root using GFP_KERNELdrivers/ | +1 | 0 replies | |
| 3/14 | iommu/amd: Set the pgsize_bitmap correctlydrivers/ | +4 | 0 replies | |
| 4/14 | iommu/amd: Remove amd_iommu_domain_update() from page table freeingdrivers/ drivers/ | +2 | 0 replies | |
| 5/14 | iommu/amd: Remove the amd_iommu_domain_set_pt_root() and relateddrivers/ drivers/ | +0 | 0 replies | |
| 6/14 | iommu/amd: Rename struct amd_io_pgtable iopt to pgtbldrivers/ drivers/ drivers/ +1 more | +22 | 0 replies | |
| 7/14 | iommu/amd: Remove amd_io_pgtable::pgtbl_cfgdrivers/ drivers/ | +4 | 0 replies | |
| 8/14 | iommu/amd: Store the nid in io_pgtable_cfg instead of the domaindrivers/ drivers/ drivers/ +4 more | +20 | 1 reply | |
| 9/14 | iommu/amd: Narrow the use of struct protection_domain to invalidationdrivers/ drivers/ | +25 | 1 reply | |
| 10/14 | iommu/amd: Remove conditions from domain free pathsdrivers/ | +10 | 4 replies | |
| 11/14 | iommu/amd: Fix typo of , instead of ;drivers/ | +3 | 0 replies | |
| 12/14 | iommu/amd: Remove the confusing dummy iommu_flush_ops tlb opsdrivers/ drivers/ | +0 | 0 replies | |
| 13/14 | iommu/amd: Correct the reported page sizes from the V1 tabledrivers/ | +2 | 0 replies | |
| 14/14 | iommu/amd: Do not set the D bit on AMD v2 table entriesdrivers/ | +1 | 0 replies |
Reviews trailers per patch
All 14 patches have a Reviewed-by or Acked-by.
| Patch | Vasant Hegde |
|---|---|
| 1/14 | R-b |
| 2/14 | R-b |
| 3/14 | R-b |
| 4/14 | R-b |
| 5/14 | R-b |
| 6/14 | R-b |
| 7/14 | R-b |
| 8/14 | R-b |
| 9/14 | R-b |
| 10/14 | R-b |
| 11/14 | R-b |
| 12/14 | R-b |
| 13/14 | R-b |
| 14/14 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/14] Minor fixups and refactorings for AMD's io-pgtable code
This is some preparation for the Generic PT work here:
https://patch.msgid.link/r/[email protected]
Where this aims to increase the separation between the page table code and the rest of the driver. Ideally the io_pgtable layer should be completely self contained and not reach out into the IOMMU driver's iommu_domain. This doesn't fully get there, but it does enough for now.
v2:
- Add local 'cfg' variables to improve readability
v1: https://patch.msgid.link/r/[email protected]
Jason Gunthorpe (14):
iommu/amd: Move allocation of the top table into v1_alloc_pgtable iommu/amd: Allocate the page table root using GFP_KERNEL iommu/amd: Set the pgsize_bitmap correctly
iommu/amd: Remove amd_iommu_domain_update() from page table freeing iommu/amd: Remove the amd_iommu_domain_set_pt_root() and related iommu/amd: Rename struct amd_io_pgtable iopt to pgtbl iommu/amd: Remove amd_io_pgtable::pgtbl_cfg
iommu/amd: Store the nid in io_pgtable_cfg instead of the domain iommu/amd: Narrow the use of struct protection_domain to invalidation iommu/amd: Remove conditions from domain free paths iommu/amd: Fix typo of , instead of ;
iommu/amd: Remove the confusing dummy iommu_flush_ops tlb ops iommu/amd: Correct the reported page sizes from the V1 table iommu/amd: Do not set the D bit on AMD v2 table entries
drivers/iommu/amd/amd_iommu.h | 15 +--- drivers/iommu/amd/amd_iommu_types.h | 11 ++- drivers/iommu/amd/io_pgtable.c | 102 +++++++++------------------- drivers/iommu/amd/io_pgtable_v2.c | 56 +++++---------- drivers/iommu/amd/iommu.c | 97 ++++++++------------------ drivers/iommu/amd/pasid.c | 2 +- include/linux/io-pgtable.h | 4 ++ 7 files changed, 88 insertions(+), 199 deletions(-)
base-commit: 47ac09b91befbb6a235ab620c32af719f8208399
Signature · 1 line
2.46.0