Commit 139cb65c authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher

drm/amd/display: make variable latency into a regkey option

Signed-off-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cb26f892
...@@ -906,11 +906,16 @@ bool dcn_validate_bandwidth( ...@@ -906,11 +906,16 @@ bool dcn_validate_bandwidth(
scaler_settings_calculation(v); scaler_settings_calculation(v);
mode_support_and_system_configuration(v); mode_support_and_system_configuration(v);
if (v->voltage_level == 0) { if (v->voltage_level == 0 &&
(dc->public.debug.sr_exit_time_dpm0_ns
|| dc->public.debug.sr_enter_plus_exit_time_dpm0_ns)) {
struct core_dc *dc_core = DC_TO_CORE(&dc->public); struct core_dc *dc_core = DC_TO_CORE(&dc->public);
v->sr_enter_plus_exit_time = 9.466f; if (dc->public.debug.sr_enter_plus_exit_time_dpm0_ns)
v->sr_exit_time = 7.849f; v->sr_enter_plus_exit_time =
dc->public.debug.sr_enter_plus_exit_time_dpm0_ns / 1000.0f;
if (dc->public.debug.sr_exit_time_dpm0_ns)
v->sr_exit_time = dc->public.debug.sr_exit_time_dpm0_ns / 1000.0f;
dc_core->dml.soc.sr_enter_plus_exit_time_us = v->sr_enter_plus_exit_time; dc_core->dml.soc.sr_enter_plus_exit_time_us = v->sr_enter_plus_exit_time;
dc_core->dml.soc.sr_exit_time_us = v->sr_exit_time; dc_core->dml.soc.sr_exit_time_us = v->sr_exit_time;
mode_support_and_system_configuration(v); mode_support_and_system_configuration(v);
......
...@@ -171,6 +171,8 @@ struct dc_debug { ...@@ -171,6 +171,8 @@ struct dc_debug {
bool disable_pplib_wm_range; bool disable_pplib_wm_range;
bool use_dml_wm; bool use_dml_wm;
bool disable_pipe_split; bool disable_pipe_split;
int sr_exit_time_dpm0_ns;
int sr_enter_plus_exit_time_dpm0_ns;
int sr_exit_time_ns; int sr_exit_time_ns;
int sr_enter_plus_exit_time_ns; int sr_enter_plus_exit_time_ns;
int urgent_latency_ns; int urgent_latency_ns;
......
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