]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Fix Xorg desktop unresponsive on Replay panel
authorTom Chung <chiahsuan.chung@amd.com>
Fri, 18 Jul 2025 10:25:08 +0000 (18:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Aug 2025 21:56:53 +0000 (17:56 -0400)
commit66af73a1c319336694a8610fe4c2943f7b33066c
treedee9586801c96398ee652d0763691c317e51c63a
parent07b93a5704b0b72002f0c4bd1076214af67dc661
drm/amd/display: Fix Xorg desktop unresponsive on Replay panel

[WHY & HOW]
IPS & self-fresh feature can cause vblank counter resets between
vblank disable and enable.
It may cause system stuck due to wait the vblank counter.

Call the drm_crtc_vblank_restore() during vblank enable to estimate
missed vblanks by using timestamps and update the vblank counter in
DRM.

It can make the vblank counter increase smoothly and resolve this issue.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Sun peng (Leo) Li <sunpeng.li@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 34d66bc7ff10e146a4cec76cf286979740a10954)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c