Bug 218115

Summary: 01f05940a9a75e11a2be64993c44ad8dd06e6e26 causes Wayland servers to flicker in non-gl virtio QEMU cards
Product: Drivers Reporter: bluescreen_avenger
Component: Video(Other)Assignee: drivers_video-other
Status: NEW ---    
Severity: normal CC: bagasdotme, javier
Priority: P3    
Hardware: i386   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: QEMU Log

Description bluescreen_avenger 2023-11-07 23:31:41 UTC
It seems that commit 01f05940a9a75e11a2be64993c44ad8dd06e6e26 introduced an issue impacting wlroots and Weston (possibly others) on QEMU with the virtio card. happens on QEMU, and it happens in virt-manager when I do NOT enable GL. (When GL is ENABLED it seems to be fine oddly)

It introduces odd flickering, Weston's desktop shell flashes when a new window opens, wlroots also acts odd.
This is QEMU 8.0.4

I have narrowed it down to 01f05940a9a75e11a2be64993c44ad8dd06e6e26. Reverting the commit (it still reverts cleanly), and the flicking goes away on a rebuild and this is on Linux 6.6.
Comment 1 Bagas Sanjaya 2023-11-08 00:02:25 UTC
(In reply to bluescreen_avenger from comment #0)
> It seems that commit 01f05940a9a75e11a2be64993c44ad8dd06e6e26 introduced an
> issue impacting wlroots and Weston (possibly others) on QEMU with the virtio
> card. happens on QEMU, and it happens in virt-manager when I do NOT enable
> GL. (When GL is ENABLED it seems to be fine oddly)
> 
> It introduces odd flickering, Weston's desktop shell flashes when a new
> window opens, wlroots also acts odd.
> This is QEMU 8.0.4
> 
> I have narrowed it down to 01f05940a9a75e11a2be64993c44ad8dd06e6e26.
> Reverting the commit (it still reverts cleanly), and the flicking goes away
> on a rebuild and this is on Linux 6.6.

Can you attach full journalctl output?
Comment 2 bluescreen_avenger 2023-11-08 02:55:20 UTC
Created attachment 305377 [details]
QEMU Log
Comment 3 Javier Martinez Canillas 2023-11-09 17:31:09 UTC
Hello, I've posted the following patch series that should fix the issue:

https://lists.freedesktop.org/archives/dri-devel/2023-November/430138.html

In particular, patches 1 to 3.
Comment 4 bluescreen_avenger 2023-11-09 22:45:27 UTC
Thanks!
Comment 5 bluescreen_avenger 2024-01-25 03:01:06 UTC
Applying the 5 patches against 6.7 and it appears to work now
Comment 6 bluescreen_avenger 2024-07-11 23:01:23 UTC
I think this is good to close now right? I think the fix has been merged a few versions ago by now