Bug 215631 - Some Desktop oriented mode setting drivers are missing DRM PRIME support
Summary: Some Desktop oriented mode setting drivers are missing DRM PRIME support
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-22 03:30 UTC by bluescreen_avenger
Modified: 2023-10-19 12:02 UTC (History)
0 users

See Also:
Kernel Version: 5.14
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description bluescreen_avenger 2022-02-22 03:30:01 UTC
Hi

It seems that not all Desktop GPU oriented DRM drivers support PRIME, which it now appears that wlroots requires. Seeing that even SimpleDRM supports PRIME though, I think that it should be possible for other drivers.  
 
The drivers appear to be
ast
gma500
bochs
i2c
vboxvideo
These are the ones that Debian has turned on that to my knowledge are missing this support, so that is what I am considering to be a Desktop GPU, although I might be wrong. I admit I am being very x86-centric.

I am not sure if I should open a separate bug for each driver, However I am not able to test all of them, as I really can only test the two virtual ones. The others I am going by grepping the kernel source for lines that I have been told to check for, and an online database https://drmdb.emersion.fr/capabilities

I am invested in this because I think pairing the wlroots based cage with a terminal emulator like foot is probably the best solution, and in a recent release of wlroots, DRM Prime is a hard requirement. (probably for how they do multiple GPUs, I am not sure)


Thanks
Comment 1 bluescreen_avenger 2023-04-06 01:33:51 UTC
I have been informed that 41068c8b28e16f1c2c26c854271520e1f3afaa22 in drm-misc-next should fix it for all the mentioned drivers in the list, except for gma500, ...and I have tested it, and it does work for bochs (in a QEMU card)
Comment 2 bluescreen_avenger 2023-10-19 12:02:57 UTC
I think 
6b85aa68d9d5a27556b8b1015e7e515a371e77de
71e801b9b44f86ce8c816b06960c705f901c50e5
71a7974ac7019afeec105a54447ae1dc7216cbb3 
resolve this

Note You need to log in before you can comment on or make changes to this bug.