]> www.infradead.org Git - users/willy/linux.git/commit
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 18:28:48 +0000 (14:28 -0400)
commit35222b5934ec8d762473592ece98659baf6bc48e
tree7601ac15ee62b30ae985e9eedc878b1938c400ff
parentbbddcbe36a686af03e91341b9bbfcca94bd45fb6
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>
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
drivers/gpu/drm/amd/display/dc/resource/dce60/dce60_resource.c