Initial commit jb_2.5_ion
msm: Qdsp5v2: audio: Migrate to ION.

PMEM is deprecated, switch to ION.

Change-Id: Ia15c444e26961d8aa40bd5db3ece1fd9368e02ef
Signed-off-by: Kalyani polepeddy <kpolep@codeaurora.org>
audio: msm: qdsp5v2: Switch hostPCM driver to ION.

HostPCM to switch from PMEM to ION to allocate memory.

Change-Id: Ic4f0aa839628ca415702b22005802661674b1fb6
Signed-off-by: Kalyani polepeddy <kpolep@codeaurora.org>
Initial commit for ION compilation errors

Change-Id: Ic003609426ac2fde1e3c506839f31716e708df25
Signed-off-by: Kalyani polepeddy <kpolep@codeaurora.org>
msm: Kconfig: Select ARM_HAS_SG_CHAIN for 7630/8x55

ION allocations in SYSTEM_HEAP now uses alloc_pages() and not
vmalloc(). This will add one entry into sg_table for each page
of allocation. With this, sg_table may over-cross the limit
of fitting into one page for bigger sized allocations. So,
accommodate extended sg_table entries by chaining more pages.

ARCH_HAS_SG_CHAIN will enable this chain of pages. Enable
ARM_HAS_SG_CHAIN to select ARCH_HAS_SG_CHAIN.

(cherry picked from commit 62a2f7c52ab959868f5350695897932846099784)

(cherry picked from commit 9ca7a19f891b4eecb2fa93ac0a428bedd5a197d9)

Change-Id: If627a56be47100342ea7f62f6ca8387ab6bc17a9
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: camera: Enable V4L2 based camera for 8x55 target

Enable the v4l2 based camera solution for 8x55 target on the MR1 branch.

Change-Id: I8eae06e9a5dee4d32b5e87a1277028a62d25e68b
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm: camera: Fix compilation issues for 8x55 MR1

Change-Id: Icbc3af1ccd7d4868852c4924cb6c90d53cb80f2e
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm: camera: add required header files in msm

Change-Id: I8f5e1eb554e25d3fceeaf6e45ea91237efd98fd6
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
msm: audio : Enable LPA

audio: qdsp5v2: Switch audio drivers to ION
Change-Id: I5a757b606b3159b8fee77b66605343dd2385f3ec

Signed-off-by: Kalyani Polepeddy <kpolep@codeaurora.org>
audio : Copyright correction.

Change-Id: Ibe0642dbb6397ce62d6784752393c0b057706163

Signed-off-by: Kalyani Polepeddy <kpolep@codeaurora.org>
USB: msm72k_udc: set QMULT for ISO endpoints

Currently not setting QMULT for ISO endpoints. Set this
value to indicate to the USB controller the number
of transactions to be done in microframe.

Change-Id: I529e6624e592df54bafc9cef30f6b28eca050360
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
msm_fb: Add support for writeback on 7x30

Add support for writeback on 7x30 to avoid under runs
during video playback of high resolution clips.

Change-Id: I3781097b894b21d7d7c4b4f29fdd8ff9435517cc
CRs-fixed: 440174
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: board7630: Add an ION heap for WRITEBACK

To avoid under-runs during high resolution video clips
playback, we provide Write-back support. Allocate a heap
and required memory for the same.

CRs-fixed: 440174

Change-Id: I53b96821ac2c78bf82b8cc0ce92e30490939662c
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: pm2: Use different API to get the next timer expiration

Use different API to get the next timer expiration. Replace
the existing API "tick_nohz_get_sleep_length" with
"msm_timer_enter_idle". Sometimes existing APIs giving less
timer expiration than what is required when the system decide
to enter into PC. This time is not sufficient for the system
to enter and coming out of the PC.

Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
(cherry picked from commit 8dc6ff4d47fceff2b11ab1de7336b659ee10cb19)

Change-Id: Iae2ede92e06f8a16c8f43558d2766b746c6d453a
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: pm2: Update SPC LPM stats correctly

Currently StandalonePC stats are updating incorrectly even
for successful cases. After debug found that compiler has
optimized some of the instructions where the return value
from "msm_pm_power_collapse_standalone()" being compared
incorrectly and always log the stats as failed even for
success cases. Change the "exit_stat" variable to "volatile"
to avoid any optimization.

CRs-Fixed: 433578
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
(cherry picked from commit f59048d29fd75a30cac8c294e068178d9d489af3)

Change-Id: If1f9313f7968e93f5dcd9fb33426496f5091d14a
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
USB: OTG: Vote against APP's idle PC in USB Host Mode

In USB Host mode, When the target is going to APP's
idle PC and coming out with any peripheral device
connected, target is crashing. Fix this issue by
not allowing Idle PC in USB Host Mode.

(cherry picked from commit 9d672c8f341fc2bbee2c6ee0108d7d8eedbe999f)

Change-Id: I7f5fb2fe9d2f545bc383daf0c0ab3d322650e9a5
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
msm: camera: Enable Gemini support for 8x55

Enable Gemini Jpeg hardware encoding support for msm7630 device

Change-Id: Iea9015b86ffb949ab6190399159e87a1a43da719
Signed-off-by: Vivek Singh <vising@codeaurora.org>
board-msm7x30: display: Increase the camera heap for 720p

There is not enough memory for 720p video play when played
on external interface. Hence increase camera heap by 1 frame
of 720p resolving the playback issue on external interface.

Change-Id: I8dce906e222fbbef50c80bab1413cb3557397522
Signed-off-by: Neti Ravi Kumar <ravineti@codeaurora.org>
msm: 8625: Add support for the M2A_2 fiq handler

The FIQ handler gets triggered when the M2A_2
interrupt is fired by the NON-HLOS. The  FIQ
handler saves the CPU context and helps in
debugging the watch dog timeout issues.

Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
(cherry picked from commit ed8df5b5d13e3873adb6071c193799568dc9939f)

Change-Id: I3489027420e4c6f60fa27eb7fc2c6948bc98da8d
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: 8625: Send IPI_CPU_BACKTRACE when FIQ is raised

Currently only cpu0 context is getting saved when FIQ is raised.
So add support to unwind the call stacks of all the CPUs cores by
sending IPI_CPU_BACKTRACE.

Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
(cherry picked from commit a44d8a67ccccb258babbf5742a88d0c94054a57c)

Change-Id: Id783d1b0a6f521b6370322a7491d8d131a92641e
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>