Documentation/core-api: Add swiotlb documentation
PATCH 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.
--- 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 3 lines · On Thu, Apr 18, 2024 at 06:52:13AM -0700, [email protected] wrote:
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.
This is really well written. Thank you. One minor nit below.
Documentation/core-api/swiotlb.rst line 40
Quoted 6 lines
Documentation/core-api/swiotlb.rst new file +6
-0+Usage Scenarios +--------------- +The swiotlb was originally created to handle DMA for devices +with addressing limitations. As physical memory sizes grew +beyond 4 Gbytes, some devices could only provide 32-bit DMA +addresses. By allocating bounce buffer memory below the 4 Gbyte
I'd prefer GiB to Gbytes; we might also prefer GB, Gigabyte or Gibibyte, but Gbytes seems wrong.
You've written a lot here, and I'm not an expert on swiommu, but nothing else leapt out at me.
From: Matthew Wilcox <[email protected]> Sent: Thursday, April 18, 2024 7:29 AM
Quoted 8 lines · On Thu, Apr 18, 2024 at 06:52:13AM -0700, [email protected] wrote:
Quoted 3 lines
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.
This is really well written. Thank you. One minor nit below.
Quoted 9 lines
Documentation/core-api/swiotlb.rst line 40
Quoted 6 lines
Documentation/core-api/swiotlb.rst new file +6
-0+Usage Scenarios +--------------- +The swiotlb was originally created to handle DMA for devices +with addressing limitations. As physical memory sizes grew +beyond 4 Gbytes, some devices could only provide 32-bit DMA +addresses. By allocating bounce buffer memory below the 4 GbyteI'd prefer GiB to Gbytes; we might also prefer GB, Gigabyte or Gibibyte, but Gbytes seems wrong.
Good point. I'll update sizes throughout to use the correct terminology.
Michael
Quoted 3 lines
You've written a lot here, and I'm not an expert on swiommu, but nothing else leapt out at me.