Commit 966869d0 authored by Tony Cheng's avatar Tony Cheng Committed by Alex Deucher

drm/amd/display: option to maximize lb usage

experimental change for testing if max line buffer result in better stutter efficiency

for 1080p, LB can hold up to 9 line at 10bpcc, potentially add 10 line time of
latency hiding.
Signed-off-by: default avatarTony Cheng <tony.cheng@amd.com>
Reviewed-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a32a7708
...@@ -181,15 +181,19 @@ struct dc_debug { ...@@ -181,15 +181,19 @@ struct dc_debug {
bool timing_trace; bool timing_trace;
bool clock_trace; bool clock_trace;
bool validation_trace; bool validation_trace;
/* stutter efficiency related */
bool disable_stutter; bool disable_stutter;
bool use_max_lb;
enum dcc_option disable_dcc; enum dcc_option disable_dcc;
enum pipe_split_policy pipe_split_policy;
bool force_single_disp_pipe_split;
bool disable_dfs_bypass; bool disable_dfs_bypass;
bool disable_dpp_power_gate; bool disable_dpp_power_gate;
bool disable_hubp_power_gate; bool disable_hubp_power_gate;
bool disable_pplib_wm_range; bool disable_pplib_wm_range;
bool use_dml_wm; bool use_dml_wm;
enum pipe_split_policy pipe_split_policy;
bool force_single_disp_pipe_split;
unsigned int min_disp_clk_khz; unsigned int min_disp_clk_khz;
int sr_exit_time_dpm0_ns; int sr_exit_time_dpm0_ns;
int sr_enter_plus_exit_time_dpm0_ns; int sr_enter_plus_exit_time_dpm0_ns;
......
...@@ -507,6 +507,9 @@ static enum lb_memory_config find_lb_memory_config(struct dcn10_dpp *xfm, ...@@ -507,6 +507,9 @@ static enum lb_memory_config find_lb_memory_config(struct dcn10_dpp *xfm,
{ {
enum lb_memory_config mem_cfg = LB_MEMORY_CONFIG_0; enum lb_memory_config mem_cfg = LB_MEMORY_CONFIG_0;
if (xfm->base.ctx->dc->debug.use_max_lb)
return mem_cfg;
if (xfm->tf_mask->PIXEL_DEPTH) { if (xfm->tf_mask->PIXEL_DEPTH) {
mem_cfg = dpp10_find_lb_memory_config(scl_data); mem_cfg = dpp10_find_lb_memory_config(scl_data);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment