drm/amd/display: Defer BW-optimization-blocked DRR adjustments
authorJohn Olender <john.olender@gmail.com>
Wed, 16 Apr 2025 06:54:26 +0000 (02:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 May 2025 13:28:41 +0000 (09:28 -0400)
commit53761b7ecd83e6fbb9f2206f8c980a6aa308c844
treebb4ee21af4af94f9ef8ea5db44e4fe5206ce07e0
parent9334c491cd8f388232b9a187bf0ddb728482bd6f
drm/amd/display: Defer BW-optimization-blocked DRR adjustments

[Why & How]
Instead of dropping DRR updates, defer them. This fixes issues where
monitor continues to see incorrect refresh rate after VRR was turned off
by userspace.

Fixes: 32953485c558 ("drm/amd/display: Do not update DRR while BW optimizations pending")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3546
Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Signed-off-by: John Olender <john.olender@gmail.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc.c