]> Gentwo Git Trees - linux/.git/commit
drm/vblank: Add CRTC helpers for simple use cases
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 16 Sep 2025 08:36:20 +0000 (10:36 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 1 Oct 2025 06:32:00 +0000 (08:32 +0200)
commitd54dbb5963bdbdf8559903fe2b2343e871adcb30
treea85c32c909cc7bc489cb5cd18c33d494a1507be4
parent74afeb8128502a529041a2566febd26053a7be11
drm/vblank: Add CRTC helpers for simple use cases

Implement atomic_flush, atomic_enable and atomic_disable of struct
drm_crtc_helper_funcs for vblank handling. Driver with no further
requirements can use these functions instead of adding their own.
Also simplifies the use of vblank timers.

The code has been adopted from vkms, which added the funtionality
in commit 3a0709928b17 ("drm/vkms: Add vblank events simulated by
hrtimers").

v3:
- mention vkms (Javier)
v2:
- fix docs

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20250916083816.30275-3-tzimmermann@suse.de
drivers/gpu/drm/drm_vblank_helper.c
include/drm/drm_vblank_helper.h