msm_fb: display: commit mdp baselayer pipe

When in resume or boot time, baselayer pipes need to be committed for
mdp to play, otherwize underruns and blue screens are seen. The
previous pipe stage up func has this commit which is removed now, so
the commit calls have to be added for the cases where base pipe is
initialized.

Change-Id: I63a7d0ac3fb078b3d7f604eb646a0430326a478c
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Revert "msm: compile v4l2 files for 8x60."

This reverts commit bb0fba6a0aeedd1e5c200f1903c848051e9a8ab1.

Change-Id: I431b6ab6961880c7bc327d65fe7a314763eccd58
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm_fb: display: alloc/free writeback buffer done at do_blt()

To avoid double freeing writeback at end of blt mode, let
both alloc and free writeback buffer done at do_blt().

Change-Id: I1f89eb87cf9084db570aa71f23c71c648543ec40
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: resolve compilation issues for 7x27a

Resolve compilation issues for 7x27a

Change-Id: I294e59a1829eb91b48e1ceff510ff589675e496f
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
msm_fb: display: Add ion support for PPP

Add support for ion in MDP PPP drivers for accessing
source images and destination images.

Change-Id: Id7c0542daad0789d4bfdb01d8c13117669a142f7
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
msm: kgsl: Print the IB causing a pagefault

If a GPU page fault occurs then store the IB information of the
of the fault and print the IB information by queueing a work item.

Change-Id: I4463305727605a65134644d22ef7f51e72740350
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
(cherry picked from commit 3e40f411dc3b67fba17e4ddcd9aff2c90bd6fbbc)
msm: kgsl: Add draw workaround commands after every 50 context switches

We need to add a draw workaround command sequence after every 50 context
switches if the gmem has not been saved in those 50 switches. This
workaround is required to prevent the GPU from deadlocking. Since gmem
save commands have draw calls in them we only need to execute this
workaround if the gmem has not been saved. The number 50 was chosen
empirically.

CRs-fixed: 362302
Change-Id: I1a659c85736c47fe6f45030b20ce7a12851b0815
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>

Conflicts:

	drivers/gpu/msm/adreno.h
	drivers/gpu/msm/adreno_a3xx.c

Signed-off-by: Anshuman Dani <adani@codeaurora.org>
(cherry picked from commit c8efccfc10d531ed9e3805e3f54309f1ca715686)

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
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: I517bdb34eb158dfc70235ebc3fb98262eef4287d
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm_fb: display: fix mdp crash during overlay unset

Check real_pipe address before refer to it.

Change-Id: I2f8c6fa6f8e657801dc676f7d9887e7eb0f10e73
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: Add support for Vsync driven composition on MDP 3.03 targets

Add support for vsync notification to user space using user events.
This is to trigger frame composition based on Vsync.

Change-Id: Ifdfef0d0e2ec9d6ca3e916398b9f17ccfbf7aeba
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>