Revert "msm: kgsl: Do not execute shader on wakeup from power collapse for 8064"

This reverts commit ed825efee0553310e4d5d76b61ec28f9673a3f1a.

Signed-off-by: Anshuman Dani <adani@codeaurora.org>
msm: kgsl: Do not execute shader on wakeup from power collapse

This workaround causes GPU hang when device wakes up from
slumber state.

CRs-Fixed: 572231

Change-Id: Ie3b3d4169d7bc774e63134c3571b9dccb0fd93b7
Signed-off-by: Anshuman Dani <adani@codeaurora.org>
media: video: Support de-interlacing of progressive source

It is possible that the source to de-interlacer is progressive
when client isusing VP only mode. To accommodate this the client
can provide the stride that needs to be used in order for
progressive content to be de-interlaced

Change-Id: I9104383f7fa17e5eb7985f2fa88e35d786e7d1c6
Signed-off-by: Robert Qiu <rqiu@codeaurora.org>
msm: camera: Added bounds check for index parameter

Bound check the index param from user space to avoid
any invalid memory access.

CRs-Fixed: 583366

Change-Id: I0f887bb8f1fa5a69a55e23dbb522b3bb694ad27f
Signed-off-by: Alok Kediya <kediya@codeaurora.org>
msm_fb:mdp: lcdc panel uses mixer 0

Current code wakes up lcdc unset if it is on mixer 1,
this has a problem. Now it executes when it is on mixer 0.

Change-Id: If1a2e307820a6a7ae7fb74a515a708243db981c1
Signed-off-by: c_hharis <hharis@codeaurora.org>
msm_serial_hs: Programming Auto RFR Ctrl bit

1.)Disable the auto RFR before forcibly making the RFR
line HIGH from the driver to avoid the controller
changing it's state with out driver's knowledge and
enable the auto RFR instead of making the RFR line
forcibly LOW.So that controller will make it LOW
based on the rx FIFO condition
2.)Due to unexpected data received from the client during
clock off sequence, the clock off sequence is going
into wrong state and eventually leads to uart hardware
mess up
This patch doesn't allow any data from the client during
clock off sequence is in progress

CRs-Fixed: 546216
Change-Id: Ib5b3099dbf05d71ef05c1269788ee6c56353b037
Signed-off-by: Dilip Kota <c_dkota@codeaurora.org>
Signed-off-by: Dilip Kota <c_dkota@codeaurora.org>
defconfig: Enable msm_sharedmem UIO driver

Enable msm_sharedmem UIO driver on targets which use RemoteFS
(over QMI) and RFSA.

CRs-Fixed: 477427
Change-Id: I63d95aa0fcbbdc17d64fb7749ed50c3890551dce
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
uio: msm_sharedmem: Add new device driver for sharedmemory access

Add new device driver to provide a standard interface for its
clients (like RemoteFS and RFSA) to be able to memory map their
respective allotted shared memory address in the client's address space.
The shared memory (a transport buffer) address is unique for each
individual client and is made available to the driver via device tree.

This driver uses the existing UIO framework to facilitate the clients
mmap requirements. Each individual client will be able to use a unique
UIO device for this purpose.

CRs-Fixed: 477427
Change-Id: If07b88086b5f1b87845962818094644575629fcf
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
ARM: dts: msm: Add new 'sharedmem' devices

Add new devices which need to maintain the shared memory
address for RemoteFS and RFSA

CRs-Fixed: 477427
Change-Id: Id5f3ea2a827d5a30b06d872d7a72468f1fd7718f
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
ASoC: msm: Adding ioctl for AVsync parameters

Adding support for set/get Avsync parameters on Q6.

Change-Id: Ibc7d6dff7bc2f66f5580a51d50105892506d9dae
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
ASoC: msm: Add support for delay in the CMD_RUN

Add an ioctl to add the delay for the CMD_RUN.

Change-Id: Ic6c23f00fb1173c428ae0699dbab083fc16a566f
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
ASoC: msm: Add support to select run mode for CMD_RUN

- CMD_RUN to DSP can be configured to run in
RUN_ABSOLUTE_TIME mode, RUN_RELATIVE_TIME mode, or
RUN_IMMEDIATE mode.
- Add support to expose this option to userspace.

Change-Id: I5fa8e149cc6fd38c667d552d60a58a50f5570ecc
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
ASoC: msm: Add support for PCM Plaback using Compreesed Driver.

-To enable TimeStamp mode support for PCM playback, metadata
should be populated with the correct timeStamp.
-Compressed driver has the support to handle meta data.
-Hence enable pcm playback using compressed driver.
-Add support for ADJUST_SESSION_CLOCK command to DSP in
 compressed driver.

Change-Id: Ie9d0c879e7b20d8c0bd8341d62f402d9d3621842
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
ASoc: msm: Set default volume to zero for multi channel pcm driver.

-When the default volume is set to max, even If zero volume
is applied, we hear audio for 30ms of duration resulting in
a glitch like sound. This is because the volume is reduced
from max to zero in steps as we use soft volume in DSP.
-Set the default volume as zero, so that we dont hear any glitch
as soon as the session is opened.

CRs-Fixed: 588765

Change-Id: Iffe82f585adb1d9776f8858f485515ba0cb9ae12
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
ASoC: msm: Add 2 front ends to support Multiple playback use case

Add 2 FE to support multiple playback use case as mentioned
1) system tone
2) local file playback can have a multiChannel session and a
   stereo session based on the sink devices.
3) VCAP use case can similarly have a multiChannel session
   and a stereo session open.
4) Simultaneoulsy if PIP is started it can also have multiChannel
   session  and a stereo session open.
So in all we can have seven simultaneous PCM sessions open at a time.
CR Fixed: 588765

Change-Id: Iae420729c9374d521dd719fac5538a643ba188b4
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
kernel: gtod: vsyscall

Introduce kernel user helper vsyscall to allow a higher performance
gettimeofday implementation in user-space

Change-Id: I9b9971d217382129170ecd6a35461539dac9eebb
Signed-off-by: Brent DeGraaf <bdegraaf@codeaurora.org>
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: Kubhera Ayyanagowdru <kayyan@codeaurora.org>
kernel: Add hooks for user-accessible timers in the kernel.

Hooks for user-accessible timers allow implementation of a
more efficient gettimeofday in user-space

Change-Id: If2f63d010c1cf142eb84f3745617e756913e46f7
Signed-off-by: Brent DeGraaf <bdegraaf@codeaurora.org>
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: Kubhera Ayyanagowdru <kayyan@codeaurora.org>
kernel: ARM-specific implementation of user-accessible timers

Expose a read-only timer page to user-space to allow for a more
efficient implementation of gettimeofday in user-space

Change-Id: Ibd6ce41f5f4ff9435e4bf4582ef5de721283d56b
Signed-off-by: Brent DeGraaf <bdegraaf@codeaurora.org>
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: Kubhera Ayyanagowdru <kayyan@codeaurora.org>
kernel: gtod: Add MSM-specific user-accessible timers

Enable MSM-specific timers to be readable from user-space
This allows implementation of a higher-performance
gettimeofday in user-space.

Change-Id: I1f322b5396ee335b10aeb81c681593621d151176
Signed-off-by: Brent DeGraaf <bdegraaf@codeaurora.org>
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: Kubhera Ayyanagowdru <kayyan@codeaurora.org>
ARM: poison the vectors page

Fill the empty regions of the vectors page with an exception generating
instruction.  This ensures that any inappropriate branch to the vector
page is appropriately trapped, rather than just encountering some code
to execute.  (The vectors page was filled with zero before, which
corresponds with the "andeq r0, r0, r0" instruction - a no-op)

Cc: <stable@vger.kernel.org>
Acked-by Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Git-commit: f928d4f2a86f46b030fa0850385b4391fc2b5918
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
CRs-fixed: 561044
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>

Signed-off-by: Kubhera Ayyanagowdru <kayyan@codeaurora.org>
Change-Id: I74c0105a2bcb3b78d9fc8b105a05c0fc269ba400