Commit graph

573633 commits

Author SHA1 Message Date
Gaurav Singhal
8e0e68f525 NFC: Set enable gpio to low
If ese gpio is not present on target, and we disable
NFC then enable gpio should be set to LOW.

Negative gpio value is invalid case, we should avoid
gpio free for error scenario.

Change-Id: I87c890bbb66ee683129f062a2aa4c8d95d5c93ee
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
2016-08-16 15:33:20 +05:30
Yongqin Liu
7347d84f27 quick selinux support for tracefs
Here is just the quick fix for tracefs with selinux.
just add tracefs to the list of whitelisted filesystem
types in selinux_is_sblabel_mnt(), but the right fix would be to
generalize this logic as described in the last item on the todo list,
https://bitbucket.org/seandroid/wiki/wiki/ToDo

CRs-Fixed: 1054492
Change-Id: I2aa803ccffbcd2802a7287514da7648e6b364157
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
(cherry picked from commit 3a343a1540)
Signed-off-by: Biswajit Paul <biswajitpaul@codeaurora.org>
2016-08-15 23:45:11 -07:00
Maya Erez
f842d65461 wil6210: fix HALP handling in case of HALP vote time-out
In case HALP vote times out, we need to mask the HALP IRQ, as done
in case the interrupt is received, as this interrupt should be
set until completion of the low latency operation.

Change-Id: I2b514bd161b584b9e71d0e33db1f66dfbd06bb9c
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-08-16 09:06:00 +03:00
Hemant Kumar
25f4705f63 ARM: msmcortex_defconfig: enable vendor device specific HID support
This change enables plantronics usb head set specific HID driver
support.

Change-Id: I5b25a99269d3374bc4bc58c734bb64f0418f08f8
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-15 18:17:15 -07:00
Puja Gupta
4fe225dbd9 soc: qcom: Fix compilation warning/error
Fix couple of compilation error for service-locator when Kconfig option
is not enabled.

CRs-Fixed: 1048345
Change-Id: I5eb1318d1e3a62619869033b36479c4e68f1602f
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-08-15 17:25:17 -07:00
Aravind Venkateswaran
d8000fe740 msm: mdss: update voltage level configuration for CX supply
Read the minimum and the maximum voltage levels for the CX supply
from the device tree and use those values to program the CX supply.
This allows for flexibility in configuring the levels across
multiple targets.

CRs-Fixed: 1053687
Change-Id: Ib704bfa6c6ca9fc3d90ab76a2e4aef02dc48822a
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-08-15 17:17:31 -07:00
Chandan Uddaraju
b62bc857c7 mdss: display-port: add support for edid read
Add support to read EDID data using the aux channel.
Remove the stored EDID buffer and use the retrieved
EDID data to initialize the DP controller.

CRs-Fixed: 1009284
Change-Id: I93b43be6c2ca50796148898f5210c5b4d13b6f24
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-08-15 17:07:41 -07:00
Tatenda Chipeperekwa
b6b15c3385 msm: mdss: validate codec operations during HPD process
Validate the codec operations during the HPD process to ensure
that there is no potential null deference. The codec operations
can be invalid if there is no codec registered with the external
display module.

CRs-Fixed: 1009284
Change-Id: I4aa64724a912ae1df07d382d3eb346424b50cf36
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-08-15 16:29:41 -07:00
Osvaldo Banuelos
6a39c66211 ARM: dts: msm: add support for msmcobalt v2 CPU clock frequency plan
Define the Silver and Gold cluster OSM look up tables
with the frequencies and data required to support Silver
cluster scaling up to 1.9 GHz and Gold cluster to
2.5 GHz. Also, update the supported frequencies in the msm
and devfreq CPUfreq devices.

CRs-Fixed: 1051857
Change-Id: Id9e9d37c6c0ac5c3ba6f566377bf86dbfe8ccabb
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-08-15 16:11:54 -07:00
Osvaldo Banuelos
2278d6ca99 ARM: dts: msm: Add VDD_APC0/APC1 CPR data for msmcobalt v2
Define the CPR corner information for the VDD_APC0 and
VDD_APC1 devices of the msmcobalt v2 chipset. This enables
CPRh closed-loop operation to reduce power consumption by
the voltage rails powering the Silver and Gold clusters.

CRs-Fixed: 1051863
Change-Id: I40b24c00d2c8ec767ba67951b16e7a3c7cdeb511
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-08-15 16:00:00 -07:00
Osvaldo Banuelos
260f061e65 regulator: cprh-kbss-regulator: support per-rev fuse reference voltages
Add support for per-chip revision open-loop fuse reference
voltages. This allows for the correct calculation of open-loop
voltages across msmcobalt chip revisions where the fused
reference voltages vary. Lastly, update the compatible string for
existing msmcobalt v1 CPR APC devices.

CRs-Fixed: 1051863
Change-Id: Icff31b265b49d087005ac0e58d7783ff2588548c
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-08-15 15:59:32 -07:00
Ajay Singh Parmar
85b28aea37 msm: mdss: add support for hdcp 1.x interrupt handler
Make hdcp 1.x interrupt handling generic for any supported interface.
Add Display-Port interrupt related data and handle interrupts in
ISR. Do this dynamically based on which interface is connected like
HDMI or DP.

Change-Id: I8be206dbc53fd7c757f244dc544241f1d8e1dd1c
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-08-15 15:34:00 -07:00
Ajay Singh Parmar
13c3a0f640 msm: mdss: add aux read/write support for hdcp
Hookup sink's aux addresses for data read and write to be used
for hdcp 1.3 authentication so that hdcp 1.3 state machine can
dynamically select sink addresses for different interfaces.

Change-Id: I4ef01c7bdb9af770ea3014bd6e63d3c17b0cfa47
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-08-15 15:33:15 -07:00
Ajay Singh Parmar
deb1239328 msm: mdss: add display-port hdcp's register set
Add HDCP 1.x related registers to be hooked up with
hdcp 1.x state machine so that hdcp 1.x can be programmed
to work for DP.

Change-Id: I16bf5ecbc237294e99ce6710c6b759e3346011a5
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-08-15 15:32:49 -07:00
Ajay Singh Parmar
a50e709be4 msm: mdss: generalize the hdcp 1.x registers programming
Create a register set for a given interface and make
hdcp state machine independent of the interface being
used to support multiple interfaces with different
register sets.

Change-Id: I62738697e91549fe44ef09b0a3aa905b37c00389
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-08-15 15:32:09 -07:00
Satya Durga Srinivasu Prabhala
c14c8b7e55 Revert "arm64: fpsimd: Enable FP(floating-point) settings for msm8996"
This reverts commit 2dae58c4af ("arm64: fpsimd: Enable
FP(floating-point) settings for msm8996").

Feature is not applicable to msmcobalt and only applicable
to MSM8996.

CRs-Fixed: 1054373
Change-Id: I8f21787f0a45dd9f7be8986b4f332f498add3203
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-08-15 15:10:42 -07:00
Satya Durga Srinivasu Prabhala
0a3bee11eb Revert "arm64: fpsimd: add support to enable/disable fpsimd_settings."
This reverts commit 1f7d497b0a ("arm64: fpsimd: add support to
enable/disable fpsimd_settings.").

Feature is not applicable to msmcobalt and only applicable
to MSM8996.

CRs-Fixed: 1054373
Change-Id: I8d11c596d61f0435f4ee2d1007f4903843650aed
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-08-15 15:10:12 -07:00
Satya Durga Srinivasu Prabhala
787ddf0e6e Revert "defconfig: arm64: Enable FP settings for msm8996"
This reverts commit 8df2feee09 ("defconfig: arm64: Enable
FP settings for msm8996").

Feature is not applicable to msmcobalt and only applicable
to MSM8996.

CRs-Fixed: 1054373
Change-Id: I0d2c9bc8f27c2ac938754ab97b4bdc7feb6325b1
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-08-15 15:09:24 -07:00
Satya Durga Srinivasu Prabhala
4e6dcec1bd Revert "arm64: Add support for app specific settings"
This reverts commit 7ab05c20ad ("arm64: Add support
for app specific settings").

Feature is not applicable to msmcobalt and only applicable
to MSM8996.

CRs-Fixed: 1054373
Change-Id: I12d3a22362b965c7d302976c83ab0e757c98d3c6
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-08-15 15:08:53 -07:00
Satya Durga Srinivasu Prabhala
fc3f95def2 Revert "defconfig: arm64: Enable app specific setting on MSM8996"
This reverts commit fa5a089eb6 ("defconfig: arm64: Enable app
specific setting on MSM8996").

Feature is not applicable to msmcobalt and only applicable
to MSM8996.

CRs-Fixed: 1054373
Change-Id: I9464305f6cac6aedb3e5763979dba4cba92e050b
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-08-15 15:04:24 -07:00
Banajit Goswami
fb39a8c3d7 ASoC: msmcobalt: remove custom PM QoS for Low-latency playback
For msmcobalt, it was found that, for low-latency audio
playback, audio driver requests for a PM QoS with 10% of
the period size. This value is too small for CPU to
come back up from L2 PC, and hence CPU never enters into
L2 PC, which increased power consumption.
ALSA core framework already has a way to vote on behalf of
client driver, with a latency value of 75% of period size.
To enable CPU to enter L2 PC, fall back to use ALSA
core provided PM QoS of 75% for low-latency audio playback
instead of the custom PM QoS request.

CRs-Fixed: 1048743
Change-Id: Icff3c15a4f1d26f43274465063259f06737fe495
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2016-08-15 13:48:34 -07:00
Runmin Wang
b865ccbb91 defconfig: msm: enable GIC_V3_ACL access control on msmcobalt
Renable GIC_V3_ACL on msmcobalt-perf defconfig to disable ITS
support.

CRs-Fixed: 1054447
Change-Id: Ia0bd3026025c1215c595219a19cc164bc3758363
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-08-15 13:41:05 -07:00
Yuanyuan Liu
1efe85c3ea icnss: Vote aggre2_noc_clk through bus bandwidth framework
ICNSS uses SMMU which requires aggre2_noc_clk. Hence vote
on aggre2noc clock through bus bandwidth.

CRs-Fixed: 1053538
Change-Id: I5e300cf81bd8b653e9a5611ed60b2b770e94a863
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-08-15 12:27:12 -07:00
Carter Cooper
aa29f6267f msm: kgsl: Add sparse memory support
Add support to allocate/reserve a virtual address range without
physically backing. Add support to allocate physically backing memory
without assigning it a virtual address. Add support to unite
the two forementioned allocations together. Add support to
divorce them from one another. Add support to let their kids
do cache operations as they see fit.

Create a 'dummy' page that is used to back virtual allocations
that are not yet backed by physical memory.

CRs-Fixed: 1046456
Change-Id: Ifaa687b036eeab22ab4cf0238abdfbe7b2311ed3
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
2016-08-15 10:23:46 -06:00
Taniya Das
81c61c7d71 clk: msm: Add memory barrier after reset assert/deassert
Memory barrier is required after the reset is asserted and de-asserted, so
add the same.

Change-Id: I17532984f546be97ba9862c07dd694b3fdd592fb
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-08-15 18:32:50 +05:30
Vidyakumar Athota
fba97387be ASoC: soundwire: fix out of boundary access issues
In soundwire read/write commands, register value is defined
as 8 bit but it is accessed through 32 bit pointer which
may cause out of boundary memory access. Fix this issue by
typecast appropriately.

BUG: KASan: out of bounds access in swrm_read+0x1dc/0x30c at
addr ffffffc089871880
Write of size 4 by task kworker/u8:5/236
==addr ffffffc089871880
[<ffffffc00081d174>] swrm_read+0x1d8/0x30c
[<ffffffc000819808>] swr_read+0x5c/0x74
[<ffffffc000741e58>] regmap_swr_read+0xd8/0x11c
[<ffffffc00073a350>] _regmap_raw_read+0x210/0x314
[<ffffffc00073a4b0>] _regmap_bus_read+0x5c/0xb4
[<ffffffc000739548>] _regmap_read+0xe0/0x1ec
[<ffffffc0007396b8>] regmap_read+0x64/0xa8
[<ffffffc000dc9dd4>] snd_soc_component_read+0x34/0x70
[<ffffffc000dc9f44>] snd_soc_read+0x6c/0x94
Memory state around the buggy address:
 ffffffc089871780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffffffc089871800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc

Change-Id: I3c56dffb4ca197e8fc23d54a44282a60254dd001
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-08-14 23:06:47 -07:00
Banajit Goswami
73dbd72c4d ARM: dts: msm: define pinctrl for MI2S and PCM devices for msmcobalt
msmcobalt target supports 4 MI2S and 4 PCM ports. Add pin-control
definitions for these ports.

Change-Id: I632c1dc7136a49c07b587a03181b5b4da42bdd4b
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2016-08-14 22:17:39 -07:00
Linux Build Service Account
2e45ea7281 Merge "ARM: dts: msm: add MSM External display node for msmcobalt" 2016-08-13 23:13:24 -07:00
Linux Build Service Account
39c747dfde Merge "msm: audio: soc: add null checks for hdmi ops" 2016-08-13 23:13:24 -07:00
Linux Build Service Account
f71490ad6f Merge "ARM: dts: msm: update pinctrl for touch gpios in msmcobalt" 2016-08-13 23:13:23 -07:00
Linux Build Service Account
47bd5a5b0c Merge "ARM: dts: msm: Update USB bus voting to allow SVS on msmcobalt" 2016-08-13 23:13:22 -07:00
Linux Build Service Account
5096eccb28 Merge "iommu/arm-smmu: support static context banks" 2016-08-13 23:13:21 -07:00
Linux Build Service Account
274f74b309 Merge "arm64: defconfig: msm: enable CPUSETS" 2016-08-13 23:13:20 -07:00
Linux Build Service Account
05feb03895 Merge "ARM: dts: msm: Modify csiphy timer clock rate on msmcobalt" 2016-08-13 23:13:19 -07:00
Linux Build Service Account
515b346c11 Merge "msm: camera: Add VAF active and suspend handles to eeprom node" 2016-08-13 23:13:18 -07:00
Linux Build Service Account
dfcec04e27 Merge "ARM: dts: msm: Fix qsee_ipc_irq_bridge IRQ clear mask for msmcobalt" 2016-08-13 23:13:16 -07:00
Linux Build Service Account
ac949b0d87 Merge "ARM: dts: msm: Remove clocks listed under the UFS GDSC node" 2016-08-13 23:13:15 -07:00
Linux Build Service Account
f2693fff2e Merge "msm: kgsl: update GPU busy statistics" 2016-08-13 23:13:14 -07:00
Linux Build Service Account
77e4349ae1 Merge "msm: mdss: fix dma fifo read watermark to 15/16 full" 2016-08-13 23:13:12 -07:00
Linux Build Service Account
0ec8200353 Merge "ARM: dts: msm: add jdi 1080p video mode panel support for msmcobalt" 2016-08-13 23:13:11 -07:00
Linux Build Service Account
98cdd5294e Merge "arm: dts: msm: Added missing features for HW Encryption support" 2016-08-13 23:13:10 -07:00
Linux Build Service Account
101be18f7b Merge "ice: added missing register dump in case of error for ICE 3.0" 2016-08-13 23:13:10 -07:00
Linux Build Service Account
4c9e200e82 Merge "ARM: dts: msm: Update the interrupt list for msmcobalt" 2016-08-13 23:13:09 -07:00
Linux Build Service Account
d736395565 Merge "qcom-charger: smblib: update batt capacity status from bms" 2016-08-13 23:13:08 -07:00
Linux Build Service Account
6ece03e7b9 Merge "ASoC: wcd-mbhc: enable micbias for special headset" 2016-08-13 23:13:08 -07:00
Linux Build Service Account
76a2edf258 Merge "ARM: dts: msm: Enable thermal mitigation for msmcobalt charger" 2016-08-13 23:13:07 -07:00
Linux Build Service Account
f4b1836237 Merge "qcom-charger: smblib: update ICL votings in parallel charging" 2016-08-13 23:13:06 -07:00
Linux Build Service Account
9d8e34f721 Merge "defconfig: msmcortex: Enable Seemp Log driver" 2016-08-13 23:13:06 -07:00
Linux Build Service Account
ed4b331fe7 Merge "ASoC: wcd9335: Update the Lineout path register configuration" 2016-08-13 23:13:04 -07:00
Linux Build Service Account
fb6752ab65 Merge "ASoC: wcd: change classh settings as per impedance value" 2016-08-13 23:13:04 -07:00