#include "resource.h"
#include "clk_mgr.h"
#include "dchubbub.h"
#include "dcn20/dcn20_resource.h"
#include "dcn21/dcn21_resource.h"
#include "clk_mgr/dcn21/rn_clk_mgr.h"
#include "link.h"
#include "dcn20_fpu.h"
#include "dc_state_priv.h"
#define DC_LOGGER …
#define DC_LOGGER_INIT(logger) …
#ifndef MAX
#define MAX …
#endif
#ifndef MIN
#define MIN …
#endif
#define LPDDR_MEM_RETRAIN_LATENCY …
struct _vcs_dpi_ip_params_st dcn2_0_ip = …;
struct _vcs_dpi_ip_params_st dcn2_0_nv14_ip = …;
struct _vcs_dpi_soc_bounding_box_st dcn2_0_soc = …;
struct _vcs_dpi_soc_bounding_box_st dcn2_0_nv14_soc = …;
struct _vcs_dpi_soc_bounding_box_st dcn2_0_nv12_soc = …;
struct _vcs_dpi_ip_params_st dcn2_1_ip = …;
struct _vcs_dpi_soc_bounding_box_st dcn2_1_soc = …;
struct wm_table ddr4_wm_table_gs = …;
struct wm_table lpddr4_wm_table_gs = …;
struct wm_table lpddr4_wm_table_with_disabled_ppt = …;
struct wm_table ddr4_wm_table_rn = …;
struct wm_table ddr4_1R_wm_table_rn = …;
struct wm_table lpddr4_wm_table_rn = …;
void dcn20_populate_dml_writeback_from_context(struct dc *dc,
struct resource_context *res_ctx,
display_e2e_pipe_params_st *pipes)
{ … }
void dcn20_fpu_set_wb_arb_params(struct mcif_arb_params *wb_arb_params,
struct dc_state *context,
display_e2e_pipe_params_st *pipes,
int pipe_cnt, int i)
{ … }
static bool is_dtbclk_required(struct dc *dc, struct dc_state *context)
{ … }
static enum dcn_zstate_support_state decide_zstate_support(struct dc *dc, struct dc_state *context)
{ … }
static void dcn20_adjust_freesync_v_startup(
const struct dc_crtc_timing *dc_crtc_timing, int *vstartup_start)
{ … }
void dcn20_calculate_dlg_params(struct dc *dc,
struct dc_state *context,
display_e2e_pipe_params_st *pipes,
int pipe_cnt,
int vlevel)
{ … }
static void swizzle_to_dml_params(
enum swizzle_mode_values swizzle,
unsigned int *sw_mode)
{ … }
int dcn20_populate_dml_pipes_from_context(struct dc *dc,
struct dc_state *context,
display_e2e_pipe_params_st *pipes,
bool fast_validate)
{ … }
void dcn20_calculate_wm(struct dc *dc, struct dc_state *context,
display_e2e_pipe_params_st *pipes,
int *out_pipe_cnt,
int *pipe_split_from,
int vlevel,
bool fast_validate)
{ … }
void dcn20_update_bounding_box(struct dc *dc,
struct _vcs_dpi_soc_bounding_box_st *bb,
struct pp_smu_nv_clock_table *max_clocks,
unsigned int *uclk_states,
unsigned int num_states)
{ … }
void dcn20_cap_soc_clocks(struct _vcs_dpi_soc_bounding_box_st *bb,
struct pp_smu_nv_clock_table max_clocks)
{ … }
void dcn20_patch_bounding_box(struct dc *dc, struct _vcs_dpi_soc_bounding_box_st *bb)
{ … }
static bool dcn20_validate_bandwidth_internal(struct dc *dc, struct dc_state *context,
bool fast_validate, display_e2e_pipe_params_st *pipes)
{ … }
bool dcn20_validate_bandwidth_fp(struct dc *dc, struct dc_state *context,
bool fast_validate, display_e2e_pipe_params_st *pipes)
{ … }
void dcn20_fpu_set_wm_ranges(int i,
struct pp_smu_wm_range_sets *ranges,
struct _vcs_dpi_soc_bounding_box_st *loaded_bb)
{ … }
void dcn20_fpu_adjust_dppclk(struct vba_vars_st *v,
int vlevel,
int max_mpc_comb,
int pipe_idx,
bool is_validating_bw)
{ … }
int dcn21_populate_dml_pipes_from_context(struct dc *dc,
struct dc_state *context,
display_e2e_pipe_params_st *pipes,
bool fast_validate)
{ … }
static void patch_bounding_box(struct dc *dc, struct _vcs_dpi_soc_bounding_box_st *bb)
{ … }
static void calculate_wm_set_for_vlevel(int vlevel,
struct wm_range_table_entry *table_entry,
struct dcn_watermarks *wm_set,
struct display_mode_lib *dml,
display_e2e_pipe_params_st *pipes,
int pipe_cnt)
{ … }
static void dcn21_calculate_wm(struct dc *dc, struct dc_state *context,
display_e2e_pipe_params_st *pipes,
int *out_pipe_cnt,
int *pipe_split_from,
int vlevel_req,
bool fast_validate)
{ … }
bool dcn21_validate_bandwidth_fp(struct dc *dc, struct dc_state *context,
bool fast_validate, display_e2e_pipe_params_st *pipes)
{ … }
static struct _vcs_dpi_voltage_scaling_st construct_low_pstate_lvl(struct clk_limit_table *clk_table, unsigned int high_voltage_lvl)
{ … }
void dcn21_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params)
{ … }
void dcn21_clk_mgr_set_bw_params_wm_table(struct clk_bw_params *bw_params)
{ … }
void dcn201_populate_dml_writeback_from_context_fpu(struct dc *dc,
struct resource_context *res_ctx,
display_e2e_pipe_params_st *pipes)
{ … }