Skip to content

Commit d1c5c3e

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
drm/amd/display: Fixes for dcn32_clk_mgr implementation
[Why&How] Fix CLK MGR early initialization and add logging. Fixes: 265280b ("drm/amd/display: add CLKMGR changes for DCN32/321") Reviewed-by: Leo Li <sunpeng.li@amd.com> Reviewed-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>
1 parent b1bcdd4 commit d1c5c3e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,8 @@ void dcn32_clk_mgr_construct(
878878
struct pp_smu_funcs *pp_smu,
879879
struct dccg *dccg)
880880
{
881+
struct clk_log_info log_info = {0};
882+
881883
clk_mgr->base.ctx = ctx;
882884
clk_mgr->base.funcs = &dcn32_funcs;
883885
if (ASICREV_IS_GC_11_0_2(clk_mgr->base.ctx->asic_id.hw_internal_rev)) {
@@ -911,13 +913,16 @@ void dcn32_clk_mgr_construct(
911913
clk_mgr->base.clks.ref_dtbclk_khz = 268750;
912914
}
913915

916+
914917
/* integer part is now VCO frequency in kHz */
915918
clk_mgr->base.dentist_vco_freq_khz = dcn32_get_vco_frequency_from_reg(clk_mgr);
916919

917920
/* in case we don't get a value from the register, use default */
918921
if (clk_mgr->base.dentist_vco_freq_khz == 0)
919922
clk_mgr->base.dentist_vco_freq_khz = 4300000; /* Updated as per HW docs */
920923

924+
dcn32_dump_clk_registers(&clk_mgr->base.boot_snapshot, &clk_mgr->base, &log_info);
925+
921926
if (ctx->dc->debug.disable_dtb_ref_clk_switch &&
922927
clk_mgr->base.clks.ref_dtbclk_khz != clk_mgr->base.boot_snapshot.dtbclk) {
923928
clk_mgr->base.clks.ref_dtbclk_khz = clk_mgr->base.boot_snapshot.dtbclk;

0 commit comments

Comments
 (0)