msm: display: only release kickoff when no cleanup pipe

If there is some pipe to clean up, need wait for it be done to
make sure the pipe can be used for the second cycle and recover
mode can be executed.

Change-Id: Ifb3fdb152bc4bbf367b3d272aa0c88b1a0650c19
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Neti Ravi Kumar <ravineti@codeaurora.org>
CRs-Fixed: 659999
msm: mdss: Add sysfs method to retrieve frame counter

Provide a method to retrieve the ping pong frame counter via sysfs.  This
counter can be used to count the number of TE pulse the host sees,
which is needed for the factory to verify TE functionality.

Change-Id: I83152421ab0a471a36f3e4ed33ce53dce8ff5936
Signed-off-by: Zac Crosby <azc095@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/614279
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Zhongxiu Hu <w18335@motorola.com>
Reviewed-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-by: Stephen Rossbach <rossbach@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
msm: mdss: Add dev-tree based method to skip MDP handoff

Due to QCOM's MDP overlay handoff process causing a black frame being shown
during power-up, we want to skip it.

Change-Id: I57c6575458a69d035ca2bbeffbc9024356d86eb6
Signed-off-by: Zac Crosby <azc095@motorola.com>

Conflicts:
	drivers/video/msm/mdss/mdss_dsi_panel.c
Revert "mend"

This reverts commit 81cbd0e13f3242cbb31847c22bd019faef30cec4.

Conflicts:
	drivers/video/msm/mdss/mdss_fb.c
msm: mdss: add retire fence support

Retire fence timeline should follow the actual panel vsync more closely.
For video mode the retire fence can be signaled along with the release
timeline with +1 offset, since this is signaled at vsync.
In case of command mode the panel vsync can be different from buffer
release timeline. To handle the command mode panel vsyncs better, create
a new timeline for the retire fence signaling.

Change-Id: If8a1eb717d733ca215275a8be4f0054091dbc147
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: mdss: Return suspend without delay in NOTIFY UPDATE

NOTIFY_UPDATE returns Suspend after 4 seconds delay.
Delay would cause HISTOGRAM_STOP ioctl to be called late.

Return suspend case without setting timer for no delay.

Change-Id: I356086de96cab85cd203bf1ad529ecf0b3bbfce3
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>