| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
| H A D | rv1_clk_mgr.c | 44 bool request_dpp_div = new_clocks->dispclk_khz > new_clocks->dppclk_khz; in rv1_determine_dppclk_threshold() 45 bool dispclk_increase = new_clocks->dispclk_khz > clk_mgr->base.clks.dispclk_khz; in rv1_determine_dppclk_threshold() 47 bool cur_dpp_div = clk_mgr->base.clks.dispclk_khz > clk_mgr->base.clks.dppclk_khz; in rv1_determine_dppclk_threshold() 53 return new_clocks->dispclk_khz; in rv1_determine_dppclk_threshold() 58 if (new_clocks->dispclk_khz <= disp_clk_threshold) in rv1_determine_dppclk_threshold() 59 return new_clocks->dispclk_khz; in rv1_determine_dppclk_threshold() 63 return new_clocks->dispclk_khz; in rv1_determine_dppclk_threshold() 72 return new_clocks->dispclk_khz; in rv1_determine_dppclk_threshold() 77 if (clk_mgr->base.clks.dispclk_khz <= disp_clk_threshold) in rv1_determine_dppclk_threshold() 78 return new_clocks->dispclk_khz; in rv1_determine_dppclk_threshold() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
| H A D | dcn20_clk_mgr.c | 131 * clk_mgr->base.dentist_vco_freq_khz / clk_mgr->base.clks.dispclk_khz; in dcn20_update_clocks_update_dentist() 166 if (clk_mgr_base->clks.dispclk_khz == 0 || in dcn2_update_clocks() 233 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn2_update_clocks() 234 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn2_update_clocks() 243 …ks->disp_dpp_voltage_level_khz = new_clocks->dispclk_khz > new_clocks->dppclk_khz ? new_clocks->di… in dcn2_update_clocks() 269 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in dcn2_update_clocks() 312 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr->clks.dispclk_khz)) { in dcn2_update_clocks_fpga() 313 clk_mgr->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn2_update_clocks_fpga() 369 clk_mgr_base->clks.dispclk_khz = (DENTIST_DIVIDER_RANGE_SCALE_FACTOR in dcn2_read_clocks_from_hw_dentist() 387 clock_cfg->current_clock_khz = clk_mgr->clks.dispclk_khz; in dcn2_get_clock() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce/ |
| H A D | dce_clk_mgr.c | 227 if (context->bw_ctx.bw.dce.dispclk_khz > in dce_get_required_clocks_state() 237 < context->bw_ctx.bw.dce.dispclk_khz) in dce_get_required_clocks_state() 650 pp_display_cfg->disp_clk_khz = dc->res_pool->clk_mgr->clks.dispclk_khz; in dce11_pplib_apply_display_requirements() 674 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce_update_clocks() 688 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr->clks.dispclk_khz)) { in dce_update_clocks() 690 clk_mgr->clks.dispclk_khz = patched_disp_clk; in dce_update_clocks() 701 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce11_update_clocks() 715 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr->clks.dispclk_khz)) { in dce11_update_clocks() 716 context->bw_ctx.bw.dce.dispclk_khz = dce_set_clock(clk_mgr, patched_disp_clk); in dce11_update_clocks() 717 clk_mgr->clks.dispclk_khz = patched_disp_clk; in dce11_update_clocks() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
| H A D | dcn30_clk_mgr.c | 248 if (clk_mgr_base->clks.dispclk_khz == 0 || in dcn3_update_clocks() 315 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn3_update_clocks() 316 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn3_update_clocks() 317 dcn30_smu_set_hard_min_by_freq(clk_mgr, PPCLK_DISPCLK, clk_mgr_base->clks.dispclk_khz / 1000); in dcn3_update_clocks() 340 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in dcn3_update_clocks() 426 if (a->dispclk_khz != b->dispclk_khz) in dcn3_are_clock_states_equal()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
| H A D | dce110_clk_mgr.c | 230 pp_display_cfg->disp_clk_khz = dc->clk_mgr->clks.dispclk_khz; in dce11_pplib_apply_display_requirements() 254 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce11_update_clocks() 268 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce11_update_clocks() 269 context->bw_ctx.bw.dce.dispclk_khz = dce_set_clock(clk_mgr_base, patched_disp_clk); in dce11_update_clocks() 270 clk_mgr_base->clks.dispclk_khz = patched_disp_clk; in dce11_update_clocks()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/ |
| H A D | dce120_clk_mgr.c | 91 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce12_update_clocks() 97 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce12_update_clocks() 107 clk_mgr_base->clks.dispclk_khz = dce112_set_clock(clk_mgr_base, patched_disp_clk); in dce12_update_clocks()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
| H A D | rn_clk_mgr.c | 172 if (new_clocks->dppclk_khz == 0 || new_clocks->dispclk_khz == 0) { in rn_update_clocks() 174 new_clocks->dispclk_khz = clk_mgr_base->clks.dispclk_khz; in rn_update_clocks() 184 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in rn_update_clocks() 185 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in rn_update_clocks() 186 rn_vbios_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in rn_update_clocks() 208 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in rn_update_clocks() 501 if (a->dispclk_khz != b->dispclk_khz) in rn_are_clock_states_equal()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dce60/ |
| H A D | dce60_clk_mgr.c | 126 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce60_update_clocks() 140 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce60_update_clocks() 142 clk_mgr_base->clks.dispclk_khz = patched_disp_clk; in dce60_update_clocks()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
| H A D | dce_clk_mgr.c | 208 if (context->bw_ctx.bw.dce.dispclk_khz > in dce_get_required_clocks_state() 218 < context->bw_ctx.bw.dce.dispclk_khz) in dce_get_required_clocks_state() 401 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce_update_clocks() 415 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce_update_clocks() 417 clk_mgr_base->clks.dispclk_khz = patched_disp_clk; in dce_update_clocks()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/ |
| H A D | dce112_clk_mgr.c | 198 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce112_update_clocks() 212 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce112_update_clocks() 214 clk_mgr_base->clks.dispclk_khz = patched_disp_clk; in dce112_update_clocks()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_debug.c | 352 context->bw_ctx.bw.dcn.clk.dispclk_khz, in context_clock_trace() 360 context->bw_ctx.bw.dcn.clk.dispclk_khz, in context_clock_trace()
|
| H A D | dc.c | 3020 info->displayClock = (unsigned int)state->bw_ctx.bw.dcn.clk.dispclk_khz; in get_clock_requirements_for_state()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/calcs/ |
| H A D | dcn_calcs.c | 1180 context->bw_ctx.bw.dcn.clk.dispclk_khz = (int)(v->dispclk * 1000); in dcn_validate_bandwidth() 1182 context->bw_ctx.bw.dcn.clk.dispclk_khz = (int)(dc->dcn_soc->max_dispclk_vmax0p9 * 1000); in dcn_validate_bandwidth() 1184 if (context->bw_ctx.bw.dcn.clk.dispclk_khz < in dcn_validate_bandwidth() 1186 context->bw_ctx.bw.dcn.clk.dispclk_khz = in dcn_validate_bandwidth() 1190 context->bw_ctx.bw.dcn.clk.dppclk_khz = context->bw_ctx.bw.dcn.clk.dispclk_khz / in dcn_validate_bandwidth() 1433 dc, DM_PP_CLOCK_TYPE_DISPLAY_CLK, clocks->dispclk_khz); in dcn_find_dcfclk_suits_all()
|
| H A D | dce_calcs.c | 2748 if (calcs_output->dispclk_khz > int_max_clk) in is_display_configuration_supported() 3065 calcs_output->dispclk_khz = in bw_calcs() 3590 calcs_output->dispclk_khz = 0; in bw_calcs()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/ |
| H A D | core_types.h | 362 int dispclk_khz; member
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce100/ |
| H A D | dce100_resource.c | 856 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce100_validate_bandwidth() 859 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce100_validate_bandwidth()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/ |
| H A D | dcn10_hw_sequencer.c | 454 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_log_hw_state() 2512 if (context->bw_ctx.bw.dcn.clk.dispclk_khz < in dcn10_update_dchubp_dpp() 2513 dc->clk_mgr->clks.dispclk_khz) in dcn10_update_dchubp_dpp() 2518 dc->clk_mgr->clks.dispclk_khz / 2; in dcn10_update_dchubp_dpp() 2532 dc->clk_mgr->clks.dispclk_khz / 2 : in dcn10_update_dchubp_dpp() 2533 dc->clk_mgr->clks.dispclk_khz; in dcn10_update_dchubp_dpp() 3749 current_clocks->dispclk_khz = clk_khz; in dcn10_set_clock()
|
| H A D | dcn10_hw_sequencer_debug.c | 477 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_get_clock_states()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce60/ |
| H A D | dce60_resource.c | 885 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce60_validate_bandwidth() 888 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce60_validate_bandwidth()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce80/ |
| H A D | dce80_resource.c | 890 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce80_validate_bandwidth() 893 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce80_validate_bandwidth()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc.h | 341 int dispclk_khz; member
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/ |
| H A D | dcn20_resource.c | 3081 context->bw_ctx.bw.dcn.clk.dispclk_khz = context->bw_ctx.dml.vba.DISPCLK * 1000; 3092 if (context->bw_ctx.bw.dcn.clk.dispclk_khz < dc->debug.min_disp_clk_khz) 3093 context->bw_ctx.bw.dcn.clk.dispclk_khz = dc->debug.min_disp_clk_khz; 3111 context->bw_ctx.bw.dcn.clk.bw_dispclk_khz = context->bw_ctx.bw.dcn.clk.dispclk_khz;
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce112/ |
| H A D | dce112_resource.c | 953 context->bw_ctx.bw.dce.dispclk_khz, in dce112_validate_bandwidth()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce110/ |
| H A D | dce110_resource.c | 1035 context->bw_ctx.bw.dce.dispclk_khz, in dce110_validate_bandwidth()
|