Home
last modified time | relevance | path

Searched refs:dispclk_khz (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/
Drv1_clk_mgr.c44 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 …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
Ddcn20_clk_mgr.c136 if (clk_mgr->base.clks.dppclk_khz == 0 || clk_mgr->base.clks.dispclk_khz == 0) in dcn20_update_clocks_update_dentist()
142 * clk_mgr->base.dentist_vco_freq_khz / clk_mgr->base.clks.dispclk_khz; in dcn20_update_clocks_update_dentist()
237 if (clk_mgr_base->clks.dispclk_khz == 0 || in dcn2_update_clocks()
304 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn2_update_clocks()
305 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn2_update_clocks()
314 …ks->disp_dpp_voltage_level_khz = new_clocks->dispclk_khz > new_clocks->dppclk_khz ? new_clocks->di… in dcn2_update_clocks()
339 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in dcn2_update_clocks()
382 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr->clks.dispclk_khz)) { in dcn2_update_clocks_fpga()
383 clk_mgr->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn2_update_clocks_fpga()
441 clk_mgr_base->clks.dispclk_khz = (DENTIST_DIVIDER_RANGE_SCALE_FACTOR in dcn2_read_clocks_from_hw_dentist()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce/
Ddce_clk_mgr.c227 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()
654 pp_display_cfg->disp_clk_khz = dc->res_pool->clk_mgr->clks.dispclk_khz; in dce11_pplib_apply_display_requirements()
678 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce_update_clocks()
692 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr->clks.dispclk_khz)) { in dce_update_clocks()
694 clk_mgr->clks.dispclk_khz = patched_disp_clk; in dce_update_clocks()
705 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce11_update_clocks()
719 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr->clks.dispclk_khz)) { in dce11_update_clocks()
720 context->bw_ctx.bw.dce.dispclk_khz = dce_set_clock(clk_mgr, patched_disp_clk); in dce11_update_clocks()
721 clk_mgr->clks.dispclk_khz = patched_disp_clk; in dce11_update_clocks()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn201/
Ddcn201_clk_mgr.c103 if (clk_mgr_base->clks.dispclk_khz == 0 || in dcn201_update_clocks()
147 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn201_update_clocks()
148 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn201_update_clocks()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/
Ddce120_clk_mgr.c91 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()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
Ddcn30_clk_mgr.c213 if (clk_mgr_base->clks.dispclk_khz == 0 || in dcn3_update_clocks()
294 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn3_update_clocks()
295 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn3_update_clocks()
296 …_smu_set_hard_min_by_freq(clk_mgr, PPCLK_DISPCLK, khz_to_mhz_ceil(clk_mgr_base->clks.dispclk_khz)); in dcn3_update_clocks()
319 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in dcn3_update_clocks()
438 if (a->dispclk_khz != b->dispclk_khz) in dcn3_are_clock_states_equal()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce60/
Ddce60_clk_mgr.c126 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()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
Drn_clk_mgr.c194 if (new_clocks->dppclk_khz == 0 || new_clocks->dispclk_khz == 0) { in rn_update_clocks()
196 new_clocks->dispclk_khz = clk_mgr_base->clks.dispclk_khz; in rn_update_clocks()
206 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in rn_update_clocks()
207 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in rn_update_clocks()
208 …_base->clks.actual_dispclk_khz = rn_vbios_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in rn_update_clocks()
249 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in rn_update_clocks()
530 if (a->dispclk_khz != b->dispclk_khz) in rn_are_clock_states_equal()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/
Ddcn32_clk_mgr.c286 if (new_clocks->dispclk_khz > 0) { in dcn32_update_dppclk_dispclk_freq()
288 * clk_mgr->base.dentist_vco_freq_khz / new_clocks->dispclk_khz; in dcn32_update_dppclk_dispclk_freq()
289 …new_clocks->dispclk_khz = (DENTIST_DIVIDER_RANGE_SCALE_FACTOR * clk_mgr->base.dentist_vco_freq_khz… in dcn32_update_dppclk_dispclk_freq()
338 if (clk_mgr->base.clks.dispclk_khz == 0) in dcn32_update_clocks_update_dentist()
342 * clk_mgr->base.dentist_vco_freq_khz / clk_mgr->base.clks.dispclk_khz; in dcn32_update_clocks_update_dentist()
422 …_smu_set_hard_min_by_freq(clk_mgr, PPCLK_DISPCLK, khz_to_mhz_ceil(clk_mgr->base.clks.dispclk_khz)); in dcn32_update_clocks_update_dentist()
472 if (clk_mgr_base->clks.dispclk_khz == 0 || in dcn32_update_clocks()
607 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn32_update_clocks()
608 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn32_update_clocks()
648 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in dcn32_update_clocks()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/
Ddce110_clk_mgr.c231 pp_display_cfg->disp_clk_khz = dc->clk_mgr->clks.dispclk_khz; in dce11_pplib_apply_display_requirements()
255 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce11_update_clocks()
269 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce11_update_clocks()
270 context->bw_ctx.bw.dce.dispclk_khz = dce_set_clock(clk_mgr_base, patched_disp_clk); in dce11_update_clocks()
271 clk_mgr_base->clks.dispclk_khz = patched_disp_clk; in dce11_update_clocks()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/
Ddcn315_clk_mgr.c189 if (new_clocks->dispclk_khz < MIN_DPP_DISP_CLK) in dcn315_update_clocks()
190 new_clocks->dispclk_khz = MIN_DPP_DISP_CLK; in dcn315_update_clocks()
199 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn315_update_clocks()
201 if (clk_mgr_base->clks.dispclk_khz) in dcn315_update_clocks()
204 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn315_update_clocks()
205 dcn315_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in dcn315_update_clocks()
206 if (clk_mgr_base->clks.dispclk_khz) in dcn315_update_clocks()
232 cmd.notify_clocks.clocks.dispclk_khz = clk_mgr_base->clks.dispclk_khz; in dcn315_update_clocks()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/
Ddcn316_clk_mgr.c199 if (new_clocks->dispclk_khz < 100000) in dcn316_update_clocks()
200 new_clocks->dispclk_khz = 100000; in dcn316_update_clocks()
209 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn316_update_clocks()
212 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn316_update_clocks()
213 dcn316_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in dcn316_update_clocks()
239 cmd.notify_clocks.clocks.dispclk_khz = clk_mgr_base->clks.dispclk_khz; in dcn316_update_clocks()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/
Ddce_clk_mgr.c208 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()
403 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce_update_clocks()
417 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce_update_clocks()
419 clk_mgr_base->clks.dispclk_khz = patched_disp_clk; in dce_update_clocks()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/
Ddcn31_clk_mgr.c223 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn31_update_clocks()
226 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn31_update_clocks()
227 dcn31_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in dcn31_update_clocks()
253 cmd.notify_clocks.clocks.dispclk_khz = clk_mgr_base->clks.dispclk_khz; in dcn31_update_clocks()
312 if (a->dispclk_khz != b->dispclk_khz) in dcn31_are_clock_states_equal()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/
Ddce112_clk_mgr.c197 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce112_update_clocks()
211 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce112_update_clocks()
213 clk_mgr_base->clks.dispclk_khz = patched_disp_clk; in dce112_update_clocks()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/
Ddcn314_clk_mgr.c251 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn314_update_clocks()
254 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn314_update_clocks()
255 dcn314_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in dcn314_update_clocks()
281 cmd.notify_clocks.clocks.dispclk_khz = clk_mgr_base->clks.dispclk_khz; in dcn314_update_clocks()
327 if (a->dispclk_khz != b->dispclk_khz) in dcn314_are_clock_states_equal()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/
Dvg_clk_mgr.c164 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in vg_update_clocks()
165 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in vg_update_clocks()
166 dcn301_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in vg_update_clocks()
468 if (a->dispclk_khz != b->dispclk_khz) in vg_are_clock_states_equal()
/linux-6.6.21/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_trace.h494 __field(int, dispclk_khz)
513 __entry->dispclk_khz = clk->dispclk_khz;
537 __entry->dispclk_khz,
571 __field(int, dispclk_khz)
583 __entry->dispclk_khz = clk->dispclk_khz;
597 __entry->dispclk_khz,
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/core/
Ddc_debug.c351 context->bw_ctx.bw.dcn.clk.dispclk_khz, in context_clock_trace()
359 context->bw_ctx.bw.dcn.clk.dispclk_khz, in context_clock_trace()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/calcs/
Ddcn_calcs.c1165 context->bw_ctx.bw.dcn.clk.dispclk_khz = (int)(v->dispclk * 1000); in dcn_validate_bandwidth()
1167 context->bw_ctx.bw.dcn.clk.dispclk_khz = (int)(dc->dcn_soc->max_dispclk_vmax0p9 * 1000); in dcn_validate_bandwidth()
1169 if (context->bw_ctx.bw.dcn.clk.dispclk_khz < in dcn_validate_bandwidth()
1171 context->bw_ctx.bw.dcn.clk.dispclk_khz = in dcn_validate_bandwidth()
1175 context->bw_ctx.bw.dcn.clk.dppclk_khz = context->bw_ctx.bw.dcn.clk.dispclk_khz / in dcn_validate_bandwidth()
1414 dc, DM_PP_CLOCK_TYPE_DISPLAY_CLK, clocks->dispclk_khz); in dcn_find_dcfclk_suits_all()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c466 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_log_hw_state()
1493 if (dc->clk_mgr->clks.dispclk_khz != 0 && dc->clk_mgr->clks.dppclk_khz != 0) { in dcn10_init_hw()
1494 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz = dc->clk_mgr->clks.dispclk_khz; in dcn10_init_hw()
2732 if (context->bw_ctx.bw.dcn.clk.dispclk_khz < in dcn10_update_dchubp_dpp()
2733 dc->clk_mgr->clks.dispclk_khz) in dcn10_update_dchubp_dpp()
2738 dc->clk_mgr->clks.dispclk_khz / 2; in dcn10_update_dchubp_dpp()
2752 dc->clk_mgr->clks.dispclk_khz / 2 : in dcn10_update_dchubp_dpp()
2753 dc->clk_mgr->clks.dispclk_khz; in dcn10_update_dchubp_dpp()
3852 current_clocks->dispclk_khz = clk_khz; in dcn10_set_clock()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h452 int dispclk_khz; member
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_resource.c854 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce100_validate_bandwidth()
857 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce100_validate_bandwidth()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_resource.c881 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce60_validate_bandwidth()
884 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce60_validate_bandwidth()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_resource.c888 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce80_validate_bandwidth()
891 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce80_validate_bandwidth()

12