drm/amd/display: more liberal vmin/vmax update for freesync
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 16 Apr 2025 15:26:54 +0000 (11:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 May 2025 16:56:37 +0000 (12:56 -0400)
commitcfb2d41831ee5647a4ae0ea7c24971a92d5dfa0d
treec014c45edd3cb47d8c2423bbba980ab456670a43
parent4daa5e6c2b8a98afdae46a955f1becbf7bd59507
drm/amd/display: more liberal vmin/vmax update for freesync

[Why]
FAMS2 expects vmin/vmax to be updated in the case when freesync is
off, but supported. But we only update it when freesync is enabled.

[How]
Change the vsync handler such that dc_stream_adjust_vmin_vmax() its called
irrespective of whether freesync is enabled. If freesync is supported,
then there is no harm in updating vmin/vmax registers.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3546
Reviewed-by: ChiaHsuan Chung <chiahsuan.chung@amd.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