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>
Wed, 6 Sep 2023 18:31:33 +0000 (14:31 -0400)
commit813ba1ff8484e801d2ef155e0e5388b8a7691788
treeab826810f70776015703d3f486b296a35799d772
parent19d5f80128d7a197fcb465f21465c30ee4c36f25
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