Commit 8eb5def9 authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher

drm/amd/display: fix hubp mpcc and opp tracking

This should be handled by mi and mpc only
Signed-off-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f670af8a
......@@ -686,6 +686,8 @@ void dce_mem_input_construct(
dce_mi->shifts = mi_shift;
dce_mi->masks = mi_mask;
dce_mi->base.mpcc_id = 0xf;
dce_mi->base.opp_id = 0xf;
}
void dce112_mem_input_construct(
......
......@@ -1066,9 +1066,6 @@ static void plane_atomic_disable(struct dc *dc,
fe_idx);*/
mi->funcs->set_blank(mi, true);
/*todo: unhack this*/
mi->opp_id = 0xf;
mi->mpcc_id = 0xf;
if (dc->debug.sanity_checks)
verify_allow_pstate_change_high(dc->hwseq);
......@@ -2304,7 +2301,8 @@ static void update_dchubp_dpp(
&plane_state->dcc,
plane_state->horizontal_mirror);
mi->funcs->set_blank(mi, !is_pipe_tree_visible(pipe_ctx));
if (is_pipe_tree_visible(pipe_ctx))
mi->funcs->set_blank(mi, false);
}
......
......@@ -51,9 +51,8 @@ static void min10_set_blank(struct mem_input *mem_input, bool blank)
REG_WAIT(DCHUBP_CNTL,
HUBP_NO_OUTSTANDING_REQ, 1,
1, 200);
/*todo: unhack this
mem_input->mpcc_id = 0xf;
mem_input->opp_id = 0xf;*/
mem_input->opp_id = 0xf;
}
}
......
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