Commit graph

593380 commits

Author SHA1 Message Date
Narender Ankam
4d811fc832 msm: mdss: dp: fix div by zero error
If for some reasons like ioctl fuss test or reading dpcd caps failed,
max lane count supported might be zero. In such cases handle link clk
calculation gracefully.

Change-Id: I7cb08abce76025930681f6532c03708793d3acc4
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2017-08-24 16:23:40 +05:30
Jin Fu
db5e493881 input: misc: speed up suspend and resume for QTC800S panel
Mount QT800S suspend and resume actions to early fb event,
so speed up touch response.

Change-Id: I1ca610131e94af806dab4dfa8709fdd9c0556971
Signed-off-by: Jin Fu <jinf@codeaurora.org>
2017-08-24 17:19:31 +08:00
Zhiqiang Tu
ac693094e7 qcom: scm_qcpe: update function return value and input parameter type
Update the function return value and input scm_ret variable
type for restore secure configuration in scm_restore_sec_cfg() fn.
Adding scm_ret input variable for scm_get_feat_version() fn.

Change-Id: I5fff488f973b018f898eef616801a4b5e5a900fb
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-08-24 16:47:25 +08:00
Zhiqiang Tu
839374c50c ARM: dts: msm: Update cnss configuration on virtual platform
Config sleep state for wlan bootstrap pin and add fixed regulator
support for wlan_en.

Change-Id: I1fa7ccb98b6667e2f212a658d02a4c2b68da4f89
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-08-24 16:45:27 +08:00
Zhiqiang Tu
9df1d44946 Merge branch 'msm-4.4' into dev/msm-4.4-8996au
Conflicts:
	drivers/iommu/arm-smmu.c
	drivers/media/platform/msm/ais/fd/msm_fd_dev.c
	drivers/media/platform/msm/camera_v2/fd/msm_fd_dev.c
	drivers/soc/qcom/glink.c
	include/uapi/linux/msm_ipa.h

Change-Id: Id007a850fa2df09f08c413ffcd447a6532fad83c
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-08-24 16:39:56 +08:00
Tharun Kumar Merugu
619757e2f4 Revert "ARM: dts: msm: Add fastrpc vmid flag for sdm660"
Revert this change to avoid TZ dependency in OTA upgrades.
This reverts commit 46756eb931

Change-Id: I2227d1dfa19fa75ea25d42702a9757043b8d63dd
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-08-24 13:44:51 +05:30
Trishansh Bhardwaj
53f6417b1a msm: camera: Synchronize camera open/close calls.
Synchronize camera_v4l2_open and camera_v4l2_close to avoid use
after free.

Change-Id: I1a203ae0753b265594f616496ab8c57e0521fd9f
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2017-08-23 23:27:13 -07:00
Santosh Mardi
9fdd421d43 ARM: dts: msm: update memlat and mincpu node for sdm636
In SDM636 target CPU frequency corners are updated this
calls for a change in memlat and mincpu node cpufreq to
DDR mapping.

Change-Id: Ief1bf8c3b177b35e6ad178656c736b68401a1845
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2017-08-24 10:52:54 +05:30
Linux Build Service Account
c8e37b5935 Merge "leds: qpnp-wled: Cap the lower limit of brightness level" 2017-08-23 20:24:57 -07:00
Linux Build Service Account
5739675594 Merge "icnss: Do not process FW messages after Modem shutdown" 2017-08-23 20:24:56 -07:00
Linux Build Service Account
89999e357a Merge "ARM: dts: msm: Remove cdsp context banks for SDM636" 2017-08-23 20:24:55 -07:00
Linux Build Service Account
b0d7b054af Merge "msm: ipa3: Load IPA FW using PIL for MDM devices" 2017-08-23 20:24:55 -07:00
Linux Build Service Account
c54615bec1 Merge "defconfig: msm: Enable configs for msm8996 auto CV2X target" 2017-08-23 20:24:52 -07:00
Linux Build Service Account
3d1068e8c1 Merge "mmc: sdhci: Force probe of shdc1 based on boolean property" 2017-08-23 20:24:52 -07:00
Linux Build Service Account
5d09858f45 Merge "ARM: dts: msm: Add early mount for vendor and system" 2017-08-23 20:24:51 -07:00
Linux Build Service Account
03b85eaf78 Merge "msm: sps: Destroy debug log during BAM deregistration" 2017-08-23 20:24:50 -07:00
Linux Build Service Account
0b199b966f Merge "soc: qcom: glink_spi_xprt: Remove extra SPI transactions" 2017-08-23 20:24:49 -07:00
Linux Build Service Account
c6c29db754 Merge "msm: ADSPRPC: Queue one more intent to avoid race condition" 2017-08-23 20:24:48 -07:00
Linux Build Service Account
f61a791dc1 Merge "ASoC: msm: qdspv2: add an API to destroy ion client" 2017-08-23 20:24:47 -07:00
Linux Build Service Account
8d5b593bef Merge "ASoC: msm: qdspv2: initialize struct member before being used" 2017-08-23 20:24:46 -07:00
Linux Build Service Account
c3af8979a6 Merge "ASoC: APR: initialize struct member before being used" 2017-08-23 20:24:45 -07:00
Subbaraman Narayanamurthy
07b04723a6 leds: qpnp-wled: Cap the lower limit of brightness level
As per the hardware documentation, operating limits of WLED is
from 0.4% to 100%. Cap the lower limit to 0.4% to ensure proper
operation.

Change-Id: I7ee2684ea2186d4fdda5cea9a4d421b429a6d4fd
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-23 18:20:05 -07:00
Sameer Thalappil
1b2a982b4f icnss: Do not process FW messages after Modem shutdown
During Modem graceful shutdown, QMI messages from WLAN FW can
still be delivered to host even after icnss receives Modem
shutdown notification from SSR framework. So prevent processing
any such messages from FW after Modem shutdown.

CRs-Fixed: 2095386
Change-Id: Ice21d043393b0f7b97aaccd68e1b28702cc9e393
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2017-08-23 12:57:39 -07:00
Linux Build Service Account
a5665f1625 Merge "ARM: dts: msm: Align to published memory map for sdm636" 2017-08-23 09:30:04 -07:00
Linux Build Service Account
d4c70706b7 Merge "diag: Fix possible usage of freed resource issue" 2017-08-23 09:30:03 -07:00
Rahul Sharma
f062b231a1 msm: ais: Fix crash when ioctl VIDIOC_MSM_SENSOR_INIT_CFG is called
The invalid slave_info is used by msm_sensor_driver_probe.
This causes crash when ioctl VIDIOC_MSM_SENSOR_INIT_CFG is
called repeatedly.

CRs-fixed: 2090483
Change-Id: I467c0a19d84658fb33da9677dcb904ebf49e4800
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-08-23 05:15:12 -07:00
Narender Ankam
e465963e36 msm: mdss: hdmi: validate HDMI EDID's max number of CEA blocks
No upper-bound validation is performed when reading number of
extended CEA blocks from the untrusted source (EDID). Add a check
to limit the number of CEA extension blocks.

Change-Id: I69f09ed0ad28a4c267cf3e8f7a12efe46f75e244
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2017-08-23 16:45:50 +05:30
Ghanim Fodi
6a2c8df14c msm: ipa3: Load IPA FW using PIL for MDM devices
Change IPA firmware loading on MDM devices to use
Linux PIL instead of manual loading.
Loading with PIL is more secure. Firmware needs
to be signed and then authenticated by Trust Zone.

Change-Id: If8bda76795dcd000327c6f6345a9b38474b609fd
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2017-08-23 03:14:16 -07:00
Vijayavardhan Vennapusa
9c0215c10d dwc3: core: remove calling phy_set_suspend() in dwc3_remove()
If glue driver's probe failed, it tries to remove child devices
as part of of_platform_depopulate during cleanup. This results in
calling dwc3 core platform device's remove callback dwc3_remove().
This function is calling phy_set_suspend() for both HSPHY and SSPHY
to suspend them.  But it is resulting in crash due to unclocked access.
Remove those calls, which are not required as glue driver will take
care of suspend/resume PHYs.

Change-Id: I3e107c4beb29373d4a1c783bd2be7a128f52317e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-08-23 15:31:34 +05:30
Vijay kumar Tumati
59361de692 msm: camera: Fix null pointer exception in regulator disable
Adding a NULL check before disable regulator to make sure
that its not released before

Change-Id: I21ff1649db3e00588f1c320418fca270bc0264bc
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2017-08-23 02:15:41 -07:00
Amir Samuelov
f7c2ad0fb8 spcom: return POLLERR when poll() has error
spcom_device_poll() return POLLERR rather than -EINVAL.

Change-Id: Ifce0fa9c6a0a5136ae1d109543a9345ad77359bf
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-08-23 00:02:48 -07:00
Trishansh Bhardwaj
d943f1588c msm: camera: Fix race condition in msm_sd_register.
Acquire ordered_sd_mtx mutex while accessing ordered_sd_list.

Change-Id: I1b045d51b56de8488b3d7186cfa4582da664b710
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2017-08-22 23:18:26 -07:00
Anurag Chouhan
123604f4fd icnss: Fix uninitialized variable
As part of optimization in msa permissions assignment
source and destination vmids are introduced as uninitialized
arrays.
The fix is for initialization of the array as zero initially
so that variables doesnot have the garbage value from the stack.

Change-Id: Ie30d61f3be9ed5a5a2cef2e63348d987e894c22a
CRs-fixed: 2096940
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
2017-08-22 23:09:10 -07:00
tharun kumar
8646cc397a ARM: dts: msm: Remove cdsp context banks for SDM636
Remove the context banks of cdsp from fastrpc device node
for SDM636

Change-Id: I9a238ad21f253da3c4f707a71009e02e9660ed1b
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-08-22 22:55:07 -07:00
Vijayavardhan Vennapusa
4008607d2d usb: phy: qusb: Allow support for fused tune2 value correction
Update the TUNE2 parameter by adjusting the programmed tune2 value
with the correction value, if mentioned in dtsi to improve rise/fall times.
In case efuse register value is zero after correction, write previous TUNE2
register value as it is instead of writing hardcoded value. And correction
value should be between [-10 5] in order to take into consideration while
updating TUNE2 register with fused value.

Change-Id: Iaf61705bfd0c7b2cb62de8816c912f05876f001c
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-08-23 11:17:20 +05:30
Jitendra Sharma
f58b8337c2 ARM: dts: msm: Align to published memory map for sdm636
Remove cdsp pil node and corresponding carveout region,
also add 1MB buffer at MBA boundary for sdm636.

Change-Id: I6adb0f2ed37559b91d0b607c729e66142f49e86f
Signed-off-by: Jitendra Sharma <shajit@codeaurora.org>
2017-08-22 22:44:02 -07:00
Srinivas Ramana
6f062b7e60 socinfo: Add support for SDM/A 636 SOCs
Add socinfo support and CPU IDs for SDM636
and SDA636 SOCs.

Change-Id: If14654c3fb93a52e4db0270e60cb6e6371ef077f
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2017-08-22 22:43:13 -07:00
Srinivas Ramana
3e59abb4d5 ARM: dts: msm: Add device tree support for SDM/A 636
Add the required device tree files to support all the platforms
with SDM636 and SDA636.

Change-Id: Iff673b1626acb2bb83c0b7706b118e24919c3934
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2017-08-22 22:39:32 -07:00
Tirupathi Reddy
1f4af949b0 ARM: dts: msm: Add speed-bin 3 for sdm660
Add speed-bin 3 support in cpr3 driver and device nodes
for sdm660.

CRs-Fixed: 2099889
Change-Id: Ied0da8ea6f9d787d0021716566080c37881b9558
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-08-23 10:26:50 +05:30
Varun Balaraj
e453c121c5 ASoC: msm: qdsp6v2: Implement downmix control support for compr driver
Add support for downmix mixer control for multi channel primary and
interactive for a stereo device concurrent use case in which
primary is expected to be downmix accordingly mix matrix coefficientsw.

Change-Id: I8d6e72cdac1eea6cdfbc9922e484abaeb36021db
CRs-Fixed: 2093120
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
2017-08-22 21:30:53 -07:00
Rama Krishna Phani A
a24f14b69d msm: sps: Destroy debug log during BAM deregistration
Clients can register and deregister to BAM based on usecase.
IPC Log pages are created during clients registration to BAM.
Update support to destroy log pages during BAM deregistration.

Change-Id: I1da266c61ebd57d6cfead6fc5b64a05be5620cf4
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-08-22 21:30:47 -07:00
Yimin Peng
1ebddfae1d ARM: dts: msm: Add adsprpc on virtual platform
Add support for adsp rpc and fastrpc.

Change-Id: Ifd91586879fd874e888fcbe2304d4e9182d0fb87
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2017-08-22 20:23:04 -07:00
Linux Build Service Account
2f5c62e75e Merge "soc: qcom: Add hypervisor abstraction driver" into dev/msm-4.4-8996au 2017-08-22 19:56:29 -07:00
Prakash Burla
5a713f928f soc: qcom: Add hypervisor abstraction driver
This new driver is meant to be a cross-platform abstraction
layer for utilizing the underlying hypervisor system.
This API can be accessed from both user and kernel sides.
The intended users of this are the multimedia drivers who want
to communicate with the host OS to use the multimedia hardware.

Conflicts:
	drivers/soc/qcom/Kconfig
	drivers/soc/qcom/Makefile
	include/uapi/linux/Kbuild

Change-Id: I37743df490d14249a9d378225771367750899eb0
Signed-off-by: Edward Lee <eleekimk@codeaurora.org>
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2017-08-22 19:39:11 -07:00
Linux Build Service Account
e243bb8502 Merge "drm/msm: fix hdcp 1x module for repeater test cases" 2017-08-22 18:56:14 -07:00
Linux Build Service Account
1633cf74a4 Merge "cnss2: Add debugfs entries for register read/write" 2017-08-22 18:56:13 -07:00
Linux Build Service Account
853dc76799 Merge "tracing: fix race condition reading saved tgids" 2017-08-22 18:56:12 -07:00
Linux Build Service Account
f74e83da80 Merge "msm: sensor: Fix crash when ioctl VIDIOC_MSM_SENSOR_INIT_CFG" 2017-08-22 18:56:11 -07:00
Anthony Mah
b075d93c27 ARM: dts: msm: Add early mount for vendor and system
Create support for early mounting of system and vendor partitions
in the kernel on msm8996 platforms.

Change-Id: I3caf26d3e2a371ccd63a2823fe3e487461a8dd08
Signed-off-by: Anthony Mah <amah@codeaurora.org>
2017-08-22 16:33:42 -07:00
Chris Lew
5295824c33 soc: qcom: glink_spi_xprt: Remove extra SPI transactions
The TX FIFO write reg and the RX FIFO read reg are controlled
by this processor. Keep track of the state of these two indexes
to reduce the amount of SPI reads.

CRs-Fixed: 2093123
Change-Id: I4ffa0e08bce6dabd57f33a13fef8107211ce3f09
Signed-off-by: Chris Lew <clew@codeaurora.org>
2017-08-22 15:25:58 -07:00