Commit 75c2dec3 authored by Tony Cheng's avatar Tony Cheng Committed by Alex Deucher

drm/amd/display: really fix time out in init sequence

REG_UPDATE_2 return the reg value it write out through MMIO
we need to do a REG_READ to confirm the value is written out
Signed-off-by: default avatarTony Cheng <tony.cheng@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 a018298f
...@@ -42,13 +42,14 @@ void hubp1_set_blank(struct hubp *hubp, bool blank) ...@@ -42,13 +42,14 @@ void hubp1_set_blank(struct hubp *hubp, bool blank)
{ {
struct dcn10_hubp *hubp1 = TO_DCN10_HUBP(hubp); struct dcn10_hubp *hubp1 = TO_DCN10_HUBP(hubp);
uint32_t blank_en = blank ? 1 : 0; uint32_t blank_en = blank ? 1 : 0;
uint32_t reg_val = 0;
reg_val = REG_UPDATE_2(DCHUBP_CNTL, REG_UPDATE_2(DCHUBP_CNTL,
HUBP_BLANK_EN, blank_en, HUBP_BLANK_EN, blank_en,
HUBP_TTU_DISABLE, blank_en); HUBP_TTU_DISABLE, blank_en);
if (blank) { if (blank) {
uint32_t reg_val = REG_READ(DCHUBP_CNTL);
if (reg_val) { if (reg_val) {
/* init sequence workaround: in case HUBP is /* init sequence workaround: in case HUBP is
* power gated, this wait would timeout. * power gated, this wait would timeout.
......
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