]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Documentation/gpu: add some tables of contents to large documents
authorJani Nikula <jani.nikula@intel.com>
Fri, 8 May 2026 11:12:08 +0000 (14:12 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 13 May 2026 08:07:12 +0000 (11:07 +0300)
Some of the GPU documentation pages are quite long, with various levels
of details. Add document internal tables of contents to the larger
documents to make them easier to navigate.

The index.rst in the sub-directories have toctrees, which provide
similar overviews.

Fix one missing newline at the end of drm-uapi.rst while at it,
primarily because rst should have it, and secondarily because my editor
rst mode refuses to save the file without it.

Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://patch.msgid.link/e3f9357c0e8198cc48e69e2a3b8ca072c7ab92ca.1778238671.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Documentation/gpu/driver-uapi.rst
Documentation/gpu/drm-internals.rst
Documentation/gpu/drm-kms-helpers.rst
Documentation/gpu/drm-kms.rst
Documentation/gpu/drm-mm.rst
Documentation/gpu/drm-ras.rst
Documentation/gpu/drm-uapi.rst
Documentation/gpu/drm-usage-stats.rst
Documentation/gpu/introduction.rst

index 1f15a8ca126516c23bd7374cc4aead0dfbbccf67..627fc68c7a21ac5ae002099904c828c73990f335 100644 (file)
@@ -2,6 +2,8 @@
 DRM Driver uAPI
 ===============
 
+.. contents::
+
 drm/i915 uAPI
 =============
 
index 94f93fd3b8a0a0d5b4f400b1c030916bab5af4fe..a3ce25a36f1d7e1ce23f1a672ace11aed8914f9f 100644 (file)
@@ -18,6 +18,8 @@ event handling, memory management, output management, framebuffer
 management, command submission & fencing, suspend/resume support, and
 DMA services.
 
+.. contents::
+
 Driver Initialization
 =====================
 
index b4a9e5ae81f6e5d605f0e636abf845ea285ba0a6..80453dda33b8484f68ee26c3311a72f2286bd586 100644 (file)
@@ -33,6 +33,8 @@ There are a few areas these helpers can grouped into:
   pipeline: Planes, handling rectangles for visibility checking and scissoring,
   flip queues and assorted bits.
 
+.. contents::
+
 Modeset Helper Reference for Common Vtables
 ===========================================
 
index fbe0583eb84c9c14bf9be9c59c7e8a44c7cd01bc..d22817fdf9aad7ff52c4144c0c211c3fb0dc2079 100644 (file)
@@ -15,6 +15,8 @@ be setup by initializing the following fields.
 -  struct drm_mode_config_funcs \*funcs;
    Mode setting functions.
 
+.. contents::
+
 Overview
 ========
 
index 32fb506db05b5794803ee31e12294e455ea71afe..2dea94f77d52dce965764e7350b022eff25ce21e 100644 (file)
@@ -25,6 +25,8 @@ share it. GEM has simpler initialization and execution requirements than
 TTM, but has no video RAM management capabilities and is thus limited to
 UMA devices.
 
+.. contents::
+
 The Translation Table Manager (TTM)
 ===================================
 
index 4636e68f5678ffa56f81099b07fdd10b49cf0961..83c21853b74b607a2979bd6ab04c01a503ef9678 100644 (file)
@@ -24,6 +24,8 @@ Key Goals:
   nodes for different IP blocks, sub-blocks, or other logical subdivisions
   as applicable.
 
+.. contents::
+
 Nodes
 =====
 
index 32206ce62931fcff198a50f0ad3b046a30de1d15..2c2f939322fb9b5c5353011c24acaa8a0db02a74 100644 (file)
@@ -16,6 +16,8 @@ management, and output management.
 Cover generic ioctls and sysfs layout here. We only need high-level
 info, since man pages should cover the rest.
 
+.. contents::
+
 libdrm Device Lookup
 ====================
 
@@ -765,4 +767,4 @@ Stable uAPI events
 From ``drivers/gpu/drm/scheduler/gpu_scheduler_trace.h``
 
 .. kernel-doc::  drivers/gpu/drm/scheduler/gpu_scheduler_trace.h
-   :doc: uAPI trace events
\ No newline at end of file
+   :doc: uAPI trace events
index 24d3012ca7a6f1a565b31f6b6f660dbb3b91b19d..70b7cfcc194f7c50a9b780e1d728aa9c0ee7f52f 100644 (file)
@@ -16,6 +16,8 @@ output is split between common and driver specific parts. Having said that,
 wherever possible effort should still be made to standardise as much as
 possible.
 
+.. contents::
+
 File format specification
 =========================
 
index d8f519693fc2cec91174a616d2c7a41b58e5e9ea..64074ac22d9b73c621846eca0bc7951143584e03 100644 (file)
@@ -16,6 +16,8 @@ found in current kernels.
 
 [Insert diagram of typical DRM stack here]
 
+.. contents::
+
 Style Guidelines
 ================