drm: add overview diagram for drm stack
Subsystems (3)
v2 cover drm: add overview diagram for drm stack
---
Changes in v2:
- Update the overview diagram to display correctly by putting in a literal block.
- Also update the overview section diagram to a higher order.
- Ensured docs are successfully rendering by building for htmldocs and pdfdocs.
- Rendered pages are okay on html and pdf.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Abdulrasaq Lawani (2):
drm: add overview diagram for drm stack
drm: add overview diagram for drm stack
Documentation/gpu/introduction.rst | 40 +++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-)
---
base-commit: 4d07f5440d7afee27dada528aaf5230e760531cb
change-id: 20250522-drm-doc-updates-3686f6d48122
Best regards,
Signature · 1 line
Abdulrasaq Lawani <[email protected]>
PATCH v2 1/2 drm: add overview diagram for drm stack
Add an overview diagram of Linux DRM architecture for graphics and compute to introduction.rst
--- Documentation/gpu/introduction.rst | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-)
Documentation/gpu/introduction.rst +37 -1
@@ -14,7 +14,43 @@ including the TTM memory manager, output configuration and mode setting, and the new vblank internals, in addition to all the regular features found in current kernels. -[Insert diagram of typical DRM stack here] +Overview of the Linux DRM Architecture +----------------------------------------------- ++-----------------------------+ +| User-space Apps | +| (Games, Browsers, ML, etc.) | ++-----------------------------+ + | + v ++---------------------------------------+ +| Graphics APIs | Compute APIs | +| (OpenGL, Vulkan) | (OpenCL, CUDA) | ++---------------------------------------+ + | | + v v ++---------------------+ +-----------------------+ +| User-space Driver | | Compute Runtime | +| (Mesa, AMD/NVIDIA) | | (OpenCL, CUDA, ROCm) | ++---------------------+ +-----------------------+ + | | + +--------+----------+ + | + v + +-----------------------+ + | libdrm (DRM API) | + +-----------------------+ + | + v ++-------------------------------------------+ +| Kernel DRM/KMS Driver (i915, amdgpu, | +| nouveau, etc.) | ++-------------------------------------------+ + | | + v v ++----------------+ +-------------------+ +| GPU Display HW | | GPU Compute Units | ++----------------+ +-------------------+ + Style Guidelines ================
Signature · 1 line
2.43.0
PATCH v2 2/2 drm: add overview diagram for drm stack
In reply to Abdulrasaq LawaniPut overview diagram into a literal block
and set its section title to a higher order
--- Documentation/gpu/introduction.rst | 72 ++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 35 deletions(-)
Documentation/gpu/introduction.rst +37 -35
@@ -15,41 +15,43 @@ and the new vblank internals, in addition to all the regular features found in current kernels. Overview of the Linux DRM Architecture ------------------------------------------------ -+-----------------------------+ -| User-space Apps | -| (Games, Browsers, ML, etc.) | -+-----------------------------+ - | - v -+---------------------------------------+ -| Graphics APIs | Compute APIs | -| (OpenGL, Vulkan) | (OpenCL, CUDA) | -+---------------------------------------+ - | | - v v -+---------------------+ +-----------------------+ -| User-space Driver | | Compute Runtime | -| (Mesa, AMD/NVIDIA) | | (OpenCL, CUDA, ROCm) | -+---------------------+ +-----------------------+ - | | - +--------+----------+ - | - v - +-----------------------+ - | libdrm (DRM API) | - +-----------------------+ - | - v -+-------------------------------------------+ -| Kernel DRM/KMS Driver (i915, amdgpu, | -| nouveau, etc.) | -+-------------------------------------------+ - | | - v v -+----------------+ +-------------------+ -| GPU Display HW | | GPU Compute Units | -+----------------+ +-------------------+ +====================================== +:: + + +-----------------------------+ + | User-space Apps | + | (Games, Browsers, ML, etc.) | + +-----------------------------+ + | + v + +---------------------------------------+ + | Graphics APIs | Compute APIs | + | (OpenGL, Vulkan) | (OpenCL, CUDA) | + +---------------------------------------+ + | | + v v + +---------------------+ +-----------------------+ + | User-space Driver | | Compute Runtime | + | (Mesa, AMD/NVIDIA) | | (OpenCL, CUDA, ROCm) | + +---------------------+ +-----------------------+ + | | + +--------+----------+ + | + v + +-----------------------+ + | libdrm (DRM API) | + +-----------------------+ + | + v + +-------------------------------------------+ + | Kernel DRM/KMS Driver (i915, amdgpu, | + | nouveau, etc.) | + +-------------------------------------------+ + | | + v v + +----------------+ +-------------------+ + | GPU Display HW | | GPU Compute Units | + +----------------+ +-------------------+ Style Guidelines
Signature · 1 line
2.43.0
Quoted 34 lines · Abdulrasaq Lawani
Documentation/gpu/introduction.rst +0
-26@@ -15,41 +15,43 @@ and the new vblank internals, in addition to all the regular features found in current kernels. Overview of the Linux DRM Architecture ------------------------------------------------ -+-----------------------------+ -| User-space Apps | -| (Games, Browsers, ML, etc.) | -+-----------------------------+ - | - v -+---------------------------------------+ -| Graphics APIs | Compute APIs | -| (OpenGL, Vulkan) | (OpenCL, CUDA) | -+---------------------------------------+ - | | - v v -+---------------------+ +-----------------------+ -| User-space Driver | | Compute Runtime | -| (Mesa, AMD/NVIDIA) | | (OpenCL, CUDA, ROCm) | -+---------------------+ +-----------------------+ - | | - +--------+----------+ - | - v - +-----------------------+ - | libdrm (DRM API) | - +-----------------------+ - | - v
Documentation/gpu/introduction.rst and the new vblank internals, in addition to all the regular features · line 18
Quoted 10 lines
Documentation/gpu/introduction.rst +1
-9-+-------------------------------------------+ -| Kernel DRM/KMS Driver (i915, amdgpu, | -| nouveau, etc.) | -+-------------------------------------------+ - | | - v v -+----------------+ +-------------------+ -| GPU Display HW | | GPU Compute Units | -+----------------+ +-------------------+ +======================================
Why promoting the section heading?
Quoted 27 lines
Documentation/gpu/introduction.rst +27
-0+:: + + +-----------------------------+ + | User-space Apps | + | (Games, Browsers, ML, etc.) | + +-----------------------------+ + | + v + +---------------------------------------+ + | Graphics APIs | Compute APIs | + | (OpenGL, Vulkan) | (OpenCL, CUDA) | + +---------------------------------------+ + | | + v v + +---------------------+ +-----------------------+ + | User-space Driver | | Compute Runtime | + | (Mesa, AMD/NVIDIA) | | (OpenCL, CUDA, ROCm) | + +---------------------+ +-----------------------+ + | | + +--------+----------+ + | + v + +-----------------------+ + | libdrm (DRM API) | + +-----------------------+ + | + v
Documentation/gpu/introduction.rst and the new vblank internals, in addition to all the regular features · line 55
Quoted 10 lines
Documentation/gpu/introduction.rst +9
-0+ +-------------------------------------------+ + | Kernel DRM/KMS Driver (i915, amdgpu, | + | nouveau, etc.) | + +-------------------------------------------+ + | | + v v + +----------------+ +-------------------+ + | GPU Display HW | | GPU Compute Units | + +----------------+ +-------------------+
This is not how reviews from v1 should be addressed. Instead of making separate commit for review suggestions, you need to squash them into affected commit(s) in v1. In this case, there should be only one resulting patch. Don't forget to send it as v3.
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara