Documentation/core-api: Add swiotlb documentation
PATCH v2 1/1 Documentation/core-api: Add swiotlb documentation
From: Michael Kelley <[email protected]>
There's currently no documentation for the swiotlb. Add documentation describing usage scenarios, the key APIs, and implementation details. Group the new documentation with other DMA-related documentation.
---
Changes in v2:
* Use KiB/MiB/GiB units instead of Kbytes/Mbytes/Gbytes [Matthew Wilcox]
Documentation/core-api/index.rst | 1 + Documentation/core-api/swiotlb.rst | 381 +++++++++++++++++++++++++++++ 2 files changed, 382 insertions(+) create mode 100644 Documentation/core-api/swiotlb.rst
Documentation/core-api/index.rst +1 -0
@@ -102,6 +102,7 @@ more memory-management documentation in Documentation/mm/index.rst. dma-api-howto dma-attributes dma-isa-lpc + swiotlb mm-api genalloc pin_user_pages
Documentation/core-api/swiotlb.rst new file +381 -0
381 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 7 lines · On Wed, Apr 24, 2024 at 08:02:53AM -0700, [email protected] wrote:
From: Michael Kelley <[email protected]>
There's currently no documentation for the swiotlb. Add documentation describing usage scenarios, the key APIs, and implementation details. Group the new documentation with other DMA-related documentation.
Signed-off-by Michael Kelley <[email protected]>
The doc LGTM, thanks!
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 3 lines · On Wed, Apr 24, 2024 at 08:02:53AM -0700, [email protected] wrote:
From: Michael Kelley <[email protected]>
There's currently no documentation for the swiotlb. Add documentation
s/the // ? (note that this is used in quite a few places)
Can you use up the full 80 characters for your text? As-is it reads a little odd due to the very short lines.
The other thing that strikes me as odd is the placement in the core-api directory together with other drivers-facing documentation. Swiotlb is internal to the dma-mapping subsystem and not really what is a core API. I don't really know where else it should be placed, though - nor do I really understand the "modern" hierarchy in Documentation, but maybe Jon has a good idea?
Except for these nitpicks the documentation looks good to me, thanks a lot!
Jonathan Corbet
maintainerQuoted 10 lines · Christoph Hellwig
Quoted 3 lines · On Wed, Apr 24, 2024 at 08:02:53AM -0700, [email protected] wrote:
From: Michael Kelley <[email protected]>
There's currently no documentation for the swiotlb. Add documentation
s/the // ? (note that this is used in quite a few places)
Can you use up the full 80 characters for your text? As-is it reads a little odd due to the very short lines.
Quoted 6 lines
The other thing that strikes me as odd is the placement in the core-api directory together with other drivers-facing documentation. Swiotlb is internal to the dma-mapping subsystem and not really what is a core API. I don't really know where else it should be placed, though - nor do I really understand the "modern" hierarchy in Documentation, but maybe Jon has a good idea?
I hadn't thought about it, but it seems that putting it with the rest of the DMA-API documentation would make sense. That's core-api, at the moment at least...
Thanks,
jon
From: Christoph Hellwig <[email protected]> Sent: Thursday, April 25, 2024 11:19 PM
Quoted 7 lines · On Wed, Apr 24, 2024 at 08:02:53AM -0700, [email protected] wrote:
Quoted 3 lines
From: Michael Kelley <[email protected]>
There's currently no documentation for the swiotlb. Add documentation
s/the // ? (note that this is used in quite a few places)
OK. I'll drop using "the" before "swiotlb".
Quoted 3 lines
Can you use up the full 80 characters for your text? As-is it reads a little odd due to the very short lines.
Will do.
Quoted 7 lines
The other thing that strikes me as odd is the placement in the core-api directory together with other drivers-facing documentation. Swiotlb is internal to the dma-mapping subsystem and not really what is a core API. I don't really know where else it should be placed, though - nor do I really understand the "modern" hierarchy in Documentation, but maybe Jon has a good idea?
I also wasn't happy with it going under "core-api". But I agree with Jon's comments. The affinity with the DMA documentation is strong, and in the absence of a better place, I'll keep it under core-api.
Michael
Quoted 3 lines
Except for these nitpicks the documentation looks good to me, thanks a lot!