mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm_fb: display: initialize dmap_comp before wait4dmap
blt_wait flag will be set when both two writeback buffers are used. In this case, kickoff can not be proceeded until next dmap_done to release writeback buffer. This patch initialize dmap_comp before wait4dmap to make sure wait_for_completion is enforced. CRs-fixed: 448168 Change-Id: I64f2ad599b18f9d8b346c41a55829c564fcced0b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
This commit is contained in:
parent
3cf124994d
commit
3a2cf75d6a
1 changed files with 3 additions and 1 deletions
|
@ -301,8 +301,10 @@ int mdp4_dsi_cmd_pipe_commit(int cndx, int wait)
|
|||
spin_lock_irqsave(&vctrl->spin_lock, flags);
|
||||
if (pipe->ov_blt_addr) {
|
||||
/* Blt */
|
||||
if (vctrl->blt_wait)
|
||||
if (vctrl->blt_wait) {
|
||||
INIT_COMPLETION(vctrl->dmap_comp);
|
||||
need_dmap_wait = 1;
|
||||
}
|
||||
if (vctrl->ov_koff != vctrl->ov_done) {
|
||||
INIT_COMPLETION(vctrl->ov_comp);
|
||||
need_ov_wait = 1;
|
||||
|
|
Loading…
Reference in a new issue