/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_resource.c | 2110 wb_arb_params = &context->bw_ctx.bw.dcn.bw_writeback.mcif_wb_arb[dwb_pipe]; in dcn20_set_mcif_arb_params() 2121 …wb_arb_params->cli_watermark[k] = get_wm_writeback_urgent(&context->bw_ctx.dml, pipes, pipe_cnt) *… in dcn20_set_mcif_arb_params() 2122 …wb_arb_params->pstate_watermark[k] = get_wm_writeback_dram_clock_change(&context->bw_ctx.dml, pipe… in dcn20_set_mcif_arb_params() 2264 bool odm_capable = context->bw_ctx.dml.ip.odm_capable; in dcn20_fast_validate_bw() 2345 context->bw_ctx.dml.ip.odm_capable = 0; in dcn20_fast_validate_bw() 2347 vlevel = dml_get_voltage_level(&context->bw_ctx.dml, pipes, pipe_cnt); in dcn20_fast_validate_bw() 2349 context->bw_ctx.dml.ip.odm_capable = odm_capable; in dcn20_fast_validate_bw() 2353 if (vlevel <= context->bw_ctx.dml.soc.num_states) in dcn20_fast_validate_bw() 2356 vlevel = context->bw_ctx.dml.soc.num_states + 1; in dcn20_fast_validate_bw() 2360 if (vlevel > context->bw_ctx.dml.soc.num_states && odm_capable) in dcn20_fast_validate_bw() [all …]
|
D | dcn20_hwseq.c | 1286 &context->bw_ctx.bw.dcn.watermarks, in dcn20_prepare_bandwidth() 1299 &context->bw_ctx.bw.dcn.watermarks, in dcn20_optimize_bandwidth() 1377 …mcif_wb->funcs->config_mcif_arb(mcif_wb, &context->bw_ctx.bw.dcn.bw_writeback.mcif_wb_arb[wb_info-… in dcn20_enable_writeback()
|
/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 829 &context->bw_ctx.bw.dce)) in dce112_validate_bandwidth() 837 if (memcmp(&dc->current_state->bw_ctx.bw.dce, in dce112_validate_bandwidth() 838 &context->bw_ctx.bw.dce, sizeof(context->bw_ctx.bw.dce))) { in dce112_validate_bandwidth() 852 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[0].b_mark, in dce112_validate_bandwidth() 853 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[0].a_mark, in dce112_validate_bandwidth() 854 context->bw_ctx.bw.dce.urgent_wm_ns[0].b_mark, in dce112_validate_bandwidth() 855 context->bw_ctx.bw.dce.urgent_wm_ns[0].a_mark, in dce112_validate_bandwidth() 856 context->bw_ctx.bw.dce.stutter_exit_wm_ns[0].b_mark, in dce112_validate_bandwidth() 857 context->bw_ctx.bw.dce.stutter_exit_wm_ns[0].a_mark, in dce112_validate_bandwidth() 858 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[1].b_mark, in dce112_validate_bandwidth() [all …]
|
/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_resource.c | 907 &context->bw_ctx.bw.dce)) in dce110_validate_bandwidth() 917 if (memcmp(&dc->current_state->bw_ctx.bw.dce, in dce110_validate_bandwidth() 918 &context->bw_ctx.bw.dce, sizeof(context->bw_ctx.bw.dce))) { in dce110_validate_bandwidth() 932 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[0].b_mark, in dce110_validate_bandwidth() 933 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[0].a_mark, in dce110_validate_bandwidth() 934 context->bw_ctx.bw.dce.urgent_wm_ns[0].b_mark, in dce110_validate_bandwidth() 935 context->bw_ctx.bw.dce.urgent_wm_ns[0].a_mark, in dce110_validate_bandwidth() 936 context->bw_ctx.bw.dce.stutter_exit_wm_ns[0].b_mark, in dce110_validate_bandwidth() 937 context->bw_ctx.bw.dce.stutter_exit_wm_ns[0].a_mark, in dce110_validate_bandwidth() 938 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[1].b_mark, in dce110_validate_bandwidth() [all …]
|
D | dce110_hw_sequencer.c | 1664 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[num_pipes], in dce110_set_displaymarks() 1665 context->bw_ctx.bw.dce.stutter_exit_wm_ns[num_pipes], in dce110_set_displaymarks() 1666 context->bw_ctx.bw.dce.stutter_entry_wm_ns[num_pipes], in dce110_set_displaymarks() 1667 context->bw_ctx.bw.dce.urgent_wm_ns[num_pipes], in dce110_set_displaymarks() 1673 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[num_pipes], in dce110_set_displaymarks() 1674 context->bw_ctx.bw.dce.stutter_exit_wm_ns[num_pipes], in dce110_set_displaymarks() 1675 context->bw_ctx.bw.dce.urgent_wm_ns[num_pipes], in dce110_set_displaymarks()
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_debug.c | 354 context->bw_ctx.bw.dcn.clk.dispclk_khz, in context_clock_trace() 355 context->bw_ctx.bw.dcn.clk.dppclk_khz, in context_clock_trace() 356 context->bw_ctx.bw.dcn.clk.dcfclk_khz, in context_clock_trace() 357 context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in context_clock_trace() 358 context->bw_ctx.bw.dcn.clk.fclk_khz, in context_clock_trace() 359 context->bw_ctx.bw.dcn.clk.socclk_khz); in context_clock_trace() 362 context->bw_ctx.bw.dcn.clk.dispclk_khz, in context_clock_trace() 363 context->bw_ctx.bw.dcn.clk.dppclk_khz, in context_clock_trace() 364 context->bw_ctx.bw.dcn.clk.dcfclk_khz, in context_clock_trace() 365 context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in context_clock_trace() [all …]
|
D | dc.c | 1218 memcpy(&context->bw_ctx.dml, &dc->dml, sizeof(struct display_mode_lib)); in dc_create_state() 1633 …if (type == UPDATE_TYPE_FAST && memcmp(&dc->current_state->bw_ctx.bw.dcn.clk, &dc->clk_mgr->clks, … in dc_check_update_surfaces_for_stream() 2301 memcpy(dml, &dc->current_state->bw_ctx.dml, sizeof(struct display_mode_lib)); in dc_set_power_state() 2308 dc->current_state->bw_ctx.dml = *dml; in dc_set_power_state() 2480 info->displayClock = (unsigned int)state->bw_ctx.bw.dcn.clk.dispclk_khz; in get_clock_requirements_for_state() 2481 info->engineClock = (unsigned int)state->bw_ctx.bw.dcn.clk.dcfclk_khz; in get_clock_requirements_for_state() 2482 info->memoryClock = (unsigned int)state->bw_ctx.bw.dcn.clk.dramclk_khz; in get_clock_requirements_for_state() 2483 info->maxSupportedDppClock = (unsigned int)state->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz; in get_clock_requirements_for_state() 2484 info->dppClock = (unsigned int)state->bw_ctx.bw.dcn.clk.dppclk_khz; in get_clock_requirements_for_state() 2485 info->socClock = (unsigned int)state->bw_ctx.bw.dcn.clk.socclk_khz; in get_clock_requirements_for_state() [all …]
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
D | dce110_clk_mgr.c | 183 context->bw_ctx.bw.dce.all_displays_in_sync; in dce11_pplib_apply_display_requirements() 185 context->bw_ctx.bw.dce.nbp_state_change_enable == false; in dce11_pplib_apply_display_requirements() 187 context->bw_ctx.bw.dce.cpuc_state_change_enable == false; in dce11_pplib_apply_display_requirements() 189 context->bw_ctx.bw.dce.cpup_state_change_enable == false; in dce11_pplib_apply_display_requirements() 191 context->bw_ctx.bw.dce.blackout_recovery_time_us; in dce11_pplib_apply_display_requirements() 204 pp_display_cfg->min_memory_clock_khz = context->bw_ctx.bw.dce.yclk_khz in dce11_pplib_apply_display_requirements() 210 context->bw_ctx.bw.dce.sclk_khz); in dce11_pplib_apply_display_requirements() 223 = context->bw_ctx.bw.dce.sclk_deep_sleep_khz; in dce11_pplib_apply_display_requirements() 254 int patched_disp_clk = context->bw_ctx.bw.dce.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()
|
/drivers/gpu/drm/amd/display/dc/calcs/ |
D | dcn_calcs.c | 553 context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_exit_ns = 555 context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = 557 context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.pstate_change_ns = 559 context->bw_ctx.bw.dcn.watermarks.b.pte_meta_urgent_ns = v->ptemeta_urgent_watermark * 1000; 560 context->bw_ctx.bw.dcn.watermarks.b.urgent_ns = v->urgent_watermark * 1000; 567 context->bw_ctx.bw.dcn.watermarks.c.cstate_pstate.cstate_exit_ns = 569 context->bw_ctx.bw.dcn.watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns = 571 context->bw_ctx.bw.dcn.watermarks.c.cstate_pstate.pstate_change_ns = 573 context->bw_ctx.bw.dcn.watermarks.c.pte_meta_urgent_ns = v->ptemeta_urgent_watermark * 1000; 574 context->bw_ctx.bw.dcn.watermarks.c.urgent_ns = v->urgent_watermark * 1000; [all …]
|
/drivers/gpu/drm/amd/display/dc/dce/ |
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() 615 context->bw_ctx.bw.dce.all_displays_in_sync; in dce11_pplib_apply_display_requirements() 617 context->bw_ctx.bw.dce.nbp_state_change_enable == false; in dce11_pplib_apply_display_requirements() 619 context->bw_ctx.bw.dce.cpuc_state_change_enable == false; in dce11_pplib_apply_display_requirements() 621 context->bw_ctx.bw.dce.cpup_state_change_enable == false; in dce11_pplib_apply_display_requirements() 623 context->bw_ctx.bw.dce.blackout_recovery_time_us; in dce11_pplib_apply_display_requirements() 625 pp_display_cfg->min_memory_clock_khz = context->bw_ctx.bw.dce.yclk_khz in dce11_pplib_apply_display_requirements() 630 context->bw_ctx.bw.dce.sclk_khz); in dce11_pplib_apply_display_requirements() 643 = context->bw_ctx.bw.dce.sclk_deep_sleep_khz; in dce11_pplib_apply_display_requirements() [all …]
|
/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_resource.c | 996 …ipes[pipe_cnt].clks_cfg.dispclk_mhz = context->bw_ctx.dml.vba.RequiredDISPCLK[vlevel_req][context-… in dcn21_calculate_wm() 1000 … context->bw_ctx.dml.vba.RequiredDPPCLK[vlevel_req][context->bw_ctx.dml.vba.maxMpcComb][pipe_idx]; in dcn21_calculate_wm() 1001 if (context->bw_ctx.dml.vba.BlendingAndTiming[pipe_idx] == pipe_idx) in dcn21_calculate_wm() 1003 context->bw_ctx.dml.vba.ODMCombineEnablePerState[vlevel_req][pipe_idx]; in dcn21_calculate_wm() 1009 …context->bw_ctx.dml.vba.RequiredDPPCLK[vlevel_req][context->bw_ctx.dml.vba.maxMpcComb][pipe_split_… in dcn21_calculate_wm() 1010 if (context->bw_ctx.dml.vba.BlendingAndTiming[pipe_split_from[i]] == pipe_split_from[i]) in dcn21_calculate_wm() 1012 context->bw_ctx.dml.vba.ODMCombineEnablePerState[vlevel_req][pipe_split_from[i]]; in dcn21_calculate_wm() 1039 calculate_wm_set_for_vlevel(vlevel, table_entry, &context->bw_ctx.bw.dcn.watermarks.d, in dcn21_calculate_wm() 1040 &context->bw_ctx.dml, pipes, pipe_cnt); in dcn21_calculate_wm() 1044 calculate_wm_set_for_vlevel(vlevel, table_entry, &context->bw_ctx.bw.dcn.watermarks.c, in dcn21_calculate_wm() [all …]
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
D | dcn20_clk_mgr.c | 191 struct dc_clocks *new_clocks = &context->bw_ctx.bw.dcn.clk; in dcn2_update_clocks() 325 struct dc_clocks *new_clocks = &context->bw_ctx.bw.dcn.clk; in dcn2_update_clocks_fpga() 405 clock_cfg->max_clock_khz = context->bw_ctx.bw.dcn.clk.max_supported_dispclk_khz; in dcn2_get_clock() 408 clock_cfg->bw_requirequired_clock_khz = context->bw_ctx.bw.dcn.clk.bw_dispclk_khz; in dcn2_get_clock() 411 clock_cfg->max_clock_khz = context->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz; in dcn2_get_clock() 414 clock_cfg->bw_requirequired_clock_khz = context->bw_ctx.bw.dcn.clk.bw_dppclk_khz; in dcn2_get_clock()
|
/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_hw_sequencer_debug.c | 475 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_khz, in dcn10_get_clock_states() 476 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in dcn10_get_clock_states() 477 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_get_clock_states() 478 dc->current_state->bw_ctx.bw.dcn.clk.dppclk_khz, in dcn10_get_clock_states() 479 dc->current_state->bw_ctx.bw.dcn.clk.fclk_khz, in dcn10_get_clock_states() 480 dc->current_state->bw_ctx.bw.dcn.clk.socclk_khz); in dcn10_get_clock_states()
|
D | dcn10_hw_sequencer.c | 411 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_khz, in dcn10_log_hw_state() 412 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in dcn10_log_hw_state() 413 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_log_hw_state() 414 dc->current_state->bw_ctx.bw.dcn.clk.dppclk_khz, in dcn10_log_hw_state() 415 dc->current_state->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz, in dcn10_log_hw_state() 416 dc->current_state->bw_ctx.bw.dcn.clk.fclk_khz, in dcn10_log_hw_state() 417 dc->current_state->bw_ctx.bw.dcn.clk.socclk_khz); in dcn10_log_hw_state() 2295 bool should_divided_by_2 = context->bw_ctx.bw.dcn.clk.dppclk_khz <= in update_dchubp_dpp() 2696 context->bw_ctx.bw.dcn.clk.phyclk_khz = 0; in dcn10_prepare_bandwidth() 2705 &context->bw_ctx.bw.dcn.watermarks, in dcn10_prepare_bandwidth() [all …]
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
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()
|
/drivers/gpu/drm/amd/display/dc/dce100/ |
D | dce100_resource.c | 780 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce100_validate_bandwidth() 781 context->bw_ctx.bw.dce.yclk_khz = 250000 * MEMORY_TYPE_MULTIPLIER_CZ; in dce100_validate_bandwidth() 783 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce100_validate_bandwidth() 784 context->bw_ctx.bw.dce.yclk_khz = 0; in dce100_validate_bandwidth()
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/ |
D | dce120_clk_mgr.c | 91 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce12_update_clocks()
|
/drivers/gpu/drm/amd/display/dc/dce80/ |
D | dce80_resource.c | 814 context->bw_ctx.bw.dce.dispclk_khz = 681000; in dce80_validate_bandwidth() 815 context->bw_ctx.bw.dce.yclk_khz = 250000 * MEMORY_TYPE_MULTIPLIER_CZ; in dce80_validate_bandwidth() 817 context->bw_ctx.bw.dce.dispclk_khz = 0; in dce80_validate_bandwidth() 818 context->bw_ctx.bw.dce.yclk_khz = 0; in dce80_validate_bandwidth()
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/ |
D | dce112_clk_mgr.c | 199 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce112_update_clocks()
|
/drivers/gpu/drm/amd/display/dc/inc/ |
D | core_types.h | 388 struct bw_context bw_ctx; member
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
D | rv1_clk_mgr.c | 132 struct dc_clocks *new_clocks = &context->bw_ctx.bw.dcn.clk; in rv1_update_clocks()
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
D | rn_clk_mgr.c | 60 struct dc_clocks *new_clocks = &context->bw_ctx.bw.dcn.clk; in rn_update_clocks()
|