qseecom: Fix QSEECOM_IOCTL_UNLOAD_EXTERNAL_ELF_REQ kernel crash

Fixes the kernel crash occuring with IOCTL_UNLOAD_EXTERNAL_ELF_REQ
ioctl by adding unavailable client type to qseecom_client_handle_type
enum, which is required in the driver during qseecom_release().

Change-Id: I73b817255149ffc4a808852feb2954a0ba3c317f
CRs-fixed: 508253
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
msm:camera: Bound check the num_planes variable

Bound check the num_planes variable, otherwise for loop
can execute forever

Change-Id: I554b988e048b9bf64e92a157eb7459d270e54721
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
msm: msm_bus: Add checks during bus client unregistration

During unregistration clients should withdraw all pending
requests. This was earlier done in update-request function.
However, that caused acpuclock client requests to be
incorrectly zeroed out.

It seems more appropriate to let the client ensure that
they correctly clean up their requests than to have bus
driver forcefully remove non-zero requests. Hence, a
warning has been added in the unregistration path.

Change-Id: Icfd4f62f46fdd3219dc685007029be21b983c2d0
CRs-Fixed: 510389
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
msm: camera: Stream on optimization

Remove sleep in msm_csiphy_lane_config().

Change-Id: Ieede0ed325422c4323ffd69ddcbc20a36889c763
Signed-off-by: Evgeniy Borisov <eborisov@codeaurora.org>
mmc: core: Do not print error message if runtime-error is not set.

This patch checks the state of the device when schedule_suspend
fails and prints the error iff pm_runtime_error or pm_runtime is
disabled.

CRs-Fixed: 529879
Change-Id: I5800bc64cdcf5859260a7f24b9773355bef2f750
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
msm: vidc: Remove redundant check

Removing a check that was previously done by
get_vb_from_device_addr() call. Also modify the
buffer data check print's to provide more concise
information.

Change-Id: Idf320a5ae89bf104e1ea66192fe0ea621f39185f
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
Revert "msm: iommu: remove tlb_invalidate from the map calls"

This might cause TLB invalidate to hang on unmap calls.

This reverts commit 8da8a5a49ce5dcbb5b5f97da8d66b34129562e80.

Change-Id: Ibbe373d448a3bea5e75bc45dd0a16e79f57c092b
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
msm: camera: optimize sensor startup kpi for SKUF

Optimize OV12830 and OV5648 startup KPI for SKUF.

Change-Id: I0a8210ced09512026b007f6808e73d1fbc9df831
Signed-off-by: Su Liu <suliu@codeaurora.org>
msm: mdss: delay freeing buffers for additional vsync

There are cases where if commit happens very close to vsync or in other
uncommon conditions, where MDP will continue fetching from old buffer
address when unmap of the buffer happens. In order to avoid such
scenarios keep a reference of buffers for an additional commit before
unmapping to avoid potential iommu page fault.

Change-Id: Ied61b4851e2d410d71360ad0c119ef21009f91a1
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: vidc: Add support for H.264 LEVEL 5.2

For high resolutions and bit rates, H.264 spec
defined new level. This change adds support to
pass LEVEL 5.2 to FW.

Change-Id: I2298989734450a4f5eee285326afacc4a0836b41
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
ARM: dts: msm: Add support for 4K X 2K encoding and playback for MSM8974Pro

MSM8974Pro supports true 4K X 2K video playback and encoding which is 4096
X 2160P at 30 fps . To support this the max MB count needs to be updated.
This change updates the same.

Change-Id: I10240f2bdcc6c6e2110bc72b7dff47aa6e1f5b77
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
ASoc: msm: qdsp6: Add ultra low latency playback support

Using ULL further reduces continuous latency when
compared to the current low latency path.
This is achieved by having no post-processing in
the DSP along with smaller buffer sizes

Change-Id: I81cb10db575b0fd3405fe6d051ccce4f8496bb32
Signed-off-by: Aleksander Holynski <aholynsk@codeaurora.org>
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
arm/dt: rotate 180 degree in mount angle for ov12830

Rorate 180 for OV12830 in mount angle, change from 270 to 90.

Change-Id: I4aaf140142dc0d711a2cac08085775897325de7f
Signed-off-by: Wang Wenbin <wenbinw@codeaurora.org>
arm/dt: camera:add OTP support for ov12830

Add OTP support for OV12830.

Change-Id: I40113920d9136f6125eec9896127978c6cec09ec
Signed-off-by: Wang Wenbin <wenbinw@codeaurora.org>
arm/dt: camera:add OTP support for OV5648

Enabling Camera Sensor OTP support for OV5648
in SKUF project, OTP will help to cover sensor
module differentation.

Change-Id: I704ce1849c5073ddaa8113442366c6b7bcb3db34
Signed-off-by: Wang Wenbin <wenbinw@codeaurora.org>
ARM: dts: msm: Change OV5648 display orientation

Change DTS file to alter front camera display orientation.

Change-Id: I764b8defface38ecc9fbb4dd5c8b2e3a912118c8
Signed-off-by: Su Liu <suliu@codeaurora.org>
msm: camera: eeprom: add gpio enable vdig support in eeprom probe

Add support for sensor power up through gpio enable vdig in eeprom
probe.

Change-Id: I84e1bc5a7278bac29db4575fa9fe69f3e464bedc
Signed-off-by: Wang Wenbin <wenbinw@codeaurora.org>
sync: Limit logging to particular fence on timeout and error

Signed-off-by: Prabhat Awasthi <pawasthi@codeaurora.org>
Change-Id: I5bd7d62260666cdd2a32212f0e828d2d5d7d7bba
power: qpnp-bms: fix UVLO issues

When the battery gets in the low voltage range, don't limit
the corrections. We have seen UVLO where even though the BMS was
calculating SOC quickly it was not lowering the SOC fast enough.
Skip limiting ocv change when battery is near cutoff voltage.

Change-Id: I5d559a9df113b06a15b60bdb89fea61566583799
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
defconfig: 8610: add config to mark XPU violations as fatal errors

This config enables XPU violations to be fatal errors. Add this for
the debug defconfig only since it helps narrowing down stability
issues.

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