summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTerence Hampson <thampson@codeaurora.org>2014-05-30 13:28:46 -0400
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:30:21 -0700
commit6b99a01a94c8bc356c851cacdad6ed88cdc5e17c (patch)
tree03980a7c641c2f6083e793c46f16013fcb376569 /drivers
parent535585a28406ee713ee15fb0e945ad61118bbc77 (diff)
msm: mdss: Increase commit count for first kickoff
During panel unblank a kickoff is done to turn on the panel so that the first update is not delayed. It is also used to give buffer to command mode panel prior to enabling backlight prevent junk data from appearing. In order to prevent release fence timeline from being signaled too early we will increase the commit count. This allow next sync point to be added to the appropriate point on timeline, instead of relying on frame done being called before sync/commit calls. Change-Id: I566f90b3013b59dedbe42bbb9fdf6fa37d65e779 Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_overlay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
index c37fe56661ce..b10c328e6365 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
@@ -3136,8 +3136,10 @@ static int mdss_mdp_overlay_on(struct msm_fb_data_type *mfd)
rc = mdss_mdp_overlay_start(mfd);
if (rc)
goto error_pm;
- if (mfd->panel_info->type != WRITEBACK_PANEL)
+ if (mfd->panel_info->type != WRITEBACK_PANEL) {
+ atomic_inc(&mfd->mdp_sync_pt_data.commit_cnt);
rc = mdss_mdp_overlay_kickoff(mfd, NULL);
+ }
} else {
rc = mdss_mdp_ctl_setup(mdp5_data->ctl);
if (rc)