]> Gentwo Git Trees - linux/.git/commit
drm/fb-helper: Synchronize dirty worker with vblank
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 29 Aug 2025 09:13:45 +0000 (11:13 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 16 Sep 2025 10:42:52 +0000 (12:42 +0200)
commitd8c4bddcd8bcb41885d3db2ba18c840c411564c2
treebe7af2a6180cfd46364e10a932f871307943ee48
parentcf207ea2c39d2809eb6e579279178dfdc89fa906
drm/fb-helper: Synchronize dirty worker with vblank

Before updating the display from the console's shadow buffer, the dirty
worker now waits for a vblank. This allows several screen updates to pile
up and acts as a rate limiter. If a DRM master is present, it could
interfere with the vblank. Don't wait in this case.

v4:
* share code with WAITFORVSYNC ioctl (Emil)
* use lock guard
v3:
* add back helper->lock
* acquire DRM master status while waiting for vblank
v2:
* don't hold helper->lock while waiting for vblank

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://lore.kernel.org/r/20250829091447.46719-1-tzimmermann@suse.de
drivers/gpu/drm/drm_client_modeset.c
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_client.h