Bug 1212133

Summary: PRIME support on bochs DRM driver
Product: [openSUSE] openSUSE Tumbleweed Reporter: Joan Torres <joan.torres>
Component: KernelAssignee: Thomas Zimmermann <tzimmermann>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: patrik.jakobsson, tiwai, tzimmermann
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
See Also: https://bugzilla.suse.com/show_bug.cgi?id=1212533
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Joan Torres 2023-06-08 08:36:40 UTC
I'm trying to start a wlroots compositor (sway) on a QEMU machine is using the  Bochs DRM driver. (Kernel version 6.3.4-1-default).

The start fails saying PRIME import not supported.
I've seen there's already a patch that adds this:
https://lore.kernel.org/dri-devel/20230301222903.458692-1-contact@emersion.fr/T/#u

Could it be added to see if that fixes it?
How could I check if it was already added?
Comment 1 Thomas Zimmermann 2023-06-09 14:05:18 UTC
I asked upstream to move forward with that patchset.
Comment 2 Thomas Zimmermann 2023-06-12 15:13:34 UTC
Hi

(In reply to Thomas Zimmermann from comment #1)
> I asked upstream to move forward with that patchset.

The following commit are in v6.4-rc1 and later

41068c8b28e16 drm/vram-helper: turn on PRIME import/export
207395da5a970 drm/prime: reject DMA-BUF attach when get_sg_table is missing

The feature should be available in the upcoming v6.4 kernel.

Resolving this bug report as INVALID.
Comment 4 Thomas Zimmermann 2023-06-13 10:58:32 UTC
(In reply to Thomas Zimmermann from comment #2)
> Hi
> 
> (In reply to Thomas Zimmermann from comment #1)
> > I asked upstream to move forward with that patchset.
> 
> The following commit are in v6.4-rc1 and later
> 
> 41068c8b28e16 drm/vram-helper: turn on PRIME import/export
> 207395da5a970 drm/prime: reject DMA-BUF attach when get_sg_table is missing
> 
> The feature should be available in the upcoming v6.4 kernel.
> 
> Resolving this bug report as INVALID.

After considering Takashi's comment, I merged the two patches into stable. They should be in the next TW and ALP kernels.

Changing the status to RESOLVED/FIXED.