/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn301/ |
H A D | dcn301_fpu.c | 292 static void calculate_wm_set_for_vlevel(int vlevel, in calculate_wm_set_for_vlevel() argument 301 ASSERT(vlevel < dml->soc.num_states); in calculate_wm_set_for_vlevel() 303 pipes[0].clks_cfg.voltage = vlevel; in calculate_wm_set_for_vlevel() 304 pipes[0].clks_cfg.dcfclk_mhz = dml->soc.clock_limits[vlevel].dcfclk_mhz; in calculate_wm_set_for_vlevel() 419 int vlevel, vlevel_max; in dcn301_calculate_wm_and_dlg_fp() local 431 vlevel = 0; in dcn301_calculate_wm_and_dlg_fp() 433 vlevel = vlevel_max; in dcn301_calculate_wm_and_dlg_fp() 438 vlevel = min(max(vlevel_req, 2), vlevel_max); in dcn301_calculate_wm_and_dlg_fp() 443 vlevel = min(max(vlevel_req, 1), vlevel_max); in dcn301_calculate_wm_and_dlg_fp() 449 vlevel = min(vlevel_req, vlevel_max); in dcn301_calculate_wm_and_dlg_fp() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | dcn32_fpu.c | 266 int vlevel) in dcn32_find_dummy_latency_index_for_fw_based_mclk_switch() argument 1093 int vlevel) in subvp_validate_static_schedulability() argument 1150 int *vlevel, in dcn32_full_validate_bw_helper() argument 1243 *vlevel = i; in dcn32_full_validate_bw_helper() 1257 *vlevel = i; in dcn32_full_validate_bw_helper() 1703 vlevel = dcn20_validate_apply_pipe_split_flags(dc, context, vlevel, split, merge); in dcn32_internal_validate_bw() 1911 int flag_vlevel = vlevel; in dcn32_internal_validate_bw() 1935 vlevel = i; in dcn32_internal_validate_bw() 1945 *vlevel_out = vlevel; in dcn32_internal_validate_bw() 1962 int vlevel) in dcn32_calculate_wm_and_dlg_fpu() argument [all …]
|
H A D | dcn32_fpu.h | 60 int vlevel); 68 int vlevel);
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | dcn20_fpu.h | 43 int vlevel); 53 int vlevel, 71 int vlevel,
|
H A D | dcn20_fpu.c | 1138 int vlevel) in dcn20_calculate_dlg_params() argument 1726 int vlevel, in dcn20_calculate_wm() argument 1787 if (vlevel < 1) { in dcn20_calculate_wm() 1801 if (vlevel < 2) { in dcn20_calculate_wm() 1814 if (vlevel < 3) { in dcn20_calculate_wm() 2027 int vlevel = 0; in dcn20_validate_bandwidth_internal() local 2136 int vlevel, in dcn20_fpu_adjust_dppclk() argument 2238 int vlevel, vlevel_max; in dcn21_calculate_wm() local 2291 vlevel = 0; in dcn21_calculate_wm() 2293 vlevel = vlevel_max; in dcn21_calculate_wm() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | dcn30_fpu.h | 50 int vlevel); 70 int vlevel);
|
H A D | dcn30_fpu.c | 383 int vlevel) in dcn30_fpu_calculate_wm_and_dlg() argument 387 double dcfclk = context->bw_ctx.dml.vba.DCFCLKState[vlevel][maxMpcComb]; in dcn30_fpu_calculate_wm_and_dlg() 406 context, pipes, pipe_cnt, vlevel); in dcn30_fpu_calculate_wm_and_dlg() 414 dcn30_internal_validate_bw(dc, context, pipes, &pipe_cnt, &vlevel, false, true); in dcn30_fpu_calculate_wm_and_dlg() 424 pipes[0].clks_cfg.voltage = vlevel; in dcn30_fpu_calculate_wm_and_dlg() 433 if (vlevel == 0) { in dcn30_fpu_calculate_wm_and_dlg() 450 pipes[0].clks_cfg.voltage = vlevel; in dcn30_fpu_calculate_wm_and_dlg() 486 if (context->bw_ctx.dml.vba.DRAMClockChangeSupport[vlevel][maxMpcComb] == in dcn30_fpu_calculate_wm_and_dlg() 582 dcn20_calculate_dlg_params(dc, context, pipes, pipe_cnt, vlevel); in dcn30_fpu_calculate_wm_and_dlg() 695 int vlevel) in dcn30_find_dummy_latency_index_for_fw_based_mclk_switch() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_resource.h | 73 int vlevel); 106 display_e2e_pipe_params_st *pipes, int pipe_cnt, int vlevel);
|
H A D | dcn30_resource.c | 1639 int pipe_cnt, i, pipe_idx, vlevel; in dcn30_internal_validate_bw() local 1669 if (vlevel < context->bw_ctx.dml.soc.num_states) in dcn30_internal_validate_bw() 1670 vlevel = dcn20_validate_apply_pipe_split_flags(dc, context, vlevel, split, merge); in dcn30_internal_validate_bw() 1673 (fast_validate || vlevel == context->bw_ctx.dml.soc.num_states || in dcn30_internal_validate_bw() 1686 if (vlevel < context->bw_ctx.dml.soc.num_states) { in dcn30_internal_validate_bw() 1689 vlevel = dcn20_validate_apply_pipe_split_flags(dc, context, vlevel, split, merge); in dcn30_internal_validate_bw() 1695 if (vlevel == context->bw_ctx.dml.soc.num_states) in dcn30_internal_validate_bw() 1868 context->bw_ctx.dml.vba.VoltageLevel = vlevel; in dcn30_internal_validate_bw() 1869 *vlevel_out = vlevel; in dcn30_internal_validate_bw() 2026 int vlevel) in dcn30_calculate_wm_and_dlg() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_resource.c | 1833 int vlevel, in dcn20_validate_apply_pipe_split_flags() argument 1896 for (vlevel_split = vlevel; vlevel <= context->bw_ctx.dml.soc.num_states; vlevel++) in dcn20_validate_apply_pipe_split_flags() 1897 if (v->NoOfDPP[vlevel][0][pipe_idx] == 1 && in dcn20_validate_apply_pipe_split_flags() 1898 v->ModeSupport[vlevel][0]) in dcn20_validate_apply_pipe_split_flags() 1901 if (vlevel > context->bw_ctx.dml.soc.num_states) in dcn20_validate_apply_pipe_split_flags() 1902 vlevel = vlevel_split; in dcn20_validate_apply_pipe_split_flags() 2015 return vlevel; in dcn20_validate_apply_pipe_split_flags() 2029 int pipe_cnt, i, pipe_idx, vlevel; in dcn20_fast_validate_bw() local 2050 if (vlevel > context->bw_ctx.dml.soc.num_states) in dcn20_fast_validate_bw() 2053 vlevel = dcn20_validate_apply_pipe_split_flags(dc, context, vlevel, split, NULL); in dcn20_fast_validate_bw() [all …]
|
H A D | dcn20_resource.h | 127 int vlevel,
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
H A D | dcn31_fpu.h | 44 int vlevel);
|
H A D | dcn31_fpu.c | 486 int vlevel) in dcn31_calculate_wm_and_dlg_fp() argument 489 double dcfclk = context->bw_ctx.dml.vba.DCFCLKState[vlevel][context->bw_ctx.dml.vba.maxMpcComb]; in dcn31_calculate_wm_and_dlg_fp() 505 pipes[0].clks_cfg.voltage = vlevel; in dcn31_calculate_wm_and_dlg_fp() 507 pipes[0].clks_cfg.socclk_mhz = context->bw_ctx.dml.soc.clock_limits[vlevel].socclk_mhz; in dcn31_calculate_wm_and_dlg_fp() 551 dcn20_calculate_dlg_params(dc, context, pipes, pipe_cnt, vlevel); in dcn31_calculate_wm_and_dlg_fp() 554 …context->bw_ctx.dml.vba.DRAMClockChangeSupport[vlevel][context->bw_ctx.dml.vba.maxMpcComb] == dm_d… in dcn31_calculate_wm_and_dlg_fp()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_resource.h | 47 int vlevel);
|
H A D | dcn31_resource.c | 1724 int vlevel) in dcn31_calculate_wm_and_dlg() argument 1727 dcn31_calculate_wm_and_dlg_fp(dc, context, pipes, pipe_cnt, vlevel); in dcn31_calculate_wm_and_dlg() 1760 int vlevel = 0; in dcn31_validate_bandwidth() local 1768 out = dcn30_internal_validate_bw(dc, context, pipes, &pipe_cnt, &vlevel, fast_validate, true); in dcn31_validate_bandwidth() 1785 dc->res_pool->funcs->calculate_wm_and_dlg(dc, context, pipes, pipe_cnt, vlevel); in dcn31_validate_bandwidth()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn21/ |
H A D | dcn21_resource.c | 803 int pipe_cnt, i, pipe_idx, vlevel; in dcn21_fast_validate_bw() local 828 vlevel = dml_get_voltage_level(&context->bw_ctx.dml, pipes, pipe_cnt); in dcn21_fast_validate_bw() 830 if (vlevel > context->bw_ctx.dml.soc.num_states) { in dcn21_fast_validate_bw() 840 vlevel = dml_get_voltage_level(&context->bw_ctx.dml, pipes, pipe_cnt); in dcn21_fast_validate_bw() 841 if (vlevel > context->bw_ctx.dml.soc.num_states) in dcn21_fast_validate_bw() 845 vlevel = dcn20_validate_apply_pipe_split_flags(dc, context, vlevel, split, NULL); in dcn21_fast_validate_bw() 904 …dcn20_fpu_adjust_dppclk(&context->bw_ctx.dml.vba, vlevel, context->bw_ctx.dml.vba.maxMpcComb, pipe… in dcn21_fast_validate_bw() 935 *vlevel_out = vlevel; in dcn21_fast_validate_bw()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_resource_helpers.c | 693 bool dcn32_subvp_vblank_admissable(struct dc *dc, struct dc_state *context, int vlevel) in dcn32_subvp_vblank_admissable() argument 730 vba->DRAMClockChangeSupport[vlevel][vba->maxMpcComb] == dm_dram_clock_change_vblank_w_mall_sub_vp) in dcn32_subvp_vblank_admissable()
|
H A D | dcn32_resource.c | 1816 int vlevel = 0; in dcn32_validate_bandwidth() local 1846 out = dcn32_internal_validate_bw(dc, context, pipes, &pipe_cnt, &vlevel, fast_validate); in dcn32_validate_bandwidth() 1865 dc->res_pool->funcs->calculate_wm_and_dlg(dc, context, pipes, pipe_cnt, vlevel); in dcn32_validate_bandwidth() 2019 int vlevel) in dcn32_calculate_wm_and_dlg() argument 2022 dcn32_calculate_wm_and_dlg_fpu(dc, context, pipes, pipe_cnt, vlevel); in dcn32_calculate_wm_and_dlg()
|
H A D | dcn32_resource.h | 109 int vlevel); 174 bool dcn32_subvp_vblank_admissable(struct dc *dc, struct dc_state *context, int vlevel);
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | arch_timer.c | 866 bool vlevel, plevel; in kvm_timer_should_notify_user() local 871 vlevel = sregs->device_irq_level & KVM_ARM_DEV_EL1_VTIMER; in kvm_timer_should_notify_user() 874 return kvm_timer_should_fire(vtimer) != vlevel || in kvm_timer_should_notify_user()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | core_types.h | 88 int vlevel);
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn314/ |
H A D | dcn314_resource.c | 1737 int vlevel = 0; in dcn314_validate_bandwidth() local 1749 out = dcn30_internal_validate_bw(dc, context, pipes, &pipe_cnt, &vlevel, fast_validate, false); in dcn314_validate_bandwidth() 1766 dc->res_pool->funcs->calculate_wm_and_dlg(dc, context, pipes, pipe_cnt, vlevel); in dcn314_validate_bandwidth()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn301/ |
H A D | dcn301_resource.c | 1367 int vlevel) in dcn301_calculate_wm_and_dlg() argument 1370 dcn301_calculate_wm_and_dlg_fp(dc, context, pipes, pipe_cnt, vlevel); in dcn301_calculate_wm_and_dlg()
|