Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools headers UAPI: Update tools's copy of drm/drm.h header

Picking the changes from:

2e290c8d8d29278b ("drm: document minimum kernel version for DRM_CLIENT_CAP_*")
bbf4627ba6415711 ("drm: clarify and linkify DRM_CLIENT_CAP_WRITEBACK_CONNECTORS docs")
88938bf343efbc4d ("drm: reference mode flags in DRM_CLIENT_CAP_* docs")

Silencing these perf build warnings:

Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h'
diff -u tools/include/uapi/drm/drm.h include/uapi/drm/drm.h

No changes in tooling as these are just C comment documentation changes.

Cc: Simon Ser <contact@emersion.fr>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+24 -4
+24 -4
tools/include/uapi/drm/drm.h
··· 777 777 /** 778 778 * DRM_CLIENT_CAP_STEREO_3D 779 779 * 780 - * if set to 1, the DRM core will expose the stereo 3D capabilities of the 780 + * If set to 1, the DRM core will expose the stereo 3D capabilities of the 781 781 * monitor by advertising the supported 3D layouts in the flags of struct 782 - * drm_mode_modeinfo. 782 + * 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. 783 786 */ 784 787 #define DRM_CLIENT_CAP_STEREO_3D 1 785 788 ··· 791 788 * 792 789 * If set to 1, the DRM core will expose all planes (overlay, primary, and 793 790 * cursor) to userspace. 791 + * 792 + * This capability has been introduced in kernel version 3.15. Starting from 793 + * kernel version 3.17, this capability is always supported for all drivers. 794 794 */ 795 795 #define DRM_CLIENT_CAP_UNIVERSAL_PLANES 2 796 796 ··· 803 797 * If set to 1, the DRM core will expose atomic properties to userspace. This 804 798 * implicitly enables &DRM_CLIENT_CAP_UNIVERSAL_PLANES and 805 799 * &DRM_CLIENT_CAP_ASPECT_RATIO. 800 + * 801 + * If the driver doesn't support atomic mode-setting, enabling this capability 802 + * will fail with -EOPNOTSUPP. 803 + * 804 + * This capability has been introduced in kernel version 4.0. Starting from 805 + * kernel version 4.2, this capability is always supported for atomic-capable 806 + * drivers. 806 807 */ 807 808 #define DRM_CLIENT_CAP_ATOMIC 3 808 809 ··· 817 804 * DRM_CLIENT_CAP_ASPECT_RATIO 818 805 * 819 806 * If set to 1, the DRM core will provide aspect ratio information in modes. 807 + * See ``DRM_MODE_FLAG_PIC_AR_*``. 808 + * 809 + * This capability is always supported for all drivers starting from kernel 810 + * version 4.18. 820 811 */ 821 812 #define DRM_CLIENT_CAP_ASPECT_RATIO 4 822 813 ··· 828 811 * DRM_CLIENT_CAP_WRITEBACK_CONNECTORS 829 812 * 830 813 * If set to 1, the DRM core will expose special connectors to be used for 831 - * writing back to memory the scene setup in the commit. Depends on client 832 - * also supporting DRM_CLIENT_CAP_ATOMIC 814 + * writing back to memory the scene setup in the commit. The client must enable 815 + * &DRM_CLIENT_CAP_ATOMIC first. 816 + * 817 + * This capability is always supported for atomic-capable drivers starting from 818 + * kernel version 4.19. 833 819 */ 834 820 #define DRM_CLIENT_CAP_WRITEBACK_CONNECTORS 5 835 821