Skip to content

Commit aadaeca

Browse files
charliu-AMDENGalexdeucher
authored andcommitted
drm/amd/display: remove dtbclk_ss compensation for dcn316
[why] dcn316's dtbclk is from non_ss clock source. no compensation required here. Reviewed-by: Chris Park <Chris.Park@amd.com> Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com> Signed-off-by: Charlene Liu <Charlene.Liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 4593c1b commit aadaeca

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ void dce_clock_read_ss_info(struct clk_mgr_internal *clk_mgr_dce)
374374
clk_mgr_dce->dprefclk_ss_percentage =
375375
info.spread_spectrum_percentage;
376376
}
377-
if (clk_mgr_dce->base.ctx->dc->debug.ignore_dpref_ss)
377+
if (clk_mgr_dce->base.ctx->dc->config.ignore_dpref_ss)
378378
clk_mgr_dce->dprefclk_ss_percentage = 0;
379379
}
380380
}

drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ void dcn316_clk_mgr_construct(
686686
clk_mgr->base.base.dprefclk_khz = dcn316_smu_get_dpref_clk(&clk_mgr->base);
687687
clk_mgr->base.dccg->ref_dtbclk_khz = clk_mgr->base.base.dprefclk_khz;
688688
dce_clock_read_ss_info(&clk_mgr->base);
689-
clk_mgr->base.dccg->ref_dtbclk_khz =
690-
dce_adjust_dp_ref_freq_for_ss(&clk_mgr->base, clk_mgr->base.base.dprefclk_khz);
689+
/*clk_mgr->base.dccg->ref_dtbclk_khz =
690+
dce_adjust_dp_ref_freq_for_ss(&clk_mgr->base, clk_mgr->base.base.dprefclk_khz);*/
691691

692692
clk_mgr->base.base.bw_params = &dcn316_bw_params;
693693

drivers/gpu/drm/amd/display/dc/dc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ struct dc_config {
340340
bool is_asymmetric_memory;
341341
bool is_single_rank_dimm;
342342
bool use_pipe_ctx_sync_logic;
343+
bool ignore_dpref_ss;
343344
};
344345

345346
enum visual_confirm {
@@ -729,7 +730,6 @@ struct dc_debug_options {
729730
bool apply_vendor_specific_lttpr_wa;
730731
bool extended_blank_optimization;
731732
union aux_wake_wa_options aux_wake_wa;
732-
bool ignore_dpref_ss;
733733
uint8_t psr_power_use_phy_fsm;
734734
};
735735

0 commit comments

Comments
 (0)