Skip to content

Commit 2e290c8

Browse files
committed
drm: document minimum kernel version for DRM_CLIENT_CAP_*
The kernel versions including the following commits are referenced: DRM_CLIENT_CAP_STEREO_3D 61d8e32 ("drm: Add a STEREO_3D capability to the SET_CLIENT_CAP ioctl") DRM_CLIENT_CAP_UNIVERSAL_PLANES 681e7ec ("drm: Allow userspace to ask for universal plane list (v2)") c7dbc6c ("drm: Remove command line guard for universal planes") DRM_CLIENT_CAP_ATOMIC 88a48e2 ("drm: add atomic properties") 8b72ce1 ("drm: Always enable atomic API") DRM_CLIENT_CAP_ASPECT_RATIO 7595bda ("drm: Add DRM client cap for aspect-ratio") DRM_CLIENT_CAP_WRITEBACK_CONNECTORS d67b6a2 ("drm: writeback: Add client capability for exposing writeback connectors") Signed-off-by: Simon Ser <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Acked-by: Daniel Stone <[email protected]> Acked-by: Pekka Paalanen <[email protected]> Link: https://patchwork.freedesktop.org/patch/434202/
1 parent bbf4627 commit 2e290c8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

include/uapi/drm/drm.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,9 @@ struct drm_get_cap {
780780
* If set to 1, the DRM core will expose the stereo 3D capabilities of the
781781
* monitor by advertising the supported 3D layouts in the flags of struct
782782
* drm_mode_modeinfo. See ``DRM_MODE_FLAG_3D_*``.
783+
*
784+
* This capability is always supported for all drivers starting from kernel
785+
* version 3.13.
783786
*/
784787
#define DRM_CLIENT_CAP_STEREO_3D 1
785788

@@ -788,6 +791,9 @@ struct drm_get_cap {
788791
*
789792
* If set to 1, the DRM core will expose all planes (overlay, primary, and
790793
* cursor) to userspace.
794+
*
795+
* This capability has been introduced in kernel version 3.15. Starting from
796+
* kernel version 3.17, this capability is always supported for all drivers.
791797
*/
792798
#define DRM_CLIENT_CAP_UNIVERSAL_PLANES 2
793799

@@ -797,6 +803,13 @@ struct drm_get_cap {
797803
* If set to 1, the DRM core will expose atomic properties to userspace. This
798804
* implicitly enables &DRM_CLIENT_CAP_UNIVERSAL_PLANES and
799805
* &DRM_CLIENT_CAP_ASPECT_RATIO.
806+
*
807+
* If the driver doesn't support atomic mode-setting, enabling this capability
808+
* will fail with -EOPNOTSUPP.
809+
*
810+
* This capability has been introduced in kernel version 4.0. Starting from
811+
* kernel version 4.2, this capability is always supported for atomic-capable
812+
* drivers.
800813
*/
801814
#define DRM_CLIENT_CAP_ATOMIC 3
802815

@@ -805,6 +818,9 @@ struct drm_get_cap {
805818
*
806819
* If set to 1, the DRM core will provide aspect ratio information in modes.
807820
* See ``DRM_MODE_FLAG_PIC_AR_*``.
821+
*
822+
* This capability is always supported for all drivers starting from kernel
823+
* version 4.18.
808824
*/
809825
#define DRM_CLIENT_CAP_ASPECT_RATIO 4
810826

@@ -814,6 +830,9 @@ struct drm_get_cap {
814830
* If set to 1, the DRM core will expose special connectors to be used for
815831
* writing back to memory the scene setup in the commit. The client must enable
816832
* &DRM_CLIENT_CAP_ATOMIC first.
833+
*
834+
* This capability is always supported for atomic-capable drivers starting from
835+
* kernel version 4.19.
817836
*/
818837
#define DRM_CLIENT_CAP_WRITEBACK_CONNECTORS 5
819838

0 commit comments

Comments
 (0)