All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Stefan Weil <sw@weilnetz.de>
Cc: "Dmitry Osipenko" <dmitry.osipenko@collabora.com>,
	"Akihiko Odaki" <odaki@rsg.ci.i.u-tokyo.ac.jp>,
	"Huang Rui" <ray.huang@amd.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Pierre-Eric Pelloux-Prayer" <pierre-eric.pelloux-prayer@amd.com>,
	"Michael S . Tsirkin" <mst@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Yiwei Zhang" <zzyiwei@gmail.com>,
	"Sergio Lopez Pascual" <slp@redhat.com>,
	"Gert Wollny" <gert.wollny@collabora.com>,
	qemu-devel@nongnu.org,
	"Gurchetan Singh" <gurchetansingh@chromium.org>,
	"Alyssa Ross" <hi@alyssa.is>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Stefano Stabellini" <stefano.stabellini@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"Xenia Ragiadakou" <xenia.ragiadakou@amd.com>,
	"Honglei Huang" <honglei1.huang@amd.com>,
	"Julia Zhang" <julia.zhang@amd.com>,
	"Chen Jiqian" <Jiqian.Chen@amd.com>,
	"Rob Clark" <robdclark@gmail.com>,
	"Robert Beckett" <bob.beckett@collabora.com>,
	"Anthony Roberts" <anthony.roberts@linaro.org>
Subject: Re: [PATCH v22 02/18] ui/sdl2: Don't disable scanout when display is refreshed
Date: Tue, 07 Apr 2026 18:24:26 +0100	[thread overview]
Message-ID: <87qzoqbs51.fsf@draig.linaro.org> (raw)
In-Reply-To: <c9943b84-e997-4ce8-8449-5c0115ca9250@weilnetz.de> (Stefan Weil's message of "Tue, 7 Apr 2026 18:44:43 +0200")

Stefan Weil <sw@weilnetz.de> writes:

> Am 03.03.26 um 16:14 schrieb Dmitry Osipenko:
>> Display refreshment is invoked by a timer and it erroneously disables
>> the active scanout if it happens to be invoked after scanout has been
>> enabled. This offending scanout-disable race condition with a timer
>> can be easily hit when Qemu runs with a disabled vsync by using SDL or
>> GTK displays (with vblank_mode=0 for GTK). Refreshment of display's
>> content shouldn't disable the active display. Fix it by keeping the
>> scanout's state unchanged when display is redrawn.
>> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
>> Acked-by: Michael S. Tsirkin <mst@redhat.com>
>> Tested-by: Alex Bennée <alex.bennee@linaro.org>
>> Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
>> Reviewed-by: Yiwei Zhang <zzyiwei@gmail.com>
>> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
>> ---
>>   ui/sdl2-gl.c | 1 -
>>   1 file changed, 1 deletion(-)
>> diff --git a/ui/sdl2-gl.c b/ui/sdl2-gl.c
>> index 3be17d1079af..5eca0248233e 100644
>> --- a/ui/sdl2-gl.c
>> +++ b/ui/sdl2-gl.c
>> @@ -51,7 +51,6 @@ static void sdl2_gl_render_surface(struct sdl2_console *scon)
>>       int ww, wh;
>>         SDL_GL_MakeCurrent(scon->real_window, scon->winctx);
>> -    sdl2_set_scanout_mode(scon, false);
>>         SDL_GetWindowSize(scon->real_window, &ww, &wh);
>>       surface_gl_setup_viewport(scon->gls, scon->surface, ww, wh);
>
> I got a user report that my latest QEMU for Windows no longer supports
> SDL. According to my own test, SDL still worked with git master
> (2026-03-07), but was broken with 11.0.0-rc0 (2026-03-18).

This is:

  https://gitlab.com/qemu-project/qemu/-/work_items/3347

Anthony should be posting a patch to the list soon.

>
> Therefore this patch series might have caused the regression which
> still exists in 11.0.0-rc2. All test installers are available here:
> https://qemu.weilnetz.de/w64/2026/.
>
> Regards
> Stefan Weil

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2026-04-07 19:27 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-03 15:14 [PATCH v22 00/18] Support virtio-gpu DRM native context and MAP_FIXED API Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 01/18] ui/gtk: Don't disable scanout when display is refreshed Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 02/18] ui/sdl2: " Dmitry Osipenko
2026-04-07 16:44   ` Stefan Weil via qemu development
2026-04-07 17:24     ` Alex Bennée [this message]
2026-04-08 13:47       ` Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 03/18] ui/egl: Don't change bound GL context when creating new context Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 04/18] ui/gdk: Restore original context after new context creation Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 05/18] ui/sdl2: " Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 06/18] ui/sdl2: Implement dpy dmabuf functions Dmitry Osipenko
2026-03-04  8:49   ` Alex Bennée
2026-03-04 10:33     ` Dmitry Osipenko
2026-03-04 11:40       ` Alex Bennée
2026-03-04 12:10       ` Alex Bennée
2026-03-04 12:11       ` Alex Bennée
2026-03-03 15:14 ` [PATCH v22 07/18] virtio-gpu: Ensure BHs are invoked only from main-loop thread Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 08/18] virtio-gpu: Handle virgl fence creation errors Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 09/18] virtio-gpu: Support asynchronous fencing Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 10/18] virtio-gpu: Support DRM native context Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 11/18] docs/system: virtio-gpu: Add link to Mesa VirGL doc Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 12/18] docs/system: virtio-gpu: Update Venus link Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 13/18] docs/system: virtio-gpu: Document host/guest requirements Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 14/18] virtio-gpu: Remove superfluous memory_region_set_enabled() Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 15/18] virtio-gpu: Validate hostmem mapping offset Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 16/18] virtio-gpu: Replace finish_unmapping with mapping_state Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 17/18] virtio-gpu: Destroy virgl resources on virtio-gpu reset Dmitry Osipenko
2026-03-03 15:14 ` [PATCH v22 18/18] virtio-gpu: Support mapping hostmem blobs with map_fixed Dmitry Osipenko
2026-03-03 17:33 ` [PATCH v22 00/18] Support virtio-gpu DRM native context and MAP_FIXED API Alex Bennée
2026-03-03 19:26   ` Dmitry Osipenko
2026-03-04  6:10 ` Akihiko Odaki
2026-03-04 10:34   ` Dmitry Osipenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87qzoqbs51.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=Jiqian.Chen@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=anthony.roberts@linaro.org \
    --cc=bob.beckett@collabora.com \
    --cc=christian.koenig@amd.com \
    --cc=dmitry.osipenko@collabora.com \
    --cc=gert.wollny@collabora.com \
    --cc=gurchetansingh@chromium.org \
    --cc=hi@alyssa.is \
    --cc=honglei1.huang@amd.com \
    --cc=julia.zhang@amd.com \
    --cc=kraxel@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mst@redhat.com \
    --cc=odaki@rsg.ci.i.u-tokyo.ac.jp \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=pierre-eric.pelloux-prayer@amd.com \
    --cc=qemu-devel@nongnu.org \
    --cc=ray.huang@amd.com \
    --cc=robdclark@gmail.com \
    --cc=roger.pau@citrix.com \
    --cc=slp@redhat.com \
    --cc=stefano.stabellini@amd.com \
    --cc=sw@weilnetz.de \
    --cc=xenia.ragiadakou@amd.com \
    --cc=zzyiwei@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.