mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm_fb: display: fix page fault during supend/resume
There has VG1 pipe commit (pan display) happen after system suspended. This left VG1 still staged up at mdp mixer. Once timing generator is enabled at resume, VG1 pipe start fetching contents from address 0 since VG1 has not yet be configured. This cause page fault. This patch has sanity check at system suspend to make sure no any pipe stage up at mixer after suspend. Change-Id: Idcf974ceb4afe2a3ec55b9603b700fa497f84045 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
This commit is contained in:
parent
5aac7da9b0
commit
4eab59af57
2 changed files with 3 additions and 0 deletions
|
@ -1210,7 +1210,9 @@ void mdp4_dsi_cmd_overlay(struct msm_fb_data_type *mfd)
|
|||
|
||||
mdp4_overlay_mdp_perf_upd(mfd, 1);
|
||||
|
||||
mutex_lock(&mfd->dma->ov_mutex);
|
||||
mdp4_dsi_cmd_pipe_commit(cndx, 0);
|
||||
mutex_unlock(&mfd->dma->ov_mutex);
|
||||
|
||||
mdp4_overlay_mdp_perf_upd(mfd, 0);
|
||||
mutex_unlock(&mfd->dma->ov_mutex);
|
||||
|
|
|
@ -1150,6 +1150,7 @@ void mdp4_dsi_video_overlay(struct msm_fb_data_type *mfd)
|
|||
|
||||
mutex_lock(&mfd->dma->ov_mutex);
|
||||
mdp4_dsi_video_pipe_commit(0, 0);
|
||||
mutex_unlock(&mfd->dma->ov_mutex);
|
||||
|
||||
if (pipe->ov_blt_addr)
|
||||
mdp4_dsi_video_wait4ov(0);
|
||||
|
|
Loading…
Reference in a new issue