Archive-only list for patches
 help / color / mirror / Atom feed
* [PATCH v2 0/7] iommu/amd: Cleanup some of the domain_alloc_paging path
@ 2025-01-10 16:34 Jason Gunthorpe
  2025-01-10 16:34 ` [PATCH v2 1/7] iommu/amd: Remove unused amd_iommu_domain_update() Jason Gunthorpe
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Jason Gunthorpe @ 2025-01-10 16:34 UTC (permalink / raw)
  To: iommu, Joerg Roedel, Robin Murphy, Suravee Suthikulpanit,
	Will Deacon
  Cc: Alejandro Jimenez, Joerg Roedel, Kevin Tian, patches,
	Vasant Hegde

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/0-v1-cf88773f22d1+39bd-amd_paging_flags_jgg@nvidia.com

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
-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-01-17  7:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10 16:34 [PATCH v2 0/7] iommu/amd: Cleanup some of the domain_alloc_paging path Jason Gunthorpe
2025-01-10 16:34 ` [PATCH v2 1/7] iommu/amd: Remove unused amd_iommu_domain_update() Jason Gunthorpe
2025-01-10 16:35 ` [PATCH v2 2/7] iommu/amd: Remove domain_alloc() Jason Gunthorpe
2025-01-10 16:35 ` [PATCH v2 3/7] iommu/amd: Remove dev == NULL checks Jason Gunthorpe
2025-01-10 16:35 ` [PATCH v2 4/7] iommu/amd: Remove type argument from do_iommu_domain_alloc() and related Jason Gunthorpe
2025-01-10 16:35 ` [PATCH v2 5/7] iommu/amd: Change amd_iommu_pgtable to use enum protection_domain_mode Jason Gunthorpe
2025-01-10 16:35 ` [PATCH v2 6/7] iommu/amd: Move the nid to pdom_setup_pgtable() Jason Gunthorpe
2025-01-10 16:35 ` [PATCH v2 7/7] iommu/amd: Fully decode all combinations of alloc_paging_flags Jason Gunthorpe
2025-01-17  7:59 ` [PATCH v2 0/7] iommu/amd: Cleanup some of the domain_alloc_paging path Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox