drm/amd/display: Fix DCE 6.0 and 6.4 PLL programming.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 22 Jul 2025 15:58:30 +0000 (17:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Aug 2025 19:39:42 +0000 (15:39 -0400)
commit1c8dc3e088e09531bcdfc9fe348204abc3decb6c
tree074fbb8237c94631c8d7da13a255a43a9538353e
parent4db9cd554883e051df1840d4d58d636043101034
drm/amd/display: Fix DCE 6.0 and 6.4 PLL programming.

Apparently, both DCE 6.0 and 6.4 have 3 PLLs, but PLL0 can only
be used for DP. Make sure to initialize the correct amount of PLLs
in DC for these DCE versions and use PLL0 only for DP.

Also, on DCE 6.0 and 6.4, the PLL0 needs to be powered on at
initialization as opposed to DCE 6.1 and 7.x which use a different
clock source for DFS.

The following functions were used as reference from the old
radeon driver implementation of DCE 6.x:
- radeon_atom_pick_pll
- atombios_crtc_set_disp_eng_pll

Reviewed-by: Rodrigo Siqueira <siqueira@igalia.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 35222b5934ec8d762473592ece98659baf6bc48e)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
drivers/gpu/drm/amd/display/dc/resource/dce60/dce60_resource.c