History

drm/doc: document that PRIME import/export is always supported

Since commit 6b85aa68d9d5 ("drm: Enable PRIME import/export for all drivers"), import/export is always supported. Document this so that user-space knows what to expect.

Simon Ser committed 3 years ago

Commit ad9ee111 parent 2ff4f6d1 file · +7 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/drm.h+7−0
@@ -673,6 +673,9 @@ struct drm_gem_open { · 672 unmodified lines
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,6 +685,8 @@ struct drm_gem_open { · 3 unmodified lines
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 /**
@@ -689,6 +694,8 @@ struct drm_gem_open { · 1 unmodified line
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 /**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t