diff options
Diffstat (limited to 'Documentation/gpu')
-rw-r--r-- | Documentation/gpu/amdgpu-dc.rst | 68 | ||||
-rw-r--r-- | Documentation/gpu/drivers.rst | 1 | ||||
-rw-r--r-- | Documentation/gpu/drm-mm.rst | 4 |
3 files changed, 71 insertions, 2 deletions
diff --git a/Documentation/gpu/amdgpu-dc.rst b/Documentation/gpu/amdgpu-dc.rst new file mode 100644 index 000000000000..cc89b0fc11df --- /dev/null +++ b/Documentation/gpu/amdgpu-dc.rst | |||
@@ -0,0 +1,68 @@ | |||
1 | =================================== | ||
2 | drm/amd/display - Display Core (DC) | ||
3 | =================================== | ||
4 | |||
5 | *placeholder - general description of supported platforms, what dc is, etc.* | ||
6 | |||
7 | Because it is partially shared with other operating systems, the Display Core | ||
8 | Driver is divided in two pieces. | ||
9 | |||
10 | 1. **Display Core (DC)** contains the OS-agnostic components. Things like | ||
11 | hardware programming and resource management are handled here. | ||
12 | 2. **Display Manager (DM)** contains the OS-dependent components. Hooks to the | ||
13 | amdgpu base driver and DRM are implemented here. | ||
14 | |||
15 | It doesn't help that the entire package is frequently referred to as DC. But | ||
16 | with the context in mind, it should be clear. | ||
17 | |||
18 | When CONFIG_DRM_AMD_DC is enabled, DC will be initialized by default for | ||
19 | supported ASICs. To force disable, set `amdgpu.dc=0` on kernel command line. | ||
20 | Likewise, to force enable on unsupported ASICs, set `amdgpu.dc=1`. | ||
21 | |||
22 | To determine if DC is loaded, search dmesg for the following entry: | ||
23 | |||
24 | ``Display Core initialized with <version number here>`` | ||
25 | |||
26 | AMDgpu Display Manager | ||
27 | ====================== | ||
28 | |||
29 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | ||
30 | :doc: overview | ||
31 | |||
32 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | ||
33 | :internal: | ||
34 | |||
35 | Lifecycle | ||
36 | --------- | ||
37 | |||
38 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | ||
39 | :doc: DM Lifecycle | ||
40 | |||
41 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | ||
42 | :functions: dm_hw_init dm_hw_fini | ||
43 | |||
44 | Interrupts | ||
45 | ---------- | ||
46 | |||
47 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | ||
48 | :doc: overview | ||
49 | |||
50 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | ||
51 | :internal: | ||
52 | |||
53 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | ||
54 | :functions: register_hpd_handlers dm_crtc_high_irq dm_pflip_high_irq | ||
55 | |||
56 | Atomic Implementation | ||
57 | --------------------- | ||
58 | |||
59 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | ||
60 | :doc: atomic | ||
61 | |||
62 | .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | ||
63 | :functions: amdgpu_dm_atomic_check amdgpu_dm_atomic_commit_tail | ||
64 | |||
65 | Display Core | ||
66 | ============ | ||
67 | |||
68 | **WIP** | ||
diff --git a/Documentation/gpu/drivers.rst b/Documentation/gpu/drivers.rst index 7d2d3875ff1a..7c1672118a73 100644 --- a/Documentation/gpu/drivers.rst +++ b/Documentation/gpu/drivers.rst | |||
@@ -5,6 +5,7 @@ GPU Driver Documentation | |||
5 | .. toctree:: | 5 | .. toctree:: |
6 | 6 | ||
7 | amdgpu | 7 | amdgpu |
8 | amdgpu-dc | ||
8 | i915 | 9 | i915 |
9 | meson | 10 | meson |
10 | pl111 | 11 | pl111 |
diff --git a/Documentation/gpu/drm-mm.rst b/Documentation/gpu/drm-mm.rst index e725e8449e72..d0f3c6b03200 100644 --- a/Documentation/gpu/drm-mm.rst +++ b/Documentation/gpu/drm-mm.rst | |||
@@ -72,8 +72,8 @@ object TTM to provide a pool for buffer object allocation by clients and | |||
72 | the kernel itself. The type of this object should be | 72 | the kernel itself. The type of this object should be |
73 | TTM_GLOBAL_TTM_BO, and its size should be sizeof(struct | 73 | TTM_GLOBAL_TTM_BO, and its size should be sizeof(struct |
74 | ttm_bo_global). Again, driver-specific init and release functions may | 74 | ttm_bo_global). Again, driver-specific init and release functions may |
75 | be provided, likely eventually calling ttm_bo_global_init() and | 75 | be provided, likely eventually calling ttm_bo_global_ref_init() and |
76 | ttm_bo_global_release(), respectively. Also, like the previous | 76 | ttm_bo_global_ref_release(), respectively. Also, like the previous |
77 | object, ttm_global_item_ref() is used to create an initial reference | 77 | object, ttm_global_item_ref() is used to create an initial reference |
78 | count for the TTM, which will call your initialization function. | 78 | count for the TTM, which will call your initialization function. |
79 | 79 | ||