Archive-only list for patches
 help / color / mirror / Atom feed
* [PATCH v2 00/14] Minor fixups and refactorings for AMD's io-pgtable code
@ 2024-08-30  0:06 Jason Gunthorpe
  2024-08-30  0:06 ` [PATCH v2 01/14] iommu/amd: Move allocation of the top table into v1_alloc_pgtable Jason Gunthorpe
                   ` (14 more replies)
  0 siblings, 15 replies; 19+ messages in thread
From: Jason Gunthorpe @ 2024-08-30  0:06 UTC (permalink / raw)
  To: iommu, Joerg Roedel, Robin Murphy, Suravee Suthikulpanit,
	Will Deacon
  Cc: Alejandro Jimenez, Joao Martins, Joerg Roedel, patches,
	Vasant Hegde

This is some preparation for the Generic PT work here:

 https://patch.msgid.link/r/0-v1-01fa10580981+1d-iommu_pt_jgg@nvidia.com

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/0-v1-cdaaddf80abb+14190-amd_iopgtbl_jgg@nvidia.com

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


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

end of thread, other threads:[~2024-09-04  9:39 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30  0:06 [PATCH v2 00/14] Minor fixups and refactorings for AMD's io-pgtable code Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 01/14] iommu/amd: Move allocation of the top table into v1_alloc_pgtable Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 02/14] iommu/amd: Allocate the page table root using GFP_KERNEL Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 03/14] iommu/amd: Set the pgsize_bitmap correctly Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 04/14] iommu/amd: Remove amd_iommu_domain_update() from page table freeing Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 05/14] iommu/amd: Remove the amd_iommu_domain_set_pt_root() and related Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 06/14] iommu/amd: Rename struct amd_io_pgtable iopt to pgtbl Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 07/14] iommu/amd: Remove amd_io_pgtable::pgtbl_cfg Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 08/14] iommu/amd: Store the nid in io_pgtable_cfg instead of the domain Jason Gunthorpe
2024-09-02  5:52   ` Vasant Hegde
2024-08-30  0:06 ` [PATCH v2 09/14] iommu/amd: Narrow the use of struct protection_domain to invalidation Jason Gunthorpe
2024-09-02  5:53   ` Vasant Hegde
2024-08-30  0:06 ` [PATCH v2 10/14] iommu/amd: Remove conditions from domain free paths Jason Gunthorpe
2024-09-02 12:03   ` Vasant Hegde
2024-08-30  0:06 ` [PATCH v2 11/14] iommu/amd: Fix typo of , instead of ; Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 12/14] iommu/amd: Remove the confusing dummy iommu_flush_ops tlb ops Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 13/14] iommu/amd: Correct the reported page sizes from the V1 table Jason Gunthorpe
2024-08-30  0:06 ` [PATCH v2 14/14] iommu/amd: Do not set the D bit on AMD v2 table entries Jason Gunthorpe
2024-09-04  9:39 ` [PATCH v2 00/14] Minor fixups and refactorings for AMD's io-pgtable code Joerg Roedel

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