Home
last modified time | relevance | path

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

12

/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
Ddcn30_clk_mgr.c214 if (clk_mgr_base->clks.dispclk_khz == 0 || in dcn3_update_clocks()
296 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn3_update_clocks()
297 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn3_update_clocks()
298 …_smu_set_hard_min_by_freq(clk_mgr, PPCLK_DISPCLK, khz_to_mhz_ceil(clk_mgr_base->clks.dispclk_khz)); in dcn3_update_clocks()
321 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in dcn3_update_clocks()
440 if (a->dispclk_khz != b->dispclk_khz) in dcn3_are_clock_states_equal()
/Linux-v6.1/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-v6.1/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()
315 if (clk_mgr_base->clks.dispclk_khz == 0 || in dcn32_update_clocks()
431 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn32_update_clocks()
432 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn32_update_clocks()
435 …_smu_set_hard_min_by_freq(clk_mgr, PPCLK_DISPCLK, khz_to_mhz_ceil(clk_mgr_base->clks.dispclk_khz)); in dcn32_update_clocks()
476 clk_mgr_base->clks.dispclk_khz / 1000 / 7); in dcn32_update_clocks()
703 if (a->dispclk_khz != b->dispclk_khz) in dcn32_are_clock_states_equal()
/Linux-v6.1/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-v6.1/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-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/
Ddcn316_clk_mgr.c213 if (new_clocks->dispclk_khz < 100000) in dcn316_update_clocks()
214 new_clocks->dispclk_khz = 100000; in dcn316_update_clocks()
224 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn316_update_clocks()
227 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn316_update_clocks()
228 dcn316_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in dcn316_update_clocks()
254 cmd.notify_clocks.clocks.dispclk_khz = clk_mgr_base->clks.dispclk_khz; in dcn316_update_clocks()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/
Ddcn315_clk_mgr.c176 if (new_clocks->dispclk_khz < MIN_DPP_DISP_CLK) in dcn315_update_clocks()
177 new_clocks->dispclk_khz = MIN_DPP_DISP_CLK; in dcn315_update_clocks()
187 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn315_update_clocks()
189 if (clk_mgr_base->clks.dispclk_khz) in dcn315_update_clocks()
192 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn315_update_clocks()
193 dcn315_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in dcn315_update_clocks()
194 if (clk_mgr_base->clks.dispclk_khz) in dcn315_update_clocks()
220 cmd.notify_clocks.clocks.dispclk_khz = clk_mgr_base->clks.dispclk_khz; in dcn315_update_clocks()
/Linux-v6.1/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-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/
Ddcn31_clk_mgr.c219 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in dcn31_update_clocks()
222 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in dcn31_update_clocks()
223 dcn31_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in dcn31_update_clocks()
249 cmd.notify_clocks.clocks.dispclk_khz = clk_mgr_base->clks.dispclk_khz; in dcn31_update_clocks()
310 if (a->dispclk_khz != b->dispclk_khz) in dcn31_are_clock_states_equal()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/
Ddce112_clk_mgr.c201 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce112_update_clocks()
215 if (should_set_clock(safe_to_lower, patched_disp_clk, clk_mgr_base->clks.dispclk_khz)) { in dce112_update_clocks()
217 clk_mgr_base->clks.dispclk_khz = patched_disp_clk; in dce112_update_clocks()
/Linux-v6.1/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_trace.h493 __field(int, dispclk_khz)
512 __entry->dispclk_khz = clk->dispclk_khz;
536 __entry->dispclk_khz,
570 __field(int, dispclk_khz)
582 __entry->dispclk_khz = clk->dispclk_khz;
596 __entry->dispclk_khz,
/Linux-v6.1/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()
329 if (a->dispclk_khz != b->dispclk_khz) in dcn314_are_clock_states_equal()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/
Dvg_clk_mgr.c166 if (should_set_clock(safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { in vg_update_clocks()
167 clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz; in vg_update_clocks()
168 dcn301_smu_set_dispclk(clk_mgr, clk_mgr_base->clks.dispclk_khz); in vg_update_clocks()
470 if (a->dispclk_khz != b->dispclk_khz) in vg_are_clock_states_equal()
/Linux-v6.1/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-v6.1/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-v6.1/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c465 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_log_hw_state()
1459 if (dc->clk_mgr->clks.dispclk_khz != 0 && dc->clk_mgr->clks.dppclk_khz != 0) { in dcn10_init_hw()
1460 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz = dc->clk_mgr->clks.dispclk_khz; in dcn10_init_hw()
2711 if (context->bw_ctx.bw.dcn.clk.dispclk_khz < in dcn10_update_dchubp_dpp()
2712 dc->clk_mgr->clks.dispclk_khz) in dcn10_update_dchubp_dpp()
2717 dc->clk_mgr->clks.dispclk_khz / 2; in dcn10_update_dchubp_dpp()
2731 dc->clk_mgr->clks.dispclk_khz / 2 : in dcn10_update_dchubp_dpp()
2732 dc->clk_mgr->clks.dispclk_khz; in dcn10_update_dchubp_dpp()
3827 current_clocks->dispclk_khz = clk_khz; in dcn10_set_clock()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h484 int dispclk_khz; member
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_resource.c850 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce100_validate_bandwidth()
853 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce100_validate_bandwidth()
/Linux-v6.1/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-v6.1/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_resource.c884 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce80_validate_bandwidth()
887 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce80_validate_bandwidth()

12