]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/vmwgfx: Determine lock-waiting timeout from vblank state
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Apr 2026 15:00:38 +0000 (17:00 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 4 May 2026 11:47:02 +0000 (13:47 +0200)
commit83ae9a231dadbe2b0686786344a692d0b598953a
tree3b18bbcddca89560edec5219ada3d1da40615a20
parentc0d650bd0e67048dba04cdc21e8d77aef1ff0d5f
drm/vmwgfx: Determine lock-waiting timeout from vblank state

Use the calculated duration of a frame as stored in the vblank state
for the lock-waiting timeout. Decouples the waiting from the details
of the vblank implementation. Both values should be equal.

This will be helpful for replacing vmwgfx's vblank timer with DRM's
common implementation.

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