Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Add debug parameter to retain default clock table

[Why]
Need a way to retain default clock table to aid
the investigation into why 8k@30 display not
lighting up on dcn314

[How]
Use flag to prevent execution of bw_params helper
function and function for updating bw_bounding_box

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Daniel Miess <Daniel.Miess@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Daniel Miess and committed by
Alex Deucher
d83a348b 373008bf

+3 -2
+1 -1
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
··· 719 719 if (clk_mgr->base.base.ctx->dc->debug.pstate_enabled) { 720 720 dcn314_get_dpm_table_from_smu(&clk_mgr->base, &smu_dpm_clks); 721 721 722 - if (ctx->dc_bios && ctx->dc_bios->integrated_info) { 722 + if (ctx->dc_bios && ctx->dc_bios->integrated_info && ctx->dc->config.use_default_clock_table == false) { 723 723 dcn314_clk_mgr_helper_populate_bw_params( 724 724 &clk_mgr->base, 725 725 ctx->dc_bios->integrated_info,
+1
drivers/gpu/drm/amd/display/dc/dc.h
··· 353 353 bool use_pipe_ctx_sync_logic; 354 354 bool ignore_dpref_ss; 355 355 bool enable_mipi_converter_optimization; 356 + bool use_default_clock_table; 356 357 }; 357 358 358 359 enum visual_confirm {
+1 -1
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
··· 189 189 dc_assert_fp_enabled(); 190 190 191 191 // Default clock levels are used for diags, which may lead to overclocking. 192 - if (!IS_DIAG_DC(dc->ctx->dce_environment)) { 192 + if (!IS_DIAG_DC(dc->ctx->dce_environment) && dc->config.use_default_clock_table == false) { 193 193 194 194 dcn3_14_ip.max_num_otg = dc->res_pool->res_cap->num_timing_generator; 195 195 dcn3_14_ip.max_num_dpp = dc->res_pool->pipe_count;