drm/amd/display: limit the v_startup workaround to ASICs older than DCN3.1
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Thu, 31 Aug 2023 19:22:35 +0000 (15:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Sep 2023 02:08:26 +0000 (22:08 -0400)
commit47428f4b638d3b3264a2efa1a567b0bbddbb6107
tree1ea851e36beb9bf0d7003cf5e6af9e3cab9f5ade
parenta81de4a22bbe3183b7f0d6f13f592b8f5b5a3c18
drm/amd/display: limit the v_startup workaround to ASICs older than DCN3.1

Since, calling dcn20_adjust_freesync_v_startup() on DCN3.1+ ASICs
can cause the display to flicker and underflow to occur, we shouldn't
call it for them. So, ensure that the DCN version is less than
DCN_VERSION_3_1 before calling dcn20_adjust_freesync_v_startup().

Cc: stable@vger.kernel.org
Reviewed-by: Fangzhi Zuo <jerry.zuo@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c