msm: vidc: Handle SSR event in q6 hfi

APR send SSR events through callback and these
events have to handled properly in Q6 HFI. This
change translates SSR events to SYS_ERROR HFI event.

Change-Id: I82fe850d2df4ab1721755507c6d74d7b32a09b90
Signed-off-by: Sachin Shah <sachins@codeaurora.org>
wcnss: Fix Iris VDDDIG regulator map

Iris VDDDIG is mapped to PMIC regulator S3.

Change-Id: Iab2873e3e65603267fcb9166c7d56d23dea61c62
CRs-Fixed: 487397
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
msm: clock: Allow msm_clock_init to be invoked multiple times

In preparation for a series of changes that move MSM clock
controllers to the Linux device model, allow msm_clock_init
to be invoked multiple times (once for each clock controller).

Change-Id: I0d56612c660f020ea762feb468234813cff0db22
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
arm/dt: msm8974: Increase "ib" values for VIDC DDR bandwidth request

As per the recommendation by performance team, update the
"ib" values for DDR BW requests. This change fixes the
display under-runs seen during video playback.

Change-Id: I137814c82b257b8c751dab9df4f705e43fd5643e
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
msm: mdss: Avoid enabling both decimation and BWC

Hardware doesn't support BWC decompression and decimation on the
same pipe.

Change-Id: Ie1aa60b104fdab0151def9c0dcd185f7cae7f29a
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
msm: vidc: Add support for Constrained High Profile

This commit allows encoder clients to choose Constrained High
profile when encoding.

Change-Id: I0860367022bcdfab7d1a410b985f1a95fc6361cc
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
ARM: dts: msm: Add watchdog device tree entry for MSMSAMARIUM

Allow watchdog driver to obtain hardware watchdog
configuration information from device tree.

Change-Id: I5cb4a1834564605e40fc896fca8d674b0c6f17a1
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
msm: vidc: add check for bus scaling

Ensure the bus vector index calculated as
per macroblock load falls within the range
specified in the device dtsi file.

Change-Id: If972583932f26b76f10bf2e184f8050552b857cb
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
msm: mdss: unsecure buffer if map fails

If iommu map fails, the buffer should be unsecured before freeing it.

Change-Id: I372b0ad43d4938b79016b4e13a5aaad496ab55bf
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
ASoC: msm: Ignore unexpected events from dsp

If dsp responds with an expected event, audio driver
should ignore the response and continue. Change removes
the BUG_ON and handles the error gracefully.

CRs-fixed: 495205
Change-Id: I3051a90574b36061726c691672ec28fcc8976193
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
wcnss: Add API to expose the IRIS XO mode set

IRIS XO mode can be configured thru module parameter; and it can also
be auto detected. Add an API to expose the IRIS XO mode set. WLAN driver
can use this API for it's XO specific operation.

Change-Id: If40ae715f5e400e13a6fc9588d2bd144958ee8c2
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
arm/dt: msm8226: Add VADC channel node

PA_THERM channel nodes are used for thermal mitigation.

Change-Id: Ieac319009622e39090b38b3ac6a603f85f626905
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
msm: clock-9625: Introduce qpic rpm clock

QPIC clocks are shared between APPS and Modem so it is now
moved under RPM control. Therefore, introduce the qpic rpm
on the APPS side so that the linux driver can vote this
resource.

Change-Id: I19b94db0ec149948c4aa558a13a1b79c2ff87507
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
USB: dwc3: core: Add module parameter for TX fifo resize

Setting tx fifo resize flag is leading to discrepancy in
read throughputs for MTP function driver. Hence disable
this tx fifo resize flag and add a module parameter for
enabling/disabling this tx fifo resize at run time.

CRs-Fixed: 496921
Change-Id: Ie222cf437f6e1457b48d4dd3d6b4bfc016a241e9
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
msm:camera: Add support for camera mux clock

Add support clock mux on 8x10,
add clock source select function.

Change-Id: I15d6532cadbc7ce79215ed3110a87ebf498fd3ab
Signed-off-by: Ju He <juhe@codeaurora.org>
msm: kgsl: Remove the skip counting code from the trustzone policy

No need to turn the algorithm off now that there is explict binning.
It's not a performance win and it confuses whether DCVS is opperational.

Change-Id: Ifa1646e8dde0a792c3d22d5e1cf9e139b0363f08
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
arm/dt: 8974: Add enabled interrupts to bypass list

The following interrupts were added to Bypass list
to enable XO shutdown for smart panel during static
display

hwirq: 56 ->  modem_wdog
hwirq: 70 ->  msm_iommu_pmon_nonsecure_irq
hwirq: 97 ->  msm_iommu_nonsecure_irq
hwirq: 105 -> msm_iommu_pmon_nonsecure_irq
hwirq: 181 -> wcnss_wdog
hwirq: 211 -> dwc3_otg

Signed-off-by: Badhri Jagan Sridharan <badhris@codeaurora.org>
Change-Id: I554e8090bcc8168f0f7e60f6962e55871ea44b1b
arm/dt: msm8226: Add adsp heap

Add adsp ION heap for 8226

Change-Id: If5d4cefb696ed811574b9d942d080b8d66687a46
Signed-off-by: Krupal Divvela <kdivvela@codeaurora.org>
msm: pm-8x60: Increase warn timeout for sleep sts check

Arm cores take longer time to enter sleep. Wait for longer
time before warning until the CPU goes to sleep state.

Change-Id: I15caa8b2b2560aa68a4f4967c3364533234584b7
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
arm: dts: msm: Add sleep status device

The sleep status device polls a hardware register for status of power
collapse on a offlined core. Add support for sleep status device on
msm8226 and msm8610.

Change-Id: I41b26dcf42ab4ae6c672a582a8886e4768be3384
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>