Skip to content

Commit ad9ee11

Browse files
committed
drm/doc: document that PRIME import/export is always supported
Since commit 6b85aa6 ("drm: Enable PRIME import/export for all drivers"), import/export is always supported. Document this so that user-space knows what to expect. Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Cc: Thomas Zimmermann <tzimmermann@suse.de> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Jeffrey Hugo <quic_jhugo@quicinc.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20230712183156.191445-1-contact@emersion.fr
1 parent 2ff4f6d commit ad9ee11

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

include/uapi/drm/drm.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,9 @@ struct drm_gem_open {
673673
* Bitfield of supported PRIME sharing capabilities. See &DRM_PRIME_CAP_IMPORT
674674
* and &DRM_PRIME_CAP_EXPORT.
675675
*
676+
* Starting from kernel version 6.6, both &DRM_PRIME_CAP_IMPORT and
677+
* &DRM_PRIME_CAP_EXPORT are always advertised.
678+
*
676679
* PRIME buffers are exposed as dma-buf file descriptors.
677680
* See :ref:`prime_buffer_sharing`.
678681
*/
@@ -682,13 +685,17 @@ struct drm_gem_open {
682685
*
683686
* If this bit is set in &DRM_CAP_PRIME, the driver supports importing PRIME
684687
* buffers via the &DRM_IOCTL_PRIME_FD_TO_HANDLE ioctl.
688+
*
689+
* Starting from kernel version 6.6, this bit is always set in &DRM_CAP_PRIME.
685690
*/
686691
#define DRM_PRIME_CAP_IMPORT 0x1
687692
/**
688693
* DRM_PRIME_CAP_EXPORT
689694
*
690695
* If this bit is set in &DRM_CAP_PRIME, the driver supports exporting PRIME
691696
* buffers via the &DRM_IOCTL_PRIME_HANDLE_TO_FD ioctl.
697+
*
698+
* Starting from kernel version 6.6, this bit is always set in &DRM_CAP_PRIME.
692699
*/
693700
#define DRM_PRIME_CAP_EXPORT 0x2
694701
/**

0 commit comments

Comments
 (0)