blob: f8f5bf11a6ca5e4a66de75ef260c7d2ee7b1c88a [file] [log] [blame]
Jani Nikula2fa91d12016-06-21 14:49:02 +03001=========================
2Kernel Mode Setting (KMS)
3=========================
4
Jani Nikula2fa91d12016-06-21 14:49:02 +03005Drivers must initialize the mode setting core by calling
6:c:func:`drm_mode_config_init()` on the DRM device. The function
7initializes the :c:type:`struct drm_device <drm_device>`
8mode_config field and never fails. Once done, mode configuration must
9be setup by initializing the following fields.
10
11- int min_width, min_height; int max_width, max_height;
12 Minimum and maximum width and height of the frame buffers in pixel
13 units.
14
15- struct drm_mode_config_funcs \*funcs;
16 Mode setting functions.
17
Daniel Vetter2564d0b2017-03-02 16:16:35 +010018Overview
19========
20
21.. kernel-render:: DOT
22 :alt: KMS Display Pipeline
23 :caption: KMS Display Pipeline Overview
24
25 digraph "KMS" {
26 node [shape=box]
27
28 subgraph cluster_static {
29 style=dashed
30 label="Static Objects"
31
32 node [bgcolor=grey style=filled]
33 "drm_plane A" -> "drm_crtc"
34 "drm_plane B" -> "drm_crtc"
35 "drm_crtc" -> "drm_encoder A"
36 "drm_crtc" -> "drm_encoder B"
37 }
38
39 subgraph cluster_user_created {
40 style=dashed
41 label="Userspace-Created"
42
43 node [shape=oval]
44 "drm_framebuffer 1" -> "drm_plane A"
45 "drm_framebuffer 2" -> "drm_plane B"
46 }
47
48 subgraph cluster_connector {
49 style=dashed
50 label="Hotpluggable"
51
52 "drm_encoder A" -> "drm_connector A"
53 "drm_encoder B" -> "drm_connector B"
54 }
55 }
56
57The basic object structure KMS presents to userspace is fairly simple.
58Framebuffers (represented by :c:type:`struct drm_framebuffer <drm_framebuffer>`,
Daniel Vetter268bc242018-07-09 10:40:10 +020059see `Frame Buffer Abstraction`_) feed into planes. Planes are represented by
60:c:type:`struct drm_plane <drm_plane>`, see `Plane Abstraction`_ for more
61details. One or more (or even no) planes feed their pixel data into a CRTC
62(represented by :c:type:`struct drm_crtc <drm_crtc>`, see `CRTC Abstraction`_)
63for blending. The precise blending step is explained in more detail in `Plane
64Composition Properties`_ and related chapters.
Daniel Vetter2564d0b2017-03-02 16:16:35 +010065
66For the output routing the first step is encoders (represented by
67:c:type:`struct drm_encoder <drm_encoder>`, see `Encoder Abstraction`_). Those
68are really just internal artifacts of the helper libraries used to implement KMS
69drivers. Besides that they make it unecessarily more complicated for userspace
70to figure out which connections between a CRTC and a connector are possible, and
71what kind of cloning is supported, they serve no purpose in the userspace API.
72Unfortunately encoders have been exposed to userspace, hence can't remove them
73at this point. Futhermore the exposed restrictions are often wrongly set by
74drivers, and in many cases not powerful enough to express the real restrictions.
75A CRTC can be connected to multiple encoders, and for an active CRTC there must
76be at least one encoder.
77
78The final, and real, endpoint in the display chain is the connector (represented
79by :c:type:`struct drm_connector <drm_connector>`, see `Connector
80Abstraction`_). Connectors can have different possible encoders, but the kernel
81driver selects which encoder to use for each connector. The use case is DVI,
82which could switch between an analog and a digital encoder. Encoders can also
83drive multiple different connectors. There is exactly one active connector for
84every active encoder.
85
86Internally the output pipeline is a bit more complex and matches today's
87hardware more closely:
88
89.. kernel-render:: DOT
90 :alt: KMS Output Pipeline
91 :caption: KMS Output Pipeline
92
93 digraph "Output Pipeline" {
94 node [shape=box]
95
96 subgraph {
97 "drm_crtc" [bgcolor=grey style=filled]
98 }
99
100 subgraph cluster_internal {
101 style=dashed
102 label="Internal Pipeline"
103 {
104 node [bgcolor=grey style=filled]
105 "drm_encoder A";
106 "drm_encoder B";
107 "drm_encoder C";
108 }
109
110 {
111 node [bgcolor=grey style=filled]
112 "drm_encoder B" -> "drm_bridge B"
113 "drm_encoder C" -> "drm_bridge C1"
114 "drm_bridge C1" -> "drm_bridge C2";
115 }
116 }
117
118 "drm_crtc" -> "drm_encoder A"
119 "drm_crtc" -> "drm_encoder B"
120 "drm_crtc" -> "drm_encoder C"
121
122
123 subgraph cluster_output {
124 style=dashed
125 label="Outputs"
126
127 "drm_encoder A" -> "drm_connector A";
128 "drm_bridge B" -> "drm_connector B";
129 "drm_bridge C2" -> "drm_connector C";
130
131 "drm_panel"
132 }
133 }
134
135Internally two additional helper objects come into play. First, to be able to
136share code for encoders (sometimes on the same SoC, sometimes off-chip) one or
137more :ref:`drm_bridges` (represented by :c:type:`struct drm_bridge
138<drm_bridge>`) can be linked to an encoder. This link is static and cannot be
139changed, which means the cross-bar (if there is any) needs to be mapped between
140the CRTC and any encoders. Often for drivers with bridges there's no code left
141at the encoder level. Atomic drivers can leave out all the encoder callbacks to
142essentially only leave a dummy routing object behind, which is needed for
143backwards compatibility since encoders are exposed to userspace.
144
145The second object is for panels, represented by :c:type:`struct drm_panel
146<drm_panel>`, see :ref:`drm_panel_helper`. Panels do not have a fixed binding
147point, but are generally linked to the driver private structure that embeds
148:c:type:`struct drm_connector <drm_connector>`.
149
150Note that currently the bridge chaining and interactions with connectors and
151panels are still in-flux and not really fully sorted out yet.
Daniel Vetter28575f12016-11-14 12:58:23 +0100152
153KMS Core Structures and Functions
154=================================
155
Daniel Vetter28575f12016-11-14 12:58:23 +0100156.. kernel-doc:: include/drm/drm_mode_config.h
157 :internal:
158
Daniel Vetter1ea35762017-03-02 16:16:36 +0100159.. kernel-doc:: drivers/gpu/drm/drm_mode_config.c
160 :export:
161
Daniel Vetter949619f2016-08-29 10:27:51 +0200162Modeset Base Object Abstraction
163===============================
164
Daniel Vetterb2b82c22017-03-02 16:16:37 +0100165.. kernel-render:: DOT
166 :alt: Mode Objects and Properties
167 :caption: Mode Objects and Properties
168
169 digraph {
170 node [shape=box]
171
172 "drm_property A" -> "drm_mode_object A"
173 "drm_property A" -> "drm_mode_object B"
174 "drm_property B" -> "drm_mode_object A"
175 }
176
177The base structure for all KMS objects is :c:type:`struct drm_mode_object
178<drm_mode_object>`. One of the base services it provides is tracking properties,
179which are especially important for the atomic IOCTL (see `Atomic Mode
180Setting`_). The somewhat surprising part here is that properties are not
181directly instantiated on each object, but free-standing mode objects themselves,
182represented by :c:type:`struct drm_property <drm_property>`, which only specify
183the type and value range of a property. Any given property can be attached
184multiple times to different objects using :c:func:`drm_object_attach_property()
185<drm_object_attach_property>`.
186
Daniel Vetter949619f2016-08-29 10:27:51 +0200187.. kernel-doc:: include/drm/drm_mode_object.h
188 :internal:
189
190.. kernel-doc:: drivers/gpu/drm/drm_mode_object.c
191 :export:
192
Daniel Vetter4a8e2292017-03-02 16:16:38 +0100193Atomic Mode Setting
194===================
195
196
197.. kernel-render:: DOT
198 :alt: Mode Objects and Properties
199 :caption: Mode Objects and Properties
200
201 digraph {
202 node [shape=box]
203
204 subgraph cluster_state {
205 style=dashed
206 label="Free-standing state"
207
208 "drm_atomic_state" -> "duplicated drm_plane_state A"
209 "drm_atomic_state" -> "duplicated drm_plane_state B"
210 "drm_atomic_state" -> "duplicated drm_crtc_state"
211 "drm_atomic_state" -> "duplicated drm_connector_state"
212 "drm_atomic_state" -> "duplicated driver private state"
213 }
214
215 subgraph cluster_current {
216 style=dashed
217 label="Current state"
218
219 "drm_device" -> "drm_plane A"
220 "drm_device" -> "drm_plane B"
221 "drm_device" -> "drm_crtc"
222 "drm_device" -> "drm_connector"
223 "drm_device" -> "driver private object"
224
225 "drm_plane A" -> "drm_plane_state A"
226 "drm_plane B" -> "drm_plane_state B"
227 "drm_crtc" -> "drm_crtc_state"
228 "drm_connector" -> "drm_connector_state"
229 "driver private object" -> "driver private state"
230 }
231
232 "drm_atomic_state" -> "drm_device" [label="atomic_commit"]
233 "duplicated drm_plane_state A" -> "drm_device"[style=invis]
234 }
235
236Atomic provides transactional modeset (including planes) updates, but a
237bit differently from the usual transactional approach of try-commit and
238rollback:
239
240- Firstly, no hardware changes are allowed when the commit would fail. This
241 allows us to implement the DRM_MODE_ATOMIC_TEST_ONLY mode, which allows
242 userspace to explore whether certain configurations would work or not.
243
244- This would still allow setting and rollback of just the software state,
245 simplifying conversion of existing drivers. But auditing drivers for
246 correctness of the atomic_check code becomes really hard with that: Rolling
247 back changes in data structures all over the place is hard to get right.
248
249- Lastly, for backwards compatibility and to support all use-cases, atomic
250 updates need to be incremental and be able to execute in parallel. Hardware
251 doesn't always allow it, but where possible plane updates on different CRTCs
252 should not interfere, and not get stalled due to output routing changing on
253 different CRTCs.
254
255Taken all together there's two consequences for the atomic design:
256
257- The overall state is split up into per-object state structures:
258 :c:type:`struct drm_plane_state <drm_plane_state>` for planes, :c:type:`struct
259 drm_crtc_state <drm_crtc_state>` for CRTCs and :c:type:`struct
260 drm_connector_state <drm_connector_state>` for connectors. These are the only
261 objects with userspace-visible and settable state. For internal state drivers
262 can subclass these structures through embeddeding, or add entirely new state
263 structures for their globally shared hardware functions.
264
265- An atomic update is assembled and validated as an entirely free-standing pile
266 of structures within the :c:type:`drm_atomic_state <drm_atomic_state>`
Daniel Vetter5fca5ec2017-12-14 21:30:54 +0100267 container. Driver private state structures are also tracked in the same
268 structure; see the next chapter. Only when a state is committed is it applied
269 to the driver and modeset objects. This way rolling back an update boils down
270 to releasing memory and unreferencing objects like framebuffers.
Daniel Vetter4a8e2292017-03-02 16:16:38 +0100271
272Read on in this chapter, and also in :ref:`drm_atomic_helper` for more detailed
273coverage of specific topics.
274
Daniel Vetterda6c0592017-12-14 21:30:53 +0100275Handling Driver Private State
276-----------------------------
277
278.. kernel-doc:: drivers/gpu/drm/drm_atomic.c
279 :doc: handling driver private state
280
Jani Nikula2fa91d12016-06-21 14:49:02 +0300281Atomic Mode Setting Function Reference
Daniel Vetter4a8e2292017-03-02 16:16:38 +0100282--------------------------------------
Jani Nikula2fa91d12016-06-21 14:49:02 +0300283
Daniel Vetter5d070be2016-08-12 22:48:46 +0200284.. kernel-doc:: include/drm/drm_atomic.h
Jani Nikula2fa91d12016-06-21 14:49:02 +0300285 :internal:
286
Daniel Vetter1ea35762017-03-02 16:16:36 +0100287.. kernel-doc:: drivers/gpu/drm/drm_atomic.c
288 :export:
289
Ville Syrjäläd2a24ed2018-03-15 17:22:41 +0200290.. kernel-doc:: drivers/gpu/drm/drm_atomic.c
291 :internal:
292
Daniel Vetter28575f12016-11-14 12:58:23 +0100293CRTC Abstraction
294================
295
296.. kernel-doc:: drivers/gpu/drm/drm_crtc.c
Daniel Vetterd5d487e2017-01-25 07:26:57 +0100297 :doc: overview
298
299CRTC Functions Reference
300--------------------------------
Daniel Vetter28575f12016-11-14 12:58:23 +0100301
302.. kernel-doc:: include/drm/drm_crtc.h
303 :internal:
304
Daniel Vetterd5d487e2017-01-25 07:26:57 +0100305.. kernel-doc:: drivers/gpu/drm/drm_crtc.c
306 :export:
307
Jani Nikula2fa91d12016-06-21 14:49:02 +0300308Frame Buffer Abstraction
Daniel Vetter311b62d2016-08-12 22:48:41 +0200309========================
Jani Nikula2fa91d12016-06-21 14:49:02 +0300310
Daniel Vetter750fb8c2016-08-12 22:48:48 +0200311.. kernel-doc:: drivers/gpu/drm/drm_framebuffer.c
312 :doc: overview
Jani Nikula2fa91d12016-06-21 14:49:02 +0300313
Daniel Vetter7520a272016-08-15 16:07:02 +0200314Frame Buffer Functions Reference
315--------------------------------
316
Daniel Vetter7520a272016-08-15 16:07:02 +0200317.. kernel-doc:: include/drm/drm_framebuffer.h
318 :internal:
319
Daniel Vetter1ea35762017-03-02 16:16:36 +0100320.. kernel-doc:: drivers/gpu/drm/drm_framebuffer.c
321 :export:
322
Jani Nikula2fa91d12016-06-21 14:49:02 +0300323DRM Format Handling
Daniel Vetter311b62d2016-08-12 22:48:41 +0200324===================
Jani Nikula2fa91d12016-06-21 14:49:02 +0300325
Brian Starkey7e7b68e2018-08-21 17:16:11 +0100326.. kernel-doc:: include/uapi/drm/drm_fourcc.h
327 :doc: overview
328
329Format Functions Reference
330--------------------------
331
Laurent Pinchart84770cc2016-10-18 01:41:09 +0300332.. kernel-doc:: include/drm/drm_fourcc.h
333 :internal:
334
Jani Nikula2fa91d12016-06-21 14:49:02 +0300335.. kernel-doc:: drivers/gpu/drm/drm_fourcc.c
336 :export:
337
338Dumb Buffer Objects
Daniel Vetter311b62d2016-08-12 22:48:41 +0200339===================
Jani Nikula2fa91d12016-06-21 14:49:02 +0300340
Daniel Vetter4f936242016-11-14 12:58:21 +0100341.. kernel-doc:: drivers/gpu/drm/drm_dumb_buffers.c
342 :doc: overview
Jani Nikula2fa91d12016-06-21 14:49:02 +0300343
Daniel Vetter43968d72016-09-21 10:59:24 +0200344Plane Abstraction
345=================
346
Daniel Vetter532b3672016-09-21 10:59:25 +0200347.. kernel-doc:: drivers/gpu/drm/drm_plane.c
348 :doc: overview
349
Daniel Vetter43968d72016-09-21 10:59:24 +0200350Plane Functions Reference
351-------------------------
352
353.. kernel-doc:: include/drm/drm_plane.h
354 :internal:
355
356.. kernel-doc:: drivers/gpu/drm/drm_plane.c
357 :export:
358
Daniel Vetter311b62d2016-08-12 22:48:41 +0200359Display Modes Function Reference
360================================
Jani Nikula2fa91d12016-06-21 14:49:02 +0300361
Daniel Vetter311b62d2016-08-12 22:48:41 +0200362.. kernel-doc:: include/drm/drm_modes.h
363 :internal:
364
365.. kernel-doc:: drivers/gpu/drm/drm_modes.c
366 :export:
Jani Nikula2fa91d12016-06-21 14:49:02 +0300367
Daniel Vetterae2a6da2016-08-12 22:48:53 +0200368Connector Abstraction
369=====================
370
371.. kernel-doc:: drivers/gpu/drm/drm_connector.c
372 :doc: overview
373
374Connector Functions Reference
375-----------------------------
Daniel Vetter52217192016-08-12 22:48:50 +0200376
377.. kernel-doc:: include/drm/drm_connector.h
378 :internal:
379
380.. kernel-doc:: drivers/gpu/drm/drm_connector.c
381 :export:
382
Brian Starkey935774c2017-03-29 17:42:32 +0100383Writeback Connectors
384--------------------
385
386.. kernel-doc:: drivers/gpu/drm/drm_writeback.c
387 :doc: overview
388
389.. kernel-doc:: drivers/gpu/drm/drm_writeback.c
390 :export:
391
Daniel Vetter321a95a2016-08-29 10:27:49 +0200392Encoder Abstraction
393===================
394
Daniel Vettere03e6de2016-08-29 10:27:50 +0200395.. kernel-doc:: drivers/gpu/drm/drm_encoder.c
396 :doc: overview
397
398Encoder Functions Reference
399---------------------------
400
Daniel Vetter321a95a2016-08-29 10:27:49 +0200401.. kernel-doc:: include/drm/drm_encoder.h
402 :internal:
403
404.. kernel-doc:: drivers/gpu/drm/drm_encoder.c
405 :export:
406
Jani Nikula2fa91d12016-06-21 14:49:02 +0300407KMS Initialization and Cleanup
408==============================
409
410A KMS device is abstracted and exposed as a set of planes, CRTCs,
411encoders and connectors. KMS drivers must thus create and initialize all
412those objects at load time after initializing mode setting.
413
414CRTCs (:c:type:`struct drm_crtc <drm_crtc>`)
415--------------------------------------------
416
417A CRTC is an abstraction representing a part of the chip that contains a
418pointer to a scanout buffer. Therefore, the number of CRTCs available
419determines how many independent scanout buffers can be active at any
420given time. The CRTC structure contains several fields to support this:
421a pointer to some video memory (abstracted as a frame buffer object), a
422display mode, and an (x, y) offset into the video memory to support
423panning or configurations where one piece of video memory spans multiple
424CRTCs.
425
426CRTC Initialization
427~~~~~~~~~~~~~~~~~~~
428
429A KMS device must create and register at least one struct
430:c:type:`struct drm_crtc <drm_crtc>` instance. The instance is
431allocated and zeroed by the driver, possibly as part of a larger
432structure, and registered with a call to :c:func:`drm_crtc_init()`
433with a pointer to CRTC functions.
434
Jani Nikula2fa91d12016-06-21 14:49:02 +0300435
Jani Nikula2fa91d12016-06-21 14:49:02 +0300436Cleanup
437-------
438
439The DRM core manages its objects' lifetime. When an object is not needed
440anymore the core calls its destroy function, which must clean up and
441free every resource allocated for the object. Every
442:c:func:`drm_\*_init()` call must be matched with a corresponding
443:c:func:`drm_\*_cleanup()` call to cleanup CRTCs
444(:c:func:`drm_crtc_cleanup()`), planes
445(:c:func:`drm_plane_cleanup()`), encoders
446(:c:func:`drm_encoder_cleanup()`) and connectors
447(:c:func:`drm_connector_cleanup()`). Furthermore, connectors that
448have been added to sysfs must be removed by a call to
449:c:func:`drm_connector_unregister()` before calling
450:c:func:`drm_connector_cleanup()`.
451
452Connectors state change detection must be cleanup up with a call to
453:c:func:`drm_kms_helper_poll_fini()`.
454
455Output discovery and initialization example
456-------------------------------------------
457
Jani Nikula29849a62016-11-03 11:44:23 +0200458.. code-block:: c
Jani Nikula2fa91d12016-06-21 14:49:02 +0300459
460 void intel_crt_init(struct drm_device *dev)
461 {
462 struct drm_connector *connector;
463 struct intel_output *intel_output;
464
465 intel_output = kzalloc(sizeof(struct intel_output), GFP_KERNEL);
466 if (!intel_output)
467 return;
468
469 connector = &intel_output->base;
470 drm_connector_init(dev, &intel_output->base,
471 &intel_crt_connector_funcs, DRM_MODE_CONNECTOR_VGA);
472
473 drm_encoder_init(dev, &intel_output->enc, &intel_crt_enc_funcs,
474 DRM_MODE_ENCODER_DAC);
475
Daniel Vettercde4c442018-07-09 10:40:07 +0200476 drm_connector_attach_encoder(&intel_output->base,
Jani Nikula2fa91d12016-06-21 14:49:02 +0300477 &intel_output->enc);
478
479 /* Set up the DDC bus. */
480 intel_output->ddc_bus = intel_i2c_create(dev, GPIOA, "CRTDDC_A");
481 if (!intel_output->ddc_bus) {
482 dev_printk(KERN_ERR, &dev->pdev->dev, "DDC bus registration "
483 "failed.\n");
484 return;
485 }
486
487 intel_output->type = INTEL_OUTPUT_ANALOG;
488 connector->interlace_allowed = 0;
489 connector->doublescan_allowed = 0;
490
491 drm_encoder_helper_add(&intel_output->enc, &intel_crt_helper_funcs);
492 drm_connector_helper_add(connector, &intel_crt_connector_helper_funcs);
493
494 drm_connector_register(connector);
495 }
496
497In the example above (taken from the i915 driver), a CRTC, connector and
498encoder combination is created. A device-specific i2c bus is also
499created for fetching EDID data and performing monitor detection. Once
500the process is complete, the new connector is registered with sysfs to
501make its properties available to applications.
502
Jani Nikula2fa91d12016-06-21 14:49:02 +0300503KMS Locking
Daniel Vetter311b62d2016-08-12 22:48:41 +0200504===========
Jani Nikula2fa91d12016-06-21 14:49:02 +0300505
506.. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c
507 :doc: kms locking
508
509.. kernel-doc:: include/drm/drm_modeset_lock.h
510 :internal:
511
512.. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c
513 :export:
514
515KMS Properties
516==============
517
Daniel Vetter59e71ee2016-08-29 10:27:55 +0200518Property Types and Blob Property Support
519----------------------------------------
520
Daniel Vetterc8458c72016-08-29 10:27:57 +0200521.. kernel-doc:: drivers/gpu/drm/drm_property.c
522 :doc: overview
523
Daniel Vetter59e71ee2016-08-29 10:27:55 +0200524.. kernel-doc:: include/drm/drm_property.h
525 :internal:
526
527.. kernel-doc:: drivers/gpu/drm/drm_property.c
528 :export:
529
Daniel Vetter4ada6f22016-11-17 09:56:48 +0100530Standard Connector Properties
531-----------------------------
532
533.. kernel-doc:: drivers/gpu/drm/drm_connector.c
534 :doc: standard connector properties
535
Stanislav Lisovskiy50525c32018-05-15 16:59:27 +0300536HDMI Specific Connector Properties
Daniel Vetterba609632018-07-02 11:10:23 +0200537----------------------------------
Stanislav Lisovskiy50525c32018-05-15 16:59:27 +0300538
539.. kernel-doc:: drivers/gpu/drm/drm_connector.c
540 :doc: HDMI connector properties
541
Daniel Vetter1e4d84c2016-09-21 10:59:27 +0200542Plane Composition Properties
543----------------------------
544
545.. kernel-doc:: drivers/gpu/drm/drm_blend.c
546 :doc: overview
Daniel Vetter52a9fcd2016-08-12 22:48:51 +0200547
548.. kernel-doc:: drivers/gpu/drm/drm_blend.c
549 :export:
550
Daniel Vettera6acccf2016-09-21 10:59:29 +0200551Color Management Properties
552---------------------------
553
554.. kernel-doc:: drivers/gpu/drm/drm_color_mgmt.c
555 :doc: overview
556
Daniel Vettera6acccf2016-09-21 10:59:29 +0200557.. kernel-doc:: drivers/gpu/drm/drm_color_mgmt.c
558 :export:
559
Daniel Vetter9498c192016-11-14 12:58:24 +0100560Tile Group Property
561-------------------
562
563.. kernel-doc:: drivers/gpu/drm/drm_connector.c
564 :doc: Tile group
565
Gustavo Padovan9a83a712016-11-22 09:11:28 +0900566Explicit Fencing Properties
567---------------------------
568
569.. kernel-doc:: drivers/gpu/drm/drm_atomic.c
570 :doc: explicit fencing properties
571
Jani Nikula2fa91d12016-06-21 14:49:02 +0300572Existing KMS Properties
573-----------------------
574
Daniel Vetter3f0df752018-02-19 23:53:52 +0100575The following table gives description of drm properties exposed by various
576modules/drivers. Because this table is very unwieldy, do not add any new
577properties here. Instead document them in a section above.
Jani Nikula2fa91d12016-06-21 14:49:02 +0300578
579.. csv-table::
580 :header-rows: 1
581 :file: kms-properties.csv
582
583Vertical Blanking
584=================
585
Daniel Vetter57d30232017-05-24 16:51:45 +0200586.. kernel-doc:: drivers/gpu/drm/drm_vblank.c
587 :doc: vblank handling
Jani Nikula2fa91d12016-06-21 14:49:02 +0300588
589Vertical Blanking and Interrupt Handling Functions Reference
590------------------------------------------------------------
591
Daniel Vetter3ed43512017-05-31 11:21:46 +0200592.. kernel-doc:: include/drm/drm_vblank.h
Daniel Vetter34a67dd2016-07-15 21:48:01 +0200593 :internal:
Daniel Vetter1ea35762017-03-02 16:16:36 +0100594
Daniel Vetter3ed43512017-05-31 11:21:46 +0200595.. kernel-doc:: drivers/gpu/drm/drm_vblank.c
Daniel Vetter1ea35762017-03-02 16:16:36 +0100596 :export: