drm/amd/display: fix clock sequence logic for DCN32
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Tue, 21 Feb 2023 23:35:14 +0000 (18:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Feb 2023 19:30:55 +0000 (14:30 -0500)
commita03e3cb16dfdf4e39ed4ed80314256f9ba671ff0
treee9bd0a593a5ce0fb21c5709614d1389078e7f1c1
parent32953485c558cecf08f33fbfa251e80e44cef981
drm/amd/display: fix clock sequence logic for DCN32

[Why&How]
The newer commit sequence on DCN32 onwards did not finish clock
optimization sequence since the newer sequence did not end up calling
dc_post_update_surfaces_to_stream() which resets dc->optimized_required.

Call this function before passing control on to the new commit sequence.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c