msm: kgsl: Wake up gpu on kgsl_ioctl_timestamp_event only if necessary

Any call of kgsl_ioctl_timestamp_event wakes up gpu. In some cases
(like retired timestamp) it's not necessary. Wake up gpu only if it's
necessary.

Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>
Change-Id: I845faf6e9c6e4c9882a68489b64223919be3d21c
ASoC: msm8x10-wcd: Enable CDC_IN2 and CDC_IN3 to ADC2

Enable the audio recording to ADC2 from either CDC_IN2 or
CDC_IN3 to make stereo recording available on analog MICs.

Change-Id: I88b5f0eebe0ead6aba3cd8fd5fc880b81994d947
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
msm: mdss: enable continuous splash screen for 8x10

Continuous splash screen is to allow lk to kernel smooth
transition for the display splash screen.  During lk to
kernel transition, the splash image will be copied and
display engine status will be preserved so that user will
see continuous splash screen.   This is to enable the
feature on 8x10 MTP and CDP platforms.

Change-Id: Ie8f71c1d0400cb72dff3a076f57c1d7e19a844f0
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
msm: mdss: initialize the display interface type

The display interface type was not initialized
properly.  This is to initialize the display
interface type based on panel mode.

Change-Id: I73cfbb0ab78dc01698d60be10afd7492469c756e
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
msm: mdss: Replace vsync work queue with sysfs_notify_dirent

Since sysfs_notify_dirent() can be called in interrupt context,
use it instead of work queue. This should improve latency of
vsync events, especially as work queues run at normal
priority, and the other threads which transmit vsync events use
a higher priority.

Change-Id: I14de54b455ed5cc17b61e1e9ff9078b8c958cdcb
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: mdss: Compensate for low VBP in MDP clock calculations

MDP latency is 4 lines with CAF and when the panel's vertical
Back porch value is lower than 4, the MDP clk rate needs to
be increased by 25% to compensate for the latency.

Change-Id: I732de52b4f5387d5c7992e893ea7cad5c6951811
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
coresight: disable byte counter if byte counter initialization fails

The byte counter feature is enabled only if all the components it relies
on can be succesfully enabled.

Change-Id: I09e9b78c21af66d8cfc7c94d286f5b61adb7f7d6
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
ARM: dts: msm: add coresight byte counter interrupt for 8610

The CoreSight block can produce an interrupt on transfer of
programmed number of bytes to ETR-memory. Add device tree
entry to support this feature.

Change-Id: Ic86111ba4c16a8300cd5a445c5a33ac4ccbd19a1
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
arm/dt: msm8610: Adjust X and Y clipping data for Atmel touch Controller

Update X and Y clipping data to solve the touch accuracy problem.

Change-Id: Iab539833191a6954839c4395bff09465d8295e61
Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org>
mdss: ppp: Correct ppp bw request

Integer overflow occurred in calculating ib, this value was then
given to bw request resulting in an invalid request.

Change-Id: I71c56ecb7b412a8343ac400295a97f00207316e2
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
msm: vidc: send video cmd opcode in apr packets to Q6

Q6 expects video command opcode in apr command packets
sent to it,  instead of the individual command id.
Also remove redundant Q6 functions.

Change-Id: I0239f88791af28ee9ba2975d841394e3c6fa9805
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
msm: camera: optimize sensor startup kpi for 8x26

Optimize OV8825 and OV9724 startup KPI for 8x26.

Change-Id: Id1e5c8a32459ac0c91c821d599d33e1c0b6bdf80
Signed-off-by: Su Liu <suliu@codeaurora.org>
defconfig: msm: Remove RTB from msm8610 performance configuration

RTB logging should not be enabled on performance configurations.
This will save memory as well as make the code perform better.

Change-Id: I8f24833cf835c5363176d72cf0482fbf88385f8e
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
msm: mdss: fix the tearing issue on 8x10

Configure the tearing check related registers properly
to resolve the tearing issue on 8x10 DSI command mode.

Change-Id: If50239375758e68a115a044d04eddf6285c62bda
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
ARM: dts: msm: 8926: update the number of GPIOs

8926 has more GPIOs than 8226. Update the number to 120 to support
these new GPIOs.

Change-Id: Ib6d6e7b301febac8b71441619c826f3f40575801
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
msm: mdss: add BL_DCS_CMD on 8x10

Support BL_DCS_CMD function to adjust brigtness in 8x10/12.

Change-Id: If7cf7eff9509c043af4be6e6ec5f0039346f8e0a
Signed-off-by: Shuo Yan <shuoy@codeaurora.org>
msm: mdss: support continuous splash screen for DSI command panel

This is to support continuous splash screen for DSI
command mode panel.

Change-Id: I853c319e9c657312217695f94cbdbd9835666d3e
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
msm: mdss: fix histogram reset error on 8x10

Allow histogram reset to happen at any state.

Change-Id: Ib7245f1a6d3ae104f9a9c40a446bc411f01a197c
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
msm: mdss: verify display status for continuous splash screen

The continuous splash screen feature requires support
from both lk and kernel.  This change check the case
where the lk enables the continuous splash screen, but
kernel is not enabling it in the device tree.

Change-Id: I68fc474e87aad00760f89ee4582ae60ee5577bbf
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
defconfig: 8610: enable strict memory protections

Enable strict memory restrictions to fulfill requirements.

Change-Id: I704710d75750cd36544470436e5f93f4864bdbd6
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>