drm/amd/display: Enable DTBCLK DTO earlier in the sequence
authorSung Joon Kim <sungjoon.kim@amd.com>
Tue, 19 Mar 2024 17:08:52 +0000 (13:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 02:03:05 +0000 (22:03 -0400)
commit14f9db4271ef5c78ae87237af844f03fb192d139
treeefee52ea66fe8d6e672933e719afd2ba253cf8b3
parent5db346c256bbacc634ff515a1a9202cd4b61d8c7
drm/amd/display: Enable DTBCLK DTO earlier in the sequence

[why]
As per programming guide, we need to
enable the virtual pixel clock via DTBCLK
DTO and ungate the clock before we begin
programming OPP/OPTC control registers.
Otherwise, the double-buffered registers
will be left pending until the clocks are enabled.

[how]
Move the DTBCLK DTO programming up to
where we do the legacy DP DTO programming.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Sung Joon Kim <sungjoon.kim@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/hwss/dcn20/dcn20_hwseq.c