msm: vidc: Add VP8 version set-up via Profile and Level

VP8 specification does not define level or profile concept but
specify a version. The OpenMax IL version 1.1.2 specify a single
profile and multiple levels for VP8 codec, the levels are indeed the
version numbers. The way of setting the codec version using level
field comes from the definitions at OpenMax IL. Since is a single
profile, level value is use to set-up the version but FW expects the
version value to be pass in the profile field, for that reason
incoming level is copy to FW profile.

Change-Id: I1ddc47b7a25efd1d31bed18e54c2b576427d1564
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
msm: vidc: Propagate FBD buffer offset

The offset is used to know the position of the valid data. In the past
this was not use for any codec but is essential for VPX/VP8 encoder.

Change-Id: Id0c5cef74f3ec80a0c41646a3e95d50889932f18
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
msm: vidc: Initialize data_offset to avoid trash values

When data_offset is used by client this may get
trash values causing unexpected results.

Change-Id: Iaa7ca85f6dd81c4246580047f915cbb6327e7361
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
msm: kgsl: Implement the A3XX power-on shader workaround

On some targets (A330v2) the hardware is in a wonky state following
a power collapse. Send a special command buffer before the first
submission to put everything back in place.

Change-Id: Ic0dedbadb8e676677b9db95defd53f7bd3fba338
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm: mdss: Avoid deadlock in interrupt handler

Reduce the locking scope in irq_dispatch so that
mdss_lock is not held when the irq_handler is dispatched.
The dispatched irq_handler will try to acquire mdp_lock but
another active process can already have mdp_lock and tries to
procure mdss_lock creating a deadlock situation. Not locking
with mdss_lock is acceptable as the calls will be synchronized
through mdp_lock from MDP clients.

CRs-Fixed: 528550
Change-Id: I586b7e00c046dd4081b4e838e62e0a0556f4c717
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
msm: audio: qdsp6v2:  Check return code from audio_aio_open()

When audio_aio_open() is triggered in blocking fashion, it  frees audio
resouces and returns error code. In the current implementation,  callers
did not check the error code which can lead to dereference to freed
resources and cause system crash.  Update the callers to check return
code and then return error back to application to avoid the issue. In
the meanwhile, update the audio_aio_open not to free memory for caller
and leave the caller to free the memory in error condition.

CRs-fixed: 436653
Change-Id: If4dda158cb988c5837517817b1afa0572c30696e
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
coresight: use no log version of readl while dumping etf

During kernel panic, coresight_abort is first called to stop
tracing to the default ETF (circular buffer mode) sink. This is
followed by stopping RTB as part of the panic handler.

Use no log version of readl while dumping ETF in circular buffer
mode to avoid polluting RTB logs with readls responsible for
dumping ETF during kernel panic.

Change-Id: I282516be458c8b38af20cb372803cdff9eb9e8f0
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
msm: vidc: Validate session_id in video hardware response

Validate session_id present in video hardware response
packet before processing it. This will avoid system reset
resulting from invalid session_id returned from video hardware.

Change-Id: I37525a3d10b5efe00734c5533931e2700f3c7513
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
ARM: dts: msm: Fix ov8825 rotation issue on 8x26

Change mount angle to fix the rotation issue.

Change-Id: I439f71da3080f9297b980a803a02262ee0cf750b
Signed-off-by: Ju He <juhe@codeaurora.org>
spi_qsd: correct the chip select gpios valid field entry

During probe Chip select gpio's valid field is set to non-zero.
This is causing gpio free to get called for not-used gpios
during runtime suspend.

CRs-Fixed: 525743
Change-Id: Ib0de417d640f30908ad11650b584833dac286646
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
msm: kgsl: Init FT log level in device init

Currenlty FT log level is init in debugfs init, debugfs
could be removed from commercial software and we might
miss FT logs, initializing FT log level in device init
prevents this.

Change-Id: If6ea02735dd250ecb7579cc0b485145dddb1b6d6
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
msm: kgsl: Detect long IB per submission

Currently long IB is detected per GPU command, this mainly
detects infinate shaders, this policy is changed to trigger
long IB per submission. If any submission to GPU takes more
than 2 seconds of GPU time, trigger a long IB and mark the
context bad.

Change-Id: Ic6e9a677bd1e42444d38d2a859a58721345958f5
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
Merge "msm: vidc: Initialize data_offset to avoid trash values"
Merge "spi_qsd: correct the chip select gpios valid field entry"
Merge "coresight: use no log version of readl while dumping etf"
Merge "ARM: dts: msm: Fix ov8825 rotation issue on 8x26"
ARM: dts: msm8610: Split the device tree

8610 v1 and 8610 v2 have separate SPM sequence. Split
the device tree to accomodate changes.

Change-Id: Ic320f31d07ed3a313f7dea0662828404321143ae
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
ARM: dts: msm8610: Add support for L2 GDHS

New version of SPM supports L2 GDHS. Add support for the same.

Change-Id: If238acf87b2d120f6d50fb6b2db0ccf4a4403c83
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
ARM: dts: msm8610: Update LPM levels to support L2 GDHS

As new version of SPM supports L2 GDHS, update LPM levels
to let L2 to enter GDHS.

Change-Id: Ia4442c5f05e7c99a47a68e3a9913089b623675bf
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
defconfig: Remove strict memory restrictions from the perf defconfig

Remove CONFIG_STRICT_MEMORY_RWX from the 8x10 perf defconfig in order
to satisfy performance requirements.

CRs-Fixed: 535655
Change-Id: I5a44d3226460f083253f1f4843ee26bdc46d9c60
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>