Commit graph

586118 commits

Author SHA1 Message Date
Puja Gupta
68020103af soc: qcom: Avoid possible buffer overflow in service-locator
Fix possible buffer overflow by reading 'resp->total_domains' from the
qmi response message since 'resp->total_domains' indicate total number
of matching domains found by servreg.
'resp->domain_list_len' indicates the domains that could be sent in one
response which should not be greater than 'resp->total_domains'.

CRs-Fixed: 2009016
Change-Id: I614561c5f9bc996689129bc098baaffc9b59c377
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2017-03-09 14:26:20 -08:00
Harry Yang
240a6fcac5 qcom: smb138x: Reduce die temperature samples for initial readings
Die temperature samples 10 times to take average to reduce error,
which extends time in reading and causes delay during boot up, where
the data is not really insterested.

To improve it, only take one sample for the first few user temp
readings.

Change-Id: Ifc10de8a624f1d50d303673ff553d4801337481b
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-03-09 13:14:06 -08:00
Abhijit Kulkarni
06b20b52e8 msm: mdss: fix secure buffer ref counting
Fix ref counting of the secure buffers. This change releases
the ref count on the secure buffers during the free operation.
This allows the buffers to be ref counted until hw has done
fetching from the buffers.

CRs-Fixed: 2012323
Change-Id: Ic24c39e75d502ed73453d0c6d78fd76448737697
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2017-03-09 11:35:54 -08:00
Prasad Sodagudi
de6e934118 defconfig: msm: Enable RCU_STALL_WATCHDOG_BITE flag
Enable RCU_STALL_WATCHDOG_BITE flag to induce the
watchdog bite for every rcu stall instead of just
printing warning message. This option helps for
postmortem analysis on rcu stalls by collecting
complete ram dumps and cpu context.

Change-Id: I6badcd034bf75a10f211eb506701a68efccb43c3
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-03-09 11:16:22 -08:00
Skylar Chang
8788726041 msm: gsi: increase stop command timeout
In case of high load on the system the old timeout (10ms)
is not sufficient for GSI to stop a channel.
This change is to increase GSI stop command to 20ms.

Change-Id: I6f86e6bf9a0254daee937e05927c8152402b2ffe
CRs-Fixed: 2015928
Acked-by: Ady Abraham <adya@qti.qualcommm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-03-09 10:57:53 -08:00
Linux Build Service Account
bba3dcc465 Merge "msm: mdss: hdmi: check up-bound of CEC frame size" 2017-03-09 10:13:37 -08:00
Linux Build Service Account
1e8643fd19 Merge "ARM: dts: msm: Move imgswap setting to target specific config" 2017-03-09 10:13:36 -08:00
Linux Build Service Account
a9dd7b68c7 Merge "msm: sde: Wait for Rotator HW complete if stop streaming timeout" 2017-03-09 10:13:36 -08:00
Linux Build Service Account
fd8b1eca93 Merge "msm: mdss: initialize the DP thread structures before kthread_run" 2017-03-09 10:13:35 -08:00
Linux Build Service Account
931760401f Merge "msm: qpnp-haptic: Add support for haptics on PM660" 2017-03-09 10:13:34 -08:00
Linux Build Service Account
c299352b93 Merge "mmc: host: cmdq-hci-ice: Clear ICE configuration once request is done" 2017-03-09 10:13:33 -08:00
Linux Build Service Account
a83d5deddb Merge "mmc: host: sdhci-msm-ice: Support for clearing ice configuration" 2017-03-09 10:13:33 -08:00
Linux Build Service Account
8d7e3b67c7 Merge "drivers: lmh_dcvsh: Use allocated variable for LMH DCVSh sensor name" 2017-03-09 10:13:32 -08:00
Linux Build Service Account
9c1ecc8488 Merge "input: touchscreen: remove data pointer from driver structure" 2017-03-09 10:13:31 -08:00
Linux Build Service Account
a0a0cf2298 Merge "msm: camera: sensor: Do not dump the CCI registers" 2017-03-09 10:13:30 -08:00
Prasad Sodagudi
4f659aa55e rcu: Induce msm watchdog bite for rcu stalls
Every RCU stall need to be debugged, So collect the ram
dumps on every RCU stall to debug further by inducing
non secure watchdog bite whenever rcu stall detected.

Change-Id: I6c1cfddc92f06b48c3f22fe9970b70f2ec670bf6
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-03-09 10:07:35 -08:00
Utkarsh Saxena
b09c22c040 msm: ipa: Fix incorrect wakelock handling
For every __pm_stay_awake call, there must be a
__pm_relax call to ensure there is no stale
wakelock is held. with the current logic
__pm_stay_awake is called whenever wakelock ref
cnt is non-zero and released only when it is 0.
This leads to wakelock being held even when
it is not required. Make a change to acquire
wakelock only when it is not held previously.

Change-Id: I8c61c184506c705fd5866de8a606f642c5de3d5b
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-03-09 09:16:54 -08:00
Naseer Ahmed
718254e9fd msm: mdss: Validate cursor image size
Check size of cursor image provided by userspace and return error
appropriately.

Bug: 34125463
CRs-Fixed: 1115406
Change-Id: I31aee3c9219921cf5c4306b36f8708582b838c38
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
2017-03-09 08:59:52 -08:00
Wei Ding
4323c16a69 ARM: dts: msm: Add support TOF sensor on msm8998
1. Change the power supply to fixed regulator of TOF sensor.
2. Add IRQ gpio for TOF sensor on msm8998.
3. Add TOF entry on msm8998 CDP device.

CRs-Fixed: 2013683
Change-Id: Id518d6f6d9a2c9d34bc054371e6d9be103c02021
Signed-off-by: Wei Ding <weiding@codeaurora.org>
2017-03-09 05:54:24 -08:00
Walter Yang
4c3c564145 ARM: dts: msm: Add routing controls for sdm660 qrd
Add routing controls to connect analog and digital codecs for both
RX and TX paths.

CRs-Fixed: 2014602
Change-Id: Ie92f93a7cdc5230cdd5d1bc2471d96117013a34c
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-09 05:16:02 -08:00
Walter Yang
24ef39d207 ARM: dts: msm: audio support for sdm630 qrd
Add support for required node for audio of sdm630 qrd
with internal codec.

CRs-Fixed: 2005884
Change-Id: Ia6749d8dcc36910212f7a4f755e7e0620b43da1c
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-09 05:04:42 -08:00
Deepak Kumar
fbecfd709f ARM: dts: msm: Enable midframe sampling timer on SDM660
This change enables midframe sampling timer which samples
the GPU power stats if the command batch expiry takes longer
than the threshold set by KGSL_GOVERNOR_CALL_INTERVAL. This
will help the use cases where long running command batches
were delaying GPU DCVS decision for increasing the frequency.

Change-Id: I08ec8f3389c2140e1205096abc2c01f2d3882abc
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-03-09 18:22:07 +05:30
Maya Erez
6027f9bf74 wil6210: protect against sporadic interrupt during suspend flow
During the suspend flow, wil6210 HW can send sporadic interrupts,
while PCIe bus is not operational.
To prevent that, keep the interrupts disabled during the suspend
flow and re-enable them only after PCIe enablement in resume.

Change-Id: I205f8cdb89c4f64ecac4ca3422767bfc47ec3d33
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-03-09 14:39:57 +02:00
Rupesh Tatiya
b952d5f3ca ARM: dts: msm: set pm660 L6/L9/L19 to not follow HW_EN1 for wcn3990
On sdm630, There is leakage of ~300-400uA current in Bluetooth page scan
scenarios when L6/L9/L19 follow HW_EN1.

Change-Id: Ia041245f4c3cb96373f53dd9c11e2e1249da96ae
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2017-03-09 17:44:43 +05:30
Shantanu Jain
401dce7cfd input: touchscreen: fix buffer overflow issue in synaptics driver
Fix buffer overflow issue in synaptics touch driver while copying
the contents of "strptr" into "firmware_id". This code change is
meant to fix the same.

Change-Id: I8ea96af558eff540a37fb8e7da730c74502622aa
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2017-03-09 16:19:20 +05:30
Linux Build Service Account
647076b679 Merge "msm: mdss: update check bw check for ab/ib" 2017-03-09 02:05:04 -08:00
Linux Build Service Account
9b2a9f7ceb Merge "icnss: Remove WARN_ON" 2017-03-09 02:05:03 -08:00
Linux Build Service Account
3fd9920718 Merge "ARM: dts: msm: enable dynamic fps for nt35597 truly panel on sdm660" 2017-03-09 02:05:02 -08:00
Linux Build Service Account
413df00c0d Merge "msm: mdss: add HW recommended delay for dfps feature." 2017-03-09 02:05:01 -08:00
Linux Build Service Account
6b2024dad5 Merge "tracing: Free saved_tgids memory in free_saved_cmdlines_buffer" 2017-03-09 02:05:00 -08:00
Linux Build Service Account
f267f30d30 Merge "usb: gadget: f_gsi: Fix NULL ptr dereference" 2017-03-09 02:05:00 -08:00
Linux Build Service Account
20f778e413 Merge "qseecom: return app_id correctly when looking up and loading app" 2017-03-09 02:04:59 -08:00
Linux Build Service Account
c7692d37b0 Merge "usb: gadget: f_fs: Fix out-of-bounds string access" 2017-03-09 02:04:58 -08:00
Linux Build Service Account
3016067a56 Merge "msm: qpnp-haptic: Disable auto resonance on LRA frequency deviation" 2017-03-09 02:04:57 -08:00
Linux Build Service Account
8ca3301f72 Merge "ARM: dts: msm: set pm660 L6/L9/L19 to not follow HW_EN1 for wcn3990" 2017-03-09 02:04:57 -08:00
Linux Build Service Account
5b5c261ad2 Merge "ARM: dts: msm: No need to disable CXIP LM feature in KTM for sdm630" 2017-03-09 02:04:56 -08:00
Linux Build Service Account
515ac74e00 Merge "clk: qcom: Fix null pointer exception" 2017-03-09 02:04:55 -08:00
Amit Nischal
ea152c5c18 ARM: dts: msm: Use aggre2_noc voter clock handle for SDM660/630
From bus driver, use aggre2_noc voter clock handle for voting
instead of using direct aggre2_noc clock, as this clock
can be enabled/disabled/set_rate from multiple clients.

Change-Id: I247f12c90b9b9900ebd9785454e8bd2b9dc13b96
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-03-09 00:46:05 -08:00
Hareesh Gundu
6439032d0b msm: kgsl: Improve GPU soft fault detection
Following changes been made to improve soft fault detection,
which will fix un clocked register access in dispatcher_do_fault()
and incorrect declaration of GPU soft fault.
i) Stop fault timer before entering to NAP state
ii) Don’t start fault timer if the dispatcher inflight count is zero
iii) Add ringbuffer empty check in _isidle()
iv)  Add device state check in dispatcher_do_fault()

CRs-Fixed: 2012731
Change-Id: I5ce498029f389eeeb428b4ac7fb07afd84d5764c
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2017-03-09 13:07:07 +05:30
Veerabhadrarao Badiganti
16b307790b mmc: host: cmdq-hci-ice: Clear ICE configuration once request is done
Clear ICE configuration once cmdq request processing is done.
This ensures that the key information is cleared by ICE driver.
This call is optional for FDE but required for FBE.

Change-Id: I231ca849aa34c156baa45fceae95debf46dd57f0
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-03-08 23:05:15 -08:00
Veerabhadrarao Badiganti
f2d322f387 mmc: host: sdhci-msm-ice: Support for clearing ice configuration
Adding support for clearing ice configuration.
Once mmc request processing is completed, mmc driver has to
call config_end to ensure key information is cleared by ICE
driver. This call is optional for FDE but required for FBE.

Change-Id: I8c225deda782528a7f220f7d1f81c6240caca1ae
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-03-09 12:30:36 +05:30
Ankit Sharma
3dde7b3e01 msm: qpnp-haptic: Add support for haptics on PM660
Update the driver to support PM660. PM660 add dedicated
register for auto-resonance control and a few other changes
to haptics configuration.

CRs-Fixed: 2016588
Change-Id: Ia9d65bc0a1169b5cba1c122d50d49c8102ac79f5
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
2017-03-09 12:09:24 +05:30
Ashay Jaiswal
ff509cf767 qcom: smb-lib: fix adapter allowance for PM660
Update the adapter allowance configuration from 5_TO_9V
continuous mode to 5_OR_9V discrete mode, this allows
hardware to detect Over-voltage for 5V adapter.

CRs-Fixed: 1104289
Change-Id: Ie43febb92e5a6e52ce17779d8cea91cbdd2011cb
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-03-09 10:59:19 +05:30
Ramesh V
8739af7361 msm: camera: isp: support LPM on dualcamera
Handle LPM when one of the session goes to sleep.
when LPM enable unvote ab/ib of inative session and
vice versa.

Change-Id: I72ab333b24d7ad5ae4deafa758e7e2d92f3cc9d2
Signed-off-by: Ramesh V <ramev@codeaurora.org>
2017-03-09 10:50:00 +05:30
Xiaogang Cui
8a85954aec ARM: dts: msm: add support for apq8998 QRD SKUK HDK board
Add initial device trees for aqp8998 QRD SKUK HDK board.

Change-Id: I6b457de0a5e7680ee052f206aeb88d45639ab3bb
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
2017-03-08 19:28:27 -08:00
Subbaraman Narayanamurthy
b8b4bc2271 defconfig: sdm660: Enable QPNP_MISC driver
QPNP_MISC driver provides support to read the registers or
support functions required on certain PMICs. Enable it.

Change-Id: Ib496506e60dc94dec1b2292bf0e6fd01583e2f75
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-08 17:25:00 -08:00
Omprakash Dhyade
7005c6eec7 tracing: Free saved_tgids memory in free_saved_cmdlines_buffer
saved_tgids memory was not freed in free_saved_cmdlines_buffer
which can cause memory-leak when /d/tracing/saved_cmdlines_size
node value is changed. Fix it by freeing saved_tgids
in free_saved_cmdlines_buffer.

Change-Id: I006870c858b7306b7d9c840b7712061985dda310
Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org>
2017-03-08 16:06:31 -08:00
Linux Build Service Account
9bf700385d Merge "mmc: host: sdhci: Add new host_op for clearing ice configuration" 2017-03-08 15:47:28 -08:00
Linux Build Service Account
ac5d625313 Merge "ARM: dts: msm: Add kaslr offset IMEM entry for sdm630" 2017-03-08 15:47:26 -08:00
Linux Build Service Account
05da21ee3d Merge "ARM: dts: msm: enable SSC based sensors for QRD SDM630" 2017-03-08 15:47:25 -08:00