disp: msm: sde: disable hw-fencing for commit before vm transition
This change disables hw-fencing for the last commit before vm transition. This avoids configuration issues if hw-fencing is disabled in the incoming VM. Change-Id: I573b7d1665f8cef442168bd0ab83a4b2b6cebbb6 Signed-off-by: Christina Oliveira <quic_coliveir@quicinc.com>
This commit is contained in:
@@ -365,7 +365,12 @@ static inline void sde_hw_ctl_hw_fence_ctrl(struct sde_hw_ctl *ctx, bool sw_over
|
||||
u32 val;
|
||||
|
||||
val = SDE_REG_READ(&ctx->hw, CTL_HW_FENCE_CTRL);
|
||||
val |= (0x1 & mode) | (sw_override_set ? BIT(5) : 0) | (sw_override_clear ? BIT(4) : 0);
|
||||
val |= (sw_override_set ? BIT(5) : 0) | (sw_override_clear ? BIT(4) : 0);
|
||||
if (!mode)
|
||||
val &= ~BIT(0);
|
||||
else
|
||||
val |= BIT(0);
|
||||
|
||||
SDE_REG_WRITE(&ctx->hw, CTL_HW_FENCE_CTRL, val);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user