* [PATCH v2 0/2] genpt documentation fixes
@ 2025-11-07 8:12 Bagas Sanjaya
2025-11-07 8:13 ` [PATCH v2 1/2] Documentation: genpt: Don't use code block marker before iommu_amdv1.c include listing Bagas Sanjaya
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Bagas Sanjaya @ 2025-11-07 8:12 UTC (permalink / raw)
To: Linux Kernel Mailing List, Linux Documentation, Linux IOMMU
Cc: Jonathan Corbet, Joerg Roedel, Will Deacon, Robin Murphy,
Jason Gunthorpe, Randy Dunlap, Bagas Sanjaya, Kevin Tian,
Samiullah Khawaja, Pasha Tatashin, Lu Baolu
Hi,
Here are fixes for two htmldocs warnings in generic radix page table
documentation. The first one is reported in linux-next [1], and the
second one is also found when making htmldocs locally to reproduce the
former.
Enjoy!
Changes since v1 [2]:
- s/to set/to read/ (Randy)
[1]: https://lore.kernel.org/linux-next/20251106143925.578e411b@canb.auug.org.au/
[2]: https://lore.kernel.org/linux-doc/20251106073845.36445-1-bagasdotme@gmail.com/
Bagas Sanjaya (2):
Documentation: genpt: Don't use code block marker before iommu_amdv1.c
include listing
iommupt: Describe @bitnr parameter
Documentation/driver-api/generic_pt.rst | 2 +-
drivers/iommu/generic_pt/pt_common.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
base-commit: 75d9ef7cf1e694e5c0fb387be99f04acc7f864a4
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/2] Documentation: genpt: Don't use code block marker before iommu_amdv1.c include listing
2025-11-07 8:12 [PATCH v2 0/2] genpt documentation fixes Bagas Sanjaya
@ 2025-11-07 8:13 ` Bagas Sanjaya
2025-11-07 8:13 ` [PATCH v2 2/2] iommupt: Describe @bitnr parameter Bagas Sanjaya
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Bagas Sanjaya @ 2025-11-07 8:13 UTC (permalink / raw)
To: Linux Kernel Mailing List, Linux Documentation, Linux IOMMU
Cc: Jonathan Corbet, Joerg Roedel, Will Deacon, Robin Murphy,
Jason Gunthorpe, Randy Dunlap, Bagas Sanjaya, Kevin Tian,
Samiullah Khawaja, Pasha Tatashin, Lu Baolu, Stephen Rothwell,
Jason Gunthorpe
Stephen Rothwell reports htmldocs warning when merging iommu tree:
Documentation/driver-api/generic_pt.rst:32: WARNING: Literal block expected; none found. [docutils]
This is because of duplicate double colon code block markers: one after
generic_pt/fmt/iommu_amdv1.c and the one in its preceding paragraph. The
resulting htmldocs, however, only marks the include listing (after the
former) up as it should be.
Drop the latter to fix the warning.
Fixes: ab0b572847ac ("genpt: Add Documentation/ files")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/linux-next/20251106143925.578e411b@canb.auug.org.au/
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
Documentation/driver-api/generic_pt.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/driver-api/generic_pt.rst b/Documentation/driver-api/generic_pt.rst
index 210d1229aa1c1f..7a9ca9f2878d4f 100644
--- a/Documentation/driver-api/generic_pt.rst
+++ b/Documentation/driver-api/generic_pt.rst
@@ -27,7 +27,7 @@ compiled into a per-format IOMMU operations kernel module.
For this to work the .c file for each compilation unit will include both the
format headers and the generic code for the implementation. For instance in an
implementation compilation unit the headers would normally be included as
-follows::
+follows:
generic_pt/fmt/iommu_amdv1.c::
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] iommupt: Describe @bitnr parameter
2025-11-07 8:12 [PATCH v2 0/2] genpt documentation fixes Bagas Sanjaya
2025-11-07 8:13 ` [PATCH v2 1/2] Documentation: genpt: Don't use code block marker before iommu_amdv1.c include listing Bagas Sanjaya
@ 2025-11-07 8:13 ` Bagas Sanjaya
2025-11-07 19:09 ` Randy Dunlap
2025-11-07 10:07 ` [PATCH v2 0/2] genpt documentation fixes Joerg Roedel
2025-11-07 19:16 ` Randy Dunlap
3 siblings, 1 reply; 7+ messages in thread
From: Bagas Sanjaya @ 2025-11-07 8:13 UTC (permalink / raw)
To: Linux Kernel Mailing List, Linux Documentation, Linux IOMMU
Cc: Jonathan Corbet, Joerg Roedel, Will Deacon, Robin Murphy,
Jason Gunthorpe, Randy Dunlap, Bagas Sanjaya, Kevin Tian,
Samiullah Khawaja, Pasha Tatashin, Lu Baolu, Jason Gunthorpe
Sphinx reports kernel-doc warnings when making htmldocs:
WARNING: ./drivers/iommu/generic_pt/pt_common.h:361 function parameter 'bitnr' not described in 'pt_test_sw_bit_acquire'
WARNING: ./drivers/iommu/generic_pt/pt_common.h:371 function parameter 'bitnr' not described in 'pt_set_sw_bit_release'
Describe @bitnr to squash them.
Fixes: bcc64b57b48e ("iommupt: Add basic support for SW bits in the page table")
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
drivers/iommu/generic_pt/pt_common.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iommu/generic_pt/pt_common.h b/drivers/iommu/generic_pt/pt_common.h
index b5628f47e0db40..3b4e371089140a 100644
--- a/drivers/iommu/generic_pt/pt_common.h
+++ b/drivers/iommu/generic_pt/pt_common.h
@@ -354,6 +354,7 @@ static inline unsigned int pt_max_sw_bit(struct pt_common *common);
/**
* pt_test_sw_bit_acquire() - Read a software bit in an item
* @pts: Entry to set
+ * @bitnr: Bit to read
*
* Software bits are ignored by HW and can be used for any purpose by the
* software. This does a test bit and acquire operation.
@@ -364,6 +365,7 @@ static inline bool pt_test_sw_bit_acquire(struct pt_state *pts,
/**
* pt_set_sw_bit_release() - Set a software bit in an item
* @pts: Entry to set
+ * @bitnr: Bit to read
*
* Software bits are ignored by HW and can be used for any purpose by the
* software. This does a set bit and release operation.
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 0/2] genpt documentation fixes
2025-11-07 8:12 [PATCH v2 0/2] genpt documentation fixes Bagas Sanjaya
2025-11-07 8:13 ` [PATCH v2 1/2] Documentation: genpt: Don't use code block marker before iommu_amdv1.c include listing Bagas Sanjaya
2025-11-07 8:13 ` [PATCH v2 2/2] iommupt: Describe @bitnr parameter Bagas Sanjaya
@ 2025-11-07 10:07 ` Joerg Roedel
2025-11-07 19:16 ` Randy Dunlap
3 siblings, 0 replies; 7+ messages in thread
From: Joerg Roedel @ 2025-11-07 10:07 UTC (permalink / raw)
To: Bagas Sanjaya
Cc: Linux Kernel Mailing List, Linux Documentation, Linux IOMMU,
Jonathan Corbet, Will Deacon, Robin Murphy, Jason Gunthorpe,
Randy Dunlap, Kevin Tian, Samiullah Khawaja, Pasha Tatashin,
Lu Baolu
On Fri, Nov 07, 2025 at 03:12:59PM +0700, Bagas Sanjaya wrote:
> Bagas Sanjaya (2):
> Documentation: genpt: Don't use code block marker before iommu_amdv1.c
> include listing
> iommupt: Describe @bitnr parameter
>
> Documentation/driver-api/generic_pt.rst | 2 +-
> drivers/iommu/generic_pt/pt_common.h | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
Applied, thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/2] iommupt: Describe @bitnr parameter
2025-11-07 8:13 ` [PATCH v2 2/2] iommupt: Describe @bitnr parameter Bagas Sanjaya
@ 2025-11-07 19:09 ` Randy Dunlap
0 siblings, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2025-11-07 19:09 UTC (permalink / raw)
To: Bagas Sanjaya, Linux Kernel Mailing List, Linux Documentation,
Linux IOMMU
Cc: Jonathan Corbet, Joerg Roedel, Will Deacon, Robin Murphy,
Jason Gunthorpe, Kevin Tian, Samiullah Khawaja, Pasha Tatashin,
Lu Baolu, Jason Gunthorpe
grumble...
On 11/7/25 12:13 AM, Bagas Sanjaya wrote:
> Sphinx reports kernel-doc warnings when making htmldocs:
>
> WARNING: ./drivers/iommu/generic_pt/pt_common.h:361 function parameter 'bitnr' not described in 'pt_test_sw_bit_acquire'
> WARNING: ./drivers/iommu/generic_pt/pt_common.h:371 function parameter 'bitnr' not described in 'pt_set_sw_bit_release'
>
> Describe @bitnr to squash them.
>
> Fixes: bcc64b57b48e ("iommupt: Add basic support for SW bits in the page table")
> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
> Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
> ---
> drivers/iommu/generic_pt/pt_common.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/iommu/generic_pt/pt_common.h b/drivers/iommu/generic_pt/pt_common.h
> index b5628f47e0db40..3b4e371089140a 100644
> --- a/drivers/iommu/generic_pt/pt_common.h
> +++ b/drivers/iommu/generic_pt/pt_common.h
> @@ -354,6 +354,7 @@ static inline unsigned int pt_max_sw_bit(struct pt_common *common);
> /**
> * pt_test_sw_bit_acquire() - Read a software bit in an item
> * @pts: Entry to set
* @pts: Entry to read
> + * @bitnr: Bit to read
> *
> * Software bits are ignored by HW and can be used for any purpose by the
> * software. This does a test bit and acquire operation.
> @@ -364,6 +365,7 @@ static inline bool pt_test_sw_bit_acquire(struct pt_state *pts,
> /**
> * pt_set_sw_bit_release() - Set a software bit in an item
> * @pts: Entry to set
> + * @bitnr: Bit to read
* @bitnr: Bit to set
> *
> * Software bits are ignored by HW and can be used for any purpose by the
> * software. This does a set bit and release operation.
--
~Randy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 0/2] genpt documentation fixes
2025-11-07 8:12 [PATCH v2 0/2] genpt documentation fixes Bagas Sanjaya
` (2 preceding siblings ...)
2025-11-07 10:07 ` [PATCH v2 0/2] genpt documentation fixes Joerg Roedel
@ 2025-11-07 19:16 ` Randy Dunlap
2025-11-07 23:15 ` Bagas Sanjaya
3 siblings, 1 reply; 7+ messages in thread
From: Randy Dunlap @ 2025-11-07 19:16 UTC (permalink / raw)
To: Bagas Sanjaya, Linux Kernel Mailing List, Linux Documentation,
Linux IOMMU
Cc: Jonathan Corbet, Joerg Roedel, Will Deacon, Robin Murphy,
Jason Gunthorpe, Kevin Tian, Samiullah Khawaja, Pasha Tatashin,
Lu Baolu
On 11/7/25 12:12 AM, Bagas Sanjaya wrote:
> Hi,
>
> Here are fixes for two htmldocs warnings in generic radix page table
> documentation. The first one is reported in linux-next [1], and the
> second one is also found when making htmldocs locally to reproduce the
> former.
>
> Enjoy!
>
> Changes since v1 [2]:
>
> - s/to set/to read/ (Randy)
That's not quite what I said (wrote):
> @@ -354,6 +354,7 @@ static inline unsigned int pt_max_sw_bit(struct pt_common *common);
> /**
> * pt_test_sw_bit_acquire() - Read a software bit in an item
> * @pts: Entry to set
> + * @bitnr: Bit to set
| Shouldn't both of these (above) to "to read" instead of "to set"?
No changes to pt_set_sw_bit_release() [which should say "to set" in 2 places].
>
> [1]: https://lore.kernel.org/linux-next/20251106143925.578e411b@canb.auug.org.au/
> [2]: https://lore.kernel.org/linux-doc/20251106073845.36445-1-bagasdotme@gmail.com/
>
> Bagas Sanjaya (2):
> Documentation: genpt: Don't use code block marker before iommu_amdv1.c
> include listing
> iommupt: Describe @bitnr parameter
>
> Documentation/driver-api/generic_pt.rst | 2 +-
> drivers/iommu/generic_pt/pt_common.h | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
>
> base-commit: 75d9ef7cf1e694e5c0fb387be99f04acc7f864a4
--
~Randy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 0/2] genpt documentation fixes
2025-11-07 19:16 ` Randy Dunlap
@ 2025-11-07 23:15 ` Bagas Sanjaya
0 siblings, 0 replies; 7+ messages in thread
From: Bagas Sanjaya @ 2025-11-07 23:15 UTC (permalink / raw)
To: Randy Dunlap, Linux Kernel Mailing List, Linux Documentation,
Linux IOMMU
Cc: Jonathan Corbet, Joerg Roedel, Will Deacon, Robin Murphy,
Jason Gunthorpe, Kevin Tian, Samiullah Khawaja, Pasha Tatashin,
Lu Baolu
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
On Fri, Nov 07, 2025 at 11:16:36AM -0800, Randy Dunlap wrote:
>
>
> On 11/7/25 12:12 AM, Bagas Sanjaya wrote:
> > Changes since v1 [2]:
> >
> > - s/to set/to read/ (Randy)
>
> That's not quite what I said (wrote):
>
> > @@ -354,6 +354,7 @@ static inline unsigned int pt_max_sw_bit(struct pt_common *common);
> > /**
> > * pt_test_sw_bit_acquire() - Read a software bit in an item
> > * @pts: Entry to set
> > + * @bitnr: Bit to set
>
> | Shouldn't both of these (above) to "to read" instead of "to set"?
>
>
>
> No changes to pt_set_sw_bit_release() [which should say "to set" in 2 places].
>
Oops, I misunderstood the review. Will send the fixup shortly.
Thanks.
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-11-07 23:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-07 8:12 [PATCH v2 0/2] genpt documentation fixes Bagas Sanjaya
2025-11-07 8:13 ` [PATCH v2 1/2] Documentation: genpt: Don't use code block marker before iommu_amdv1.c include listing Bagas Sanjaya
2025-11-07 8:13 ` [PATCH v2 2/2] iommupt: Describe @bitnr parameter Bagas Sanjaya
2025-11-07 19:09 ` Randy Dunlap
2025-11-07 10:07 ` [PATCH v2 0/2] genpt documentation fixes Joerg Roedel
2025-11-07 19:16 ` Randy Dunlap
2025-11-07 23:15 ` Bagas Sanjaya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).