Commit graph

579929 commits

Author SHA1 Message Date
Yasir Malik
8ae62993fc crypto: msm: qce50: Prevent deadlock during timeout
Lock out interrupts during issuing dummy request in timeout to prevent from
a potential deadlock happening.

Change-Id: I986d8c36c839a1dee23761465ad331ffc31dd6ac
CRs-Fixed: 1008319
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Yasir Malik <ymalik@codeaurora.org>
2016-11-09 09:43:31 -08:00
Alan Kwong
54b03424a7 msm: sde: add buf_finish callback to clear last fd
Fd is tunneled using userptr memory type to v4l2 rotator
driver. Fd can assume the same value between multiple qbuf but
with the underlying mapping modified. However, v4l2 assumes that
if userptr of the same value are passed in, the underlying buffer
is the same and will bypass memory mapping callback. This will
cause problem for fd tunneling because the obsolete mapping is
used.

To ensure buffer mapping, add buf_finish callback to clear last
fd value before dequeuing buffer back to user client. This will
force the next queue buffer command to invoke memory mapping callback
since the incoming fd value is different from the reset value.

CRs-Fixed: 1084634
Change-Id: I932a58fc633918b151959fcbe320668a87dbc49c
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2016-11-09 08:22:13 -08:00
Santhosh Punugu
4dbfc38081 msm: kgsl: add egl_surface/egl_image usage count in debugfs
Add more information to the debugfs kgsl/proc/<pid>/mem which
will allow memtrack to correctly assign allocated ion buffer
memory to a process. The additional columns show the number of
kgsl_mem_entries which have a usage of egl_image (or) egl_surface.

When attaching a dma_buf to kgsl, use the dma_buf_attachment's
(void*)priv to point back to the kgsl_mem_entry. This makes it
possible to iterate through all attachments on a dma_buf and
gather statistics from each kgsl_mem_entry associated with the
dma_buf.

CRs-Fixed: 1073673
Change-Id: I1ef3bd0da3f74fa41074021699b2226c48bde9c3
Signed-off-by: Santhosh Punugu <spunug@codeaurora.org>
2016-11-09 21:37:54 +05:30
Venkatesh Yadav Abbarapu
12b2a543d3 pinctrl: qcom: Add all the gpios to pingroups for msmfalcon
Any driver can use gpio as function, so adding all the gpios
to pingroups.

Change-Id: I4949954c7b546030a4a94c74bb68c2eb4f6d4718
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2016-11-09 16:58:50 +05:30
Ashay Jaiswal
110f023c2c ARM: dts: msm: switch to RPM control for regulators on MSMFALCON
Convert most of the pmfalcon stub-regulator devices to a
rpm-smd-regulator devices. This ensures that requests made for
these regulators are aggregated by the RPM processor along with
the requests from other processors.
Also, add a dummy gfx_vreg_corner regulator until the CPR node
is added.

While at it, rename all regulators names and add pm/pm2 prefix
to differentiate between regulators on multiple supported PMICs.
Also update all clients with new regulator phandles.

CRs-Fixed: 1077493
Change-Id: I95b17de5bf17b62096d2c9d60633b6b30768752a
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-11-09 13:06:57 +05:30
Asutosh Das
03d619d6d4 Revert "scsi: ufs: stub UFS shutdown handler"
This reverts commit aa484ff4b6 ("scsi: ufs: stub UFS shutdown
handler").
This is reverted so as to enable PON (Power-off Notification).
PON would notify the ufs device of the incoming power-down
so that the device can prepare for the same before
the power to the device is cut.

CRs-fixed: 941978
Change-Id: Idee8691d769218d7e732c9b7f936a2c40946b239
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2016-11-09 12:17:13 +05:30
Meng Wang
8164972a6c ASoC: msm: q6dspv2: fix potentional information leak
The heap buffer pointed to out_buffer and in_buffer are allocated
but uninitlalized. It may cause information leak.
Change to kzalloc instead of kmalloc when allocating kernel buffers
to avoid information leak.

CRs-Fixed: 1087020
Change-Id: I6f9b7a630158355a7f920dcf9cfffe537b1c6a85
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-11-09 11:15:27 +08:00
Ajay Singh Parmar
c707334396 msm: mdss: dp: select pin assignment D for multi-functionality
If a protocol converter or HUB or a dongle supports multi-function
to support both displayport and USB simultaneously and exposes
pin assignment D as supported one, prefer pin assignment D to be
configured on the ports.

Change-Id: Ia69987c0e15ec5f15a07ca3a0e44174ab6e5feb9
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-11-08 17:31:14 -08:00
Chandan Uddaraju
720d736d5b mdss: display-port: fix link rate calculation
The current generated link rate in software doesn't
consider fractional values. As a result, for few of
the boundary cases, the calculated link rate is not
correct. Fix this by checking for any fractional values.

Change-Id: I3366b70c7e5bfa2a240aa24f1e0c70b54d686721
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-11-08 17:01:40 -08:00
Chandan Uddaraju
fa8b3ea588 clk: msm: mdss: fix divider configuration for 5.4 Ghz link rate
Update the FRAC_START3 register settings for 5.4 GHz link
rate in Display-Port PLL driver. This is needed for accurate
link and pixel clock values.

Change-Id: Ib6a0ee570fe2d5a1d43296e792a354ca25b1d82c
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-11-08 17:01:39 -08:00
Chandan Uddaraju
85700def84 mdss: display-port: add support to configure stream attributes
Update the MISC settings register according the color
depth and format. Update the MVID and NVID registers
using the M and N values used to configuring
the DP pixel clock.

Change-Id: I67e08d3491fbb7c0960c463cc8f979238b89d818
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-11-08 17:00:24 -08:00
Hemant Kumar
ab1ac1288b usb: host: xhci: Replace msleep with usleep_range
Since usleep_range provides better accuracy in
comparison to msleep. This helps in reducing the
latency of host bus resume.

Change-Id: Id22104b9e5b63153731df9eb55759de9a86128c6
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-08 15:47:53 -08:00
Harshdeep Dhatt
54162545a1 ARM: dts: msm: Enable gpu-quirk-disable-lmloadkill for msmcobalt
A540v1 and v2 both need to enable the LMLOADKILL quirk for the
GPU.

CRs-Fixed: 1036444
Change-Id: I84243578a1ef2f9948f0c9a8c1c00dc6a31eb579
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-11-08 15:15:31 -07:00
Harshdeep Dhatt
00e0494320 msm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill
Add a quirk to set LMLOADKILLDIS bit in A5XX_VPC_DBG_ECO_CNTL
and clear LMLOADKILLDIS bit in A5XX_HLSQ_DBG_ECO_CNTL registers.
This is done to avoid a VPC corner case with local memory(LM)
which leads to corrupt internal state on A540 and its derivatives.

CRs-Fixed: 1036444
Change-Id: I31008433f19924bb35560d3e35fe0665e73751d5
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-11-08 15:15:25 -07:00
Sunil Paidimarri
41d38586f9 msm: ipa: Add support to configure WAN RX desc size
Embedded tputs depend on WAN RX desc size, but, every target
has its own limitations of memory and embedded tputs goals.
So, add parameter to configure WAN RX desc size through device tree.

Change-Id: I28c550058dd990c9c8cd368a2677097c7f057ccd
CRs-Fixed: 1081543
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-11-08 13:48:42 -08:00
Rajesh Bondugula
012e37bf91 msm: camera: sensor: Validate i2c_frq_mode in msm_cci_get_clk_rates
i2c_freq_mode in msm_cci_get_clk_rates is populated from userspace.
Validate to make sure it has valid values. If a large number is sent
from userspace to avoid a buffer over read.

Crs-Fixed: 1086833
Change-Id: I237f60dca3e3dbad4e6188bf047cf7ec5163d159
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
2016-11-08 13:23:41 -08:00
Subbaraman Narayanamurthy
bc17be09da fg-memif: update IMA error handling and clear sequence
Based on the hardware documentation, update the IMA error
handling and clear sequence. In addition, check for DMA errors
and clear it before SRAM transactions begin. Also, check for IMA
hardware status to run the IMA clear sequence during ima_init and
not just based on IMA exception status alone. This is to help
with FG SRAM access to resume again properly in case of an error
encountered.

Change-Id: I583fa51599a1cbbd029cb45c075429730d2e071b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-08 12:29:05 -08:00
Karthikeyan Periasamy
4a1e5a36de msm: vidc: increase timeout value for hw response and power collapse
When running concurrent video session, there are some possibilities
that CPU may take more than a second  to schedule hfi work handler.
In those cases, one of the threads which is waiting for the response
is timing-out.

Increase hw response timeout and power collapse timeout will give
more time for hfi work handler to be scheduled and process the response
messages.

CRs-Fixed: 1086284
Change-Id: I768ef6c941c791af5a45d846fa81d810b831efa5
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
2016-11-08 12:28:54 -08:00
Ingrid Gallardo
d8bd53c2ae msm: mdss: move warnings and errors out of mdss spinlock
Current display driver prints warnings and errors within
the mdss spinlock. This causes in random cases to hold the
spinlock for long time when multiple errors are printed;
Fix this by moving the print of warning and error messages
outside of the spinlock.

Change-Id: I09359b528b4742f72a76690930f3d0ed90bb2caa
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-11-08 12:28:04 -08:00
Subhash Jadavani
057d86887c scsi: ufs-qcom: update clock scaling sequence
Update UFS clock frequency scaling sequence as specified in updated
Hardware Programming Guide.

Change-Id: Ief5df61d91fbd765c595533b3380a602a2540e5e
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-08 12:09:54 -08:00
Linux Build Service Account
4a91ea36cb Merge "ARM: dts: msm: Add stub regulator devices for msmtriton" 2016-11-08 11:19:15 -08:00
Linux Build Service Account
684c01af9a Merge "ARM64: config: Add VPN support" 2016-11-08 11:19:14 -08:00
Linux Build Service Account
f83f0cdbd0 Merge "ARM: dts: msm: Add QRD interposer dts file for msmcobalt" 2016-11-08 11:19:13 -08:00
Linux Build Service Account
bd04f6926f Merge "qpnp-fg-gen3: support configuring ESR FCC based on charging status" 2016-11-08 11:19:11 -08:00
Linux Build Service Account
27df8e4425 Merge "ASoC: wcd934x: Fix fake button press for headset insertion" 2016-11-08 11:19:09 -08:00
Linux Build Service Account
9d893fc136 Merge "ASoC: wcd9335: Fix AANC click and pop in voice call" 2016-11-08 11:19:09 -08:00
Linux Build Service Account
087bcf1fcf Merge "ASoC: wcd934x: Fix AANC click and pop in voice call" 2016-11-08 11:19:08 -08:00
Linux Build Service Account
a97a6be4de Merge "sched: Ensure watchdog is enabled before disabling" 2016-11-08 11:19:07 -08:00
Linux Build Service Account
5a1e6a8dbf Merge "sched/core: Keep rq online after cpu isolation" 2016-11-08 11:19:06 -08:00
Linux Build Service Account
b820fbcdd2 Merge "sched: Fix race condition with active balance" 2016-11-08 11:19:06 -08:00
Linux Build Service Account
b8f4f2de0f Merge "qcom-charger: Add batch register access support for CC2 removal" 2016-11-08 11:19:05 -08:00
Linux Build Service Account
135b2c6882 Merge "msm: kgsl: Add speed bin read capabilities for A306a GPU" 2016-11-08 11:19:04 -08:00
Linux Build Service Account
e0a287f464 Merge "ARM: dts: msm: Add remote debugger device configuration for msmcobalt" 2016-11-08 11:19:03 -08:00
Linux Build Service Account
e733abf82b Merge "ANDROID: binder: Clear binder and cookie when setting handle in flat binder struct" 2016-11-08 11:19:02 -08:00
Linux Build Service Account
d64b4912b6 Merge "qpnp-smb2: fix reverse boost when input is removed" 2016-11-08 11:19:01 -08:00
Linux Build Service Account
f87432168b Merge "sound: usb: Add support to handle QMI client disconnect" 2016-11-08 11:18:59 -08:00
Linux Build Service Account
b6d823c863 Merge "coresight: tmc: fix mutex release" 2016-11-08 11:18:58 -08:00
Linux Build Service Account
97f85929b6 Merge "ASoC: wcd934x: fix MAD enable sequence for ADC2" 2016-11-08 11:18:58 -08:00
Linux Build Service Account
33938e1252 Merge "msm: soc: Avoid calling bus clear pdata" 2016-11-08 11:18:57 -08:00
Linux Build Service Account
74f298e6d1 Merge "msm: cpp: De-init bandwidth manager during error conditions" 2016-11-08 11:18:56 -08:00
Linux Build Service Account
3b757bec28 Merge "msm: cpp: Vote for nominal ahb clock while loading firmware" 2016-11-08 11:18:55 -08:00
Linux Build Service Account
e4d2402bc9 Merge "ARM: dts: msm: Enable VDD_APC CPR aging for msmcobalt v2" 2016-11-08 11:18:53 -08:00
Linux Build Service Account
34c43886b9 Merge "ARM: dts: msm: update VDD_APC CPR settings for msmcobalt" 2016-11-08 11:18:52 -08:00
Linux Build Service Account
dbf9862073 Merge "Revert "defconfig: msm64: msm: Compile vidc driver as LKM"" 2016-11-08 11:18:51 -08:00
Linux Build Service Account
1e46b9f6e9 Merge "gpio: qpnp-pin: Fix reading the GPIO mode for GPIO_LV_MV subtype" 2016-11-08 11:18:49 -08:00
Linux Build Service Account
3b37b07413 Merge "msm: kgsl: Enable limits management on A540v2" 2016-11-08 11:18:48 -08:00
Linux Build Service Account
e77fc25751 Merge "msm: vidc: Initialize the dcvs load during perf mode switch" 2016-11-08 11:18:47 -08:00
Linux Build Service Account
3b1bca8355 Merge "defconfig: msm: Add MSMTRITON in msmfalcon defconfig" 2016-11-08 11:18:46 -08:00
Linux Build Service Account
f78c7df422 Merge "crypto: msm: enable hw crypto driver for msmtriton" 2016-11-08 11:18:45 -08:00
Linux Build Service Account
3e792d2915 Merge "arm: qcom: Add support for msmtriton chipset" 2016-11-08 11:18:44 -08:00