]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Replace VKMS vblank timer with common implementation
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 20 Apr 2026 12:51:53 +0000 (14:51 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2026 14:44:52 +0000 (10:44 -0400)
commitf86875a33984f460e765c17b4d97a04496b5ff69
tree07fe2a48b8d77fe60726fb9dd0098532ce649232
parent98ff46a5ea090c14d2cdb4f5b993b05d74f3949f
drm/amdgpu: Replace VKMS vblank timer with common implementation

Replace amdgpu's custom vblank timers with the shared implementation
in DRM's vblank code. Both are built upon hrtimers. The vblank logic
is identical.

The shared helpers contain all initialization internally. They also
handle a number of deadlocks and race conditions that are present in
amdgpu.

Also remove the set-but-unused field vsync_timer_enabled from struct
amdgpu_crtc.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c