Bug 1212533 - PRIME support for DRM drivers
Summary: PRIME support for DRM drivers
Status: RESOLVED FIXED
Alias: None
Product: Granite
Classification: SUSE ALP - SUSE Adaptable Linux Platform
Component: Kernel (show other bugs)
Version: unspecified
Hardware: Other Other
: P2 - High : Normal
Target Milestone: ---
Assignee: Thomas Zimmermann
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-20 08:28 UTC by Thomas Zimmermann
Modified: 2024-06-25 17:43 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Zimmermann 2023-06-20 08:28:39 UTC
Add PRIME support for the DRM drivers that do not have it already. This is required by our new installer, agama. Agama is based on the wlroots library, which uses PRIME to shared graphics buffers across process boundaries.

Most DRM drivers already support PRIME. For the few others, we don't need full import/export; only 'self-import', were drivers import buffers to themselves, is required.

A patchset has already been reviewed and is ready for being included in upstream at https://patchwork.freedesktop.org/series/119377/
Comment 1 Thomas Zimmermann 2023-06-27 08:15:18 UTC
The following commits from drm-misc-next hasve been mreged into ALP-current:

71a7974ac701 drm/prime: Unexport helpers for fd/handle conversion
71e801b9b44f drm: Clear fd/handle callbacks in struct drm_driver
6b85aa68d9d5 drm: Enable PRIME import/export for all drivers

All existing and any new drivers within DRM should now support PRIME import/export for their own buffers. I assume that this enables agama/sway/wlroots on all systems.

RESOLVING as FIXED.