]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/vmwgfx: Move vblank handling into separate helper
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Apr 2026 15:00:39 +0000 (17:00 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 4 May 2026 11:47:14 +0000 (13:47 +0200)
commit5c6113e07af73046ef32ac0acc9cdc15fb62c4da
tree15e4f2dbf5ed34c05313c1f24bf74d1bf31ef3e5
parent83ae9a231dadbe2b0686786344a692d0b598953a
drm/vmwgfx: Move vblank handling into separate helper

Decouple vblank handling from the underlying hrtimer. This will be
helpful for replacing vmwgfx's vblank timer with DRM's common
implementation.

The new helper vmw_vkms_handle_vblank_timeout() can later be used as
callback for DRM's handle_vblank call as-is. The helper also keeps the
current semantics for restarting the timer. It returns true to restart
the next vblank timeout even if it could not acquire vmwgfx's vblank
lock.

The remaining code in vmw_vkms_vblank_simulate() will be replaced by
the DRM implementation in a later patch.

v2:
- clarify return-value semantics in commit message (Zack)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patch.msgid.link/20260427150250.699768-3-tzimmermann@suse.de
drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c
drivers/gpu/drm/vmwgfx/vmwgfx_vkms.h