Commit d7b539d3 authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher

drm/amd/display: add safe_to_lower support to dcn wm programming

This will prevent watermarks from lowering when unsafe to do so.
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 294c7e73
...@@ -185,6 +185,7 @@ struct hubbub { ...@@ -185,6 +185,7 @@ struct hubbub {
const struct dcn_hubbub_shift *shifts; const struct dcn_hubbub_shift *shifts;
const struct dcn_hubbub_mask *masks; const struct dcn_hubbub_mask *masks;
unsigned int debug_test_index_pstate; unsigned int debug_test_index_pstate;
struct dcn_watermark_set watermarks;
}; };
void hubbub1_update_dchub( void hubbub1_update_dchub(
...@@ -197,7 +198,8 @@ bool hubbub1_verify_allow_pstate_change_high( ...@@ -197,7 +198,8 @@ bool hubbub1_verify_allow_pstate_change_high(
void hubbub1_program_watermarks( void hubbub1_program_watermarks(
struct hubbub *hubbub, struct hubbub *hubbub,
struct dcn_watermark_set *watermarks, struct dcn_watermark_set *watermarks,
unsigned int refclk_mhz); unsigned int refclk_mhz,
bool safe_to_lower);
void hubbub1_toggle_watermark_change_req( void hubbub1_toggle_watermark_change_req(
struct hubbub *hubbub); struct hubbub *hubbub);
......
...@@ -2299,7 +2299,7 @@ static void dcn10_apply_ctx_for_surface( ...@@ -2299,7 +2299,7 @@ static void dcn10_apply_ctx_for_surface(
/* watermark is for all pipes */ /* watermark is for all pipes */
hubbub1_program_watermarks(dc->res_pool->hubbub, hubbub1_program_watermarks(dc->res_pool->hubbub,
&context->bw.dcn.watermarks, ref_clk_mhz); &context->bw.dcn.watermarks, ref_clk_mhz, true);
if (dc->debug.sanity_checks) { if (dc->debug.sanity_checks) {
/* pstate stuck check after watermark update */ /* pstate stuck check after watermark update */
......
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