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.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -673,6 +673,9 @@ struct drm_gem_open { · 672 unmodified lines | ||
| 673 | 673 | * Bitfield of supported PRIME sharing capabilities. See &DRM_PRIME_CAP_IMPORT |
| 674 | 674 | * and &DRM_PRIME_CAP_EXPORT. |
| 675 | 675 | * |
| 676 | + * Starting from kernel version 6.6, both &DRM_PRIME_CAP_IMPORT and | |
| 677 | + * &DRM_PRIME_CAP_EXPORT are always advertised. | |
| 678 | + * | |
| 676 | 679 | * PRIME buffers are exposed as dma-buf file descriptors. |
| 677 | 680 | * See :ref:`prime_buffer_sharing`. |
| 678 | 681 | */ |
| @@ -682,6 +685,8 @@ struct drm_gem_open { · 3 unmodified lines | ||
| 682 | 685 | * |
| 683 | 686 | * If this bit is set in &DRM_CAP_PRIME, the driver supports importing PRIME |
| 684 | 687 | * 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. | |
| 685 | 690 | */ |
| 686 | 691 | #define DRM_PRIME_CAP_IMPORT 0x1 |
| 687 | 692 | /** |
| @@ -689,6 +694,8 @@ struct drm_gem_open { · 1 unmodified line | ||
| 689 | 694 | * |
| 690 | 695 | * If this bit is set in &DRM_CAP_PRIME, the driver supports exporting PRIME |
| 691 | 696 | * 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. | |
| 692 | 699 | */ |
| 693 | 700 | #define DRM_PRIME_CAP_EXPORT 0x2 |
| 694 | 701 | /** |