msm: qdsp5: Add ION framework support for 7x27A & 8x25 targets

Modified adsp driver to support the ION memory framework
for 7x27A and 8x25 targets

Change-Id: I0df75ed3d71575a28fe9f2267117a94c5a224296
Signed-off-by: Saikumar Kondaparthi <saikumar@codeaurora.org>
Signed-off-by: Arvind Thatikonda <arvindt@codeaurora.org>
msm: Add krait scm driver to configure cpu

Provide sysfs access for user space to query and control krait
processor-internal settings via the secure monitor interface.

Change-Id: Id1c00596e65794267643dc7fa1f3155278e34571
Signed-off-by: Trevor Bourget <tbourget@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: board-7627a: Initial bringup changes

Change-Id: I27ecc169aad40e017db3cd46ede82a7c1d0e60c9
Signed-off-by: Atul Raut <araut@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>
Merge "msm: Add krait scm driver to configure cpu" into jb_chocolate
Merge "msm: kgsl: Print the IB causing a pagefault" into jb_chocolate
Merge "msm_fb: display: fix page fault during supend/resume" into jb_chocolate
Merge "msm: kgsl: Add draw workaround commands after every 50 context switches" into jb_chocolate
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>
Merge "msm_fb: display: Add ion support for PPP" into jb_chocolate
Merge "msm: board-7627a: Initial bringup changes" into jb_chocolate
Merge "msm: qdsp5: Add ION framework support for 7x27A & 8x25 targets" into jb_chocolate
msm: QDSP5: audio: Migrate to ION

PMEM is deprecated, switch to ION.

Change-Id: I94f36ad625d2809400375264d94d99c0d5374248
Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
msm: msm7627a: Support ION on 7627a/8625

Deprecate PMEM and start using ION for existing converted
drivers

Change-Id: Iea4b019729e6c616c8052f183c16e4f193d69b24
Signed-off-by: Atul Raut <araut@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>
Merge "msm_fb: display: fix mdp crash during overlay unset" into jb_chocolate
Merge "msm: QDSP5: audio: Migrate to ION" into jb_chocolate