]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Wed, 7 May 2025 22:08:36 +0000 (18:08 -0400)
commitf1c6be3999d2be2673a51a9be0caf9348e254e52
tree7c2d96a265cf93784c329a3530cfedeea1007436
parent9984db63742099ee3f3cff35cf71306d10e64356
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>
(cherry picked from commit cfb2d41831ee5647a4ae0ea7c24971a92d5dfa0d)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c