Skip to content

iommu/amd: Cleanup some of the domain_alloc_paging path

Jason Gunthorpe linux-iommu linux-patches 2 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. v2 Latest7 patches 1 replyApplied
  2. v17 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Remove bitmasking from switch in amd_iommu_domain_alloc_paging_flags()
- Update commit messages with comments
v1: https://patch.msgid.link/r/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7iommu/amd: Remove unused amd_iommu_domain_update()drivers/iommu/amd/amd_iommu.h drivers/iommu/amd/iommu.c+0 -100 replies
2/7iommu/amd: Remove domain_alloc()drivers/iommu/amd/iommu.c+0 -200 replies
3/7iommu/amd: Remove dev == NULL checksdrivers/iommu/amd/iommu.c+10 -200 replies
4/7iommu/amd: Remove type argument from do_iommu_domain_alloc() and relateddrivers/iommu/amd/amd_iommu.h drivers/iommu/amd/iommu.c drivers/iommu/amd/pasid.c+13 -270 replies
5/7iommu/amd: Change amd_iommu_pgtable to use enum protection_domain_modedrivers/iommu/amd/amd_iommu.h drivers/iommu/amd/init.c drivers/iommu/amd/iommu.c+25 -250 replies
6/7iommu/amd: Move the nid to pdom_setup_pgtable()drivers/iommu/amd/amd_iommu.h drivers/iommu/amd/iommu.c drivers/iommu/amd/pasid.c+11 -150 replies
7/7iommu/amd: Fully decode all combinations of alloc_paging_flagsdrivers/iommu/amd/iommu.c+15 -150 replies

Reviews trailers per patch

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

PatchVasant Hegde
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] iommu/amd: Cleanup some of the domain_alloc_paging path

This is a small collection of cleanups
- Remove amd_iommu_domain_update() (dead code)
- Remove domain_alloc()
- Remove now obsolete NULL checks
- Remove obsolete domain types in the domain_alloc_paging_flags() flow
- Use PD_MODE consistently instead of mixing with io_pgtable stuff

v2:
- Remove bitmasking from switch in amd_iommu_domain_alloc_paging_flags()
- Update commit messages with comments
v1: https://patch.msgid.link/r/[email protected]

Alejandro Jimenez (1):
iommu/amd: Remove unused amd_iommu_domain_update()

Jason Gunthorpe (6):
iommu/amd: Remove domain_alloc()
iommu/amd: Remove dev == NULL checks
iommu/amd: Remove type argument from do_iommu_domain_alloc() and
related
iommu/amd: Change amd_iommu_pgtable to use enum protection_domain_mode iommu/amd: Move the nid to pdom_setup_pgtable()
iommu/amd: Fully decode all combinations of alloc_paging_flags

 drivers/iommu/amd/amd_iommu.h |   5 +-
 drivers/iommu/amd/init.c      |  14 ++--
 drivers/iommu/amd/iommu.c     | 144 ++++++++++------------------------
 drivers/iommu/amd/pasid.c     |   3 +-
 4 files changed, 54 insertions(+), 112 deletions(-)

base-commit: 40a9e0c5db5f23103fc3ebc8f27fe665b057bceb

Signature · 1 line
2.43.0