Skip to contentSkip to conversation

iommupt: Documentation fixes

PATCH In review Jason Gunthorpe 3 participants 3 messages Nov 6, 2025 – Nov 7, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommupt: Documentation fixes

Some adjustments pointed out by Randy:

"decodes an full 64-bit" -> "decodes the full 64 bit"

Correct the function parameter name for iova_to_phys()

Use the recommended section heading style.

Fixes 2c8b644f3901 ("genpt: Add Documentation/ files")
Fixes ac7ffd8e805c ("iommupt: Add the AMD IOMMU v1 page table format")
Fixes e530a2c3a098 ("iommupt: Add iova_to_phys op")
---
 Documentation/driver-api/generic_pt.rst | 11 +++--------
 drivers/iommu/generic_pt/Kconfig        |  2 +-
 drivers/iommu/generic_pt/iommu_pt.h     |  2 +-
 3 files changed, 5 insertions(+), 10 deletions(-)
Documentation/driver-api/generic_pt.rst +3 -8
index 7a9ca9f2878d4f..fd29d1b525e51d 100644
@@ -10,9 +10,8 @@ Generic Radix Page Table
 .. kernel-doc:: drivers/iommu/generic_pt/pt_defs.h
 	:doc: Generic Page Table Language
 
------
 Usage
------
+=====
 
 Generic PT is structured as a multi-compilation system. Since each format
 provides an API using a common set of names there can be only one format active
@@ -61,7 +60,6 @@ format-specific information.
 The implementation will further wrap struct pt_common in its own top-level
 struct, such as struct pt_iommu_amdv1.
 
-----------------------------------------------
 Format functions at the struct pt_common level
 ----------------------------------------------
 
@@ -69,13 +67,11 @@ Format functions at the struct pt_common level
 	:identifiers:
 .. kernel-doc:: drivers/iommu/generic_pt/pt_common.h
 
------------------
 Iteration Helpers
 -----------------
 
 .. kernel-doc:: drivers/iommu/generic_pt/pt_iter.h
 
-----------------
 Writing a Format
 ----------------
 
@@ -112,7 +108,6 @@ The generic tests are intended to prove out the format functions and give
 clearer failures to speed up finding the problems. Once those pass then the
 entire kunit suite should be run.
 
----------------------------
 IOMMU Invalidation Features
 ---------------------------
 
@@ -124,7 +119,7 @@ on its design. Every HW has its own approach on how to describe what has changed
 to have changed items removed from the TLB.
 
 PT_FEAT_FLUSH_RANGE
--------------------
+~~~~~~~~~~~~~~~~~~~
 
 PT_FEAT_FLUSH_RANGE is the easiest scheme to understand. It tries to generate a
 single range invalidation for each operation, over-invalidating if there are
@@ -134,7 +129,7 @@ however, if pages have to be freed then page table pointers have to be cleaned
 from the walk cache. The range can start/end at any page boundary.
 
 PT_FEAT_FLUSH_RANGE_NO_GAPS
----------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 PT_FEAT_FLUSH_RANGE_NO_GAPS is similar to PT_FEAT_FLUSH_RANGE; however, it tries
 to minimize the amount of impacted VA by issuing extra flush operations. This is
drivers/iommu/generic_pt/Kconfig +1 -1
index 79f65268f31212..c88971675662fe 100644
@@ -38,7 +38,7 @@ config IOMMU_PT_AMDV1
 	help
 	  iommu_domain implementation for the AMD v1 page table. AMDv1 is the
 	  "host" page table. It supports granular page sizes of almost every
-	  power of 2 and decodes an full 64-bit IOVA space.
+	  power of 2 and decodes the full 64-bit IOVA space.
 
 	  Selected automatically by an IOMMU driver that uses this format.
 
drivers/iommu/generic_pt/iommu_pt.h +1 -1
index 1dcd85620f9b9c..0e046fe0eea34c 100644
@@ -158,7 +158,7 @@ PT_MAKE_LEVELS(__iova_to_phys, __do_iova_to_phys);
 
 /**
  * iova_to_phys() - Return the output address for the given IOVA
- * @iommu_table: Table to query
+ * @domain: Table to query
  * @iova: IO virtual address to query
  *
  * Determine the output address from the given IOVA. @iova may have any

base-commit: 1c04204b2a6df18a53bf8663c94e78f8c599a2df

Signature · 1 line
2.43.0
reviewer Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 13 lines · Jason Gunthorpe

Some adjustments pointed out by Randy:

"decodes an full 64-bit" -> "decodes the full 64 bit"

Correct the function parameter name for iova_to_phys()

Use the recommended section heading style.

Fixes 2c8b644f3901 ("genpt: Add Documentation/ files")
Fixes ac7ffd8e805c ("iommupt: Add the AMD IOMMU v1 page table format")
Fixes e530a2c3a098 ("iommupt: Add iova_to_phys op")
Quoted 5 lines
---
 Documentation/driver-api/generic_pt.rst | 11 +++--------
 drivers/iommu/generic_pt/Kconfig        |  2 +-
 drivers/iommu/generic_pt/iommu_pt.h     |  2 +-
 3 files changed, 5 insertions(+), 10 deletions(-)

Thanks.

Signature · 1 line
~Randy
maintainer
#2 lore raw
In reply to Jason Gunthorpe
Quoted 4 lines · Jason Gunthorpe

Some adjustments pointed out by Randy:

"decodes an full 64-bit" -> "decodes the full 64 bit"

Quoted 8 lines

Correct the function parameter name for iova_to_phys()

Use the recommended section heading style.

Fixes 2c8b644f3901 ("genpt: Add Documentation/ files")
Fixes ac7ffd8e805c ("iommupt: Add the AMD IOMMU v1 page table format")
Fixes e530a2c3a098 ("iommupt: Add iova_to_phys op")

Grm, had to fix up these commit-ids. Please be more careful next time.

Quoted 6 lines
---
 Documentation/driver-api/generic_pt.rst | 11 +++--------
 drivers/iommu/generic_pt/Kconfig        |  2 +-
 drivers/iommu/generic_pt/iommu_pt.h     |  2 +-
 3 files changed, 5 insertions(+), 10 deletions(-)

Nevertheless applied, thanks.