Commit graph

583836 commits

Author SHA1 Message Date
Dilip Kota
97426ed6d5 devfreq_spdm: Handle spurious interrupts during bootup
Terminate the interrupts triggered before the intitalisation
itself.

Change-Id: I7c005134ecbdae38b58e4312f9e294f5b59c2510
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-03-28 02:02:34 -07:00
David Collins
af74638ad6 ARM: dts: msm: add speed bin 1 CPU clock boost frequency for msm8996pro
Update the frequency plan for the MSM8996-Pro CPU clocks in order
to include the new 1996.8 MHz power cluster boost frequency.

Change-Id: I289f5910d21bd0e97ceff39d6ca09ba8b5f2aea4
CRs-Fixed: 1010722
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-03-28 02:00:21 -07:00
Odelu Kukatla
c236a642c3 msm: msm_bus: fix the memory leak issue
Client name allocated dynamically during the registration
is not freed at the time of unregistration. This is
leading to memory leak issue. This patch fixes the issue
by freeing up the client name during unregistartion time.

Change-Id: I0fe75ce71fdf0ee9a1268d52ac244047cc3413d7
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-03-28 01:57:50 -07:00
Odelu Kukatla
fc49a00f1f msm: msm_bus: initialize the local variable
Initialize the local variable 'ret' which is returned
from the function.

Change-Id: Ie82e74ce55b622db924e353a6ea98323c7642fa6
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-03-28 01:55:01 -07:00
Alex Yakavenka
0cd8ae5ea9 can: Add firmware flashing support
Modifications are required to support new ioctls
and send them using messages over spi.

CRs-Fixed: 1025945
Change-Id: Ibc41a1f0a8a7d0bd929209069869ae65fba75c70
Signed-off-by: Alex Yakavenka <ayakav@codeaurora.org>
Signed-off-by: Bruce Wu <brucewu@codeaurora.org>
2017-03-28 15:09:35 +08:00
Tony Truong
40a081e38b msm: pcie: add the checking of userspace input length
Add the checking of the input length from userspace so kernel
space will not copy any content outside the input buffer.

Change-Id: I114ac005f5305d863bfc0d0fc2db7b5e6d683834
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-03-27 06:04:22 -07:00
Srivatsa Vaddagiri
2017b8a733 Merge "ARM: dts: msm: Add blsp2_qup2 to list of bypass wakeup interrupts for 8996" into dev/msm-4.4-8996au 2017-03-27 04:55:13 -07:00
Srivatsa Vaddagiri
53fc61a8d8 Merge "ARM: dts: msm: Update the interrupt list with camera irq" into dev/msm-4.4-8996au 2017-03-27 04:54:18 -07:00
Srivatsa Vaddagiri
1c6030169b Merge "ARM: msm: dts: Add camera interrupts as bypass for msm8996" into dev/msm-4.4-8996au 2017-03-27 04:53:34 -07:00
Srivatsa Vaddagiri
f63246188b Merge "ARM: dts: msm: Map MPM pins for DP&DM to hs_phy_irq for msm8996" into dev/msm-4.4-8996au 2017-03-27 04:51:49 -07:00
Srivatsa Vaddagiri
1f192a3faa Merge "leds: qpnp-flash: Fix Use-after-free(UAF) for debugfs" into dev/msm-4.4-8996au 2017-03-27 04:20:01 -07:00
Srivatsa Vaddagiri
5d73b258df Merge "net: rmnet_data: Add support to configure custom device name" into dev/msm-4.4-8996au 2017-03-27 04:18:03 -07:00
Srivatsa Vaddagiri
8a7668835a Merge "ARM: dts: msm: Push C4 with PSCI to 11.5ms for MSM8996" into dev/msm-4.4-8996au 2017-03-27 04:14:55 -07:00
Mohammed Khajapasha
bad940053a ARM: dts: msm: Add use_32bit_app_setting in bootargs for msm8996
Enable 32 bit app settings, using bootargs, for msm8996
and msm8996pro to set app specific settings.

Change-Id: I9537e8022fb550e94fcba21709572372d024a701
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
[ztu@codeaurora.org: Resolved conflicts]
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-27 03:10:01 -07:00
Imran Khan
93466ced5d arm64: Modify support for 32bit app specific settings
Change support for 32bit app specific settings. The
change made earlier was not correct for 8996pro devices
so correct it to include all variants of 8996.

Change-Id: Id6afad04ad316dd7a41743821b7cfd513db227e5
Signed-off-by: Imran Khan <kimran@codeaurora.org>
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-27 03:09:05 -07:00
Imran Khan
9d7f377c60 arm64: Add support for 32 bit app specific settings
Add support to enable app specific settings, whenever
a 32 bit application is running.

Change-Id: I0cf40e8ea6e3f9e62258a44ccdd959e9eae09d88
Signed-off-by: Imran Khan <kimran@codeaurora.org>
2017-03-27 03:07:55 -07:00
Zhiqiang Tu
bff1ef9f13 defconfig: arm64: Enable app specific setting for MSM8996 on automotive
Enable support for app specific setting on MSM8996. This
is required for providing an interface so that app specific
settings can be applied / cleared.

Change-Id: I2dc533aae99b3898db2d61f99c4c99877eb575d0
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-27 03:07:08 -07:00
Srivatsa Vaddagiri
856f969d44 Merge "arm64: Add support for app specific settings" into dev/msm-4.4-8996au 2017-03-27 03:06:00 -07:00
Sergio Frades Ruiz De Sola
e85928ef9c ethernet: device tree and defconfig changes for neutrino
This change is needed to initialize the power rails
and GPIO configuration for neutrino driver.
fix the conflict.

Change-Id: Ib2bb328c4e657232e75724a0cd9673a8d9b8ba06
CRs-Fixed: 1003103
Signed-off-by: Sergio Frades Ruiz De Sola <csfrade@codeaurora.org>
Signed-off-by: Zou Shunxiang <shunxian@codeaurora.org>
2017-03-27 02:59:53 -07:00
Maulik Shah
e15b1696c1 defconfig: msm: Enable config for SPM and Event timer
Enable L2 spm and event timer config.

Change-Id: I643797e3de5c43e6d111ea099b476c82c0f827c3
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-27 02:58:10 -07:00
Srivatsa Vaddagiri
53efa18c0d Merge "rh850: Add filters support" into dev/msm-4.4-8996au 2017-03-27 02:56:17 -07:00
Alex Yakavenka
3e12942fa7 rh850: Add filters support
Add data buffering and receive filters support
Resolve build failure by fixing code style
issue.

CRs-Fixed: 1013185
Change-Id: I926de382d6e813c288fb7e9388f42585a4ce4670
Signed-off-by: Alex Yakavenka <ayakav@codeaurora.org>
Signed-off-by: Zou Shunxiang <shunxian@codeaurora.org>
2017-03-27 02:41:35 -07:00
Sriharsha Allenki
5fe5778d71 arm: boot: dts: Fix incorrect IRQ numbers for MSM8996 ADP
The interrupt numbers in the usb3 node of MSM8996 ADP dtsi
file mismatches with the msm8996 SOC dt file. Hence fix by
removing all the hs_phy_irq and pwr_event_irq from usb3 node
in MSM8996 ADP dtsi file.

Add extcon phandle to support extcon based VBUS and ID detection
for MSM8996 Automotive kernel v4.4.
Move the pmic_id_irq to usb_detect label to support ID detection
using extcon framework. The interrupts cell of pmic_id_irq
requires 4 attributes according to the updated interrupt-cells
in spmi_bus node.

Change-Id: I4c77efa923ac1ae4a1f55a6729738e48852c7c15
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-03-27 10:40:21 +05:30
Sriharsha Allenki
a2552776b9 platform: msm: Support ID detection using extcon framework
Support ID detection for dual role USB port on 8996 automotive
kernel v4.4 using extcon framework.

Change-Id: I3f523f9a52dc8e2e8458c661ff11c93156e1c232
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-03-26 21:58:11 -07:00
Sriharsha Allenki
0257146bf5 platform: msm: Support VBUS detection using extcon framework
The 8996 automotive using kernel v3.18 supports gpio based
VBUS detection using Power supply object framework. In kernel
v4.4 the VBUS detection is supported using extcon framework.
The 8996 automotive is being ported to kernel v4.4.
Hence add support for gpio based VBUS using extcon framework.

Change-Id: Ic63b5f84d57d18325cc6c8db24157d835284257f
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-03-26 21:53:45 -07:00
Srivatsa Vaddagiri
1fa2159a4c Merge "fb: msm_dba: fix issue in dba driver" into dev/msm-4.4-8996au 2017-03-26 21:52:29 -07:00
Sriharsha Allenki
f291f04217 defconfig: arm64: msm: Enables host only mode on 8996 automotive
Enables host only mode USB 2.0 controller on 8996 automotive kernel
v4.4 by enabling CONFIG_NOP_USB_XCEIV in the msm-auto_defconfig and
msm-auto-perf_defconfig.

Change-Id: I528ebd6a900da8bce97790047b8c01936d09631c
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-03-26 21:49:16 -07:00
Srivatsa Vaddagiri
82bda7ef28 Merge "video: fbdev: msm: build msm driver when dba is enabled" into dev/msm-4.4-8996au 2017-03-26 21:46:41 -07:00
Girish Mahadevan
160f12765b ARM: dts: msm: Add blsp2_qup2 to list of bypass wakeup interrupts for 8996
Add blsp2_qup2 to the list of bypass wakeup interrupts in the MPM
pin mappings to allow msm8996 to enter deep sleep.

Change-Id: I4187a59116ca9d278017e81e815e5bbcd3a921e2
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
Signed-off-by: Atul Raut <araut@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:39:39 -07:00
Shubhraprakash Das
1ece4aba83 ARM: dts: msm: Update the interrupt list with camera irq
Add missing camera irq to the interrupt list without which
the system does not go into shutdown.

Change-Id: I86450b3626d6ed9580b91b2e71f2a320e6df5b3a
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:38:57 -07:00
Mahesh Sivasubramanian
93482a1df4 ARM: msm: dts: Add camera interrupts as bypass for msm8996
When camera subsystem is active the system wouldn't enter XO shutdown and
is safe to mark as bypass so as to allow system to go int XO when camera
isn't active.

Change-Id: Iac7b4f8f4791e9f7dfadf920f24f65ad122e25c3
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:38:23 -07:00
Vijayavardhan Vennapusa
461b1b44a0 ARM: dts: msm: Map MPM pins for DP&DM to hs_phy_irq for msm8996
MPM driver supports mapping multiple MPM pins to single irq for remote
wakeup. Hence map both MPM pins for DP and DM line state changes to
hs_phy_irq.

Change-Id: I018e4258cf0820328c6b77cd32e0d32a0de57582
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:37:13 -07:00
Mahesh Sivasubramanian
39e1ef6095 ARM: dts: msm: Push C4 with PSCI to 11.5ms for MSM8996
C4 with psci overhead is four times that of C4 without psci state.
Based on power profile across system wide usecase, C4 with psci
proves to be costly as the number of pre-mature wakeups from
fpc is huge.
This change pushes C4 with psci state to 11.5ms breakeven point. The
idea is to exercise C4 without psci till that point and allow C4 with
psci only for D4 case.

Change-Id: I81902ac2ff0a0e99efc21d169be472952dcfd3e2
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Girish S Ghongdemath <girishsg@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-26 21:36:38 -07:00
Subash Abhinov Kasiviswanathan
d64bd3ead7 net: rmnet_data: Add support to configure custom device name
rmnet_data assigns device name by the order they are created.
This causes problems which multiple processes are trying to
create devices and leads to random device names.

Assign device name as specified by user.

CRs-Fixed: 2018785
Change-Id: Iab8e053c6ccacbeedaa7763e760d0c12e756b5d0
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-03-25 20:10:29 -07:00
Ankit Sharma
ac6a873dba leds: qpnp-flash: Fix Use-after-free(UAF) for debugfs
Fix UAF where two threads can open and close the same file. Second
open will cause the private data for the first file to be overwritten.
When the first file is closed and the private data is freed, this makes
the now-shared private data OOB for the second thread.

CRs-Fixed: 1109763
Change-Id: I1c4618d5be99e140abf0f3ea0d7f485897db5ab2
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
2017-03-24 12:00:03 +05:30
Sarangdhar Joshi
e7ec709374 arm64: Add support for app specific settings
Add support to provide an interface that can be used from
userspace to decide whether app specific settings need to
be applied / cleared when particular processes are running.

CRs-Fixed: 981519 997757
Change-Id: Id81f8b70de64f291a8586150f4d2c7c8f8b4420f
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
[satyap@codeaurora.org: trivial merge conflict resolution and pull
fixes for CR: 997757]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
[ztu@codeaurora.org: Resolved conflicts]
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-24 11:32:52 +08:00
Sanrio Alvares
8451f7a2a0 arm64: fpsimd: add support to enable/disable fpsimd_settings.
Add support to enable/disable fpsimd_settings at runtime through
kernel command line.

fpsimd.fpsimd_settings=0 should disable it.

Change-Id: I14bf5f20e36ec4547aad45382cfffc91666a2ff4
Signed-off-by: Sanrio Alvares <salvares@codeaurora.org>
2017-03-24 11:30:32 +08:00
Zhiqiang Tu
bec9aa0360 defconfig: arm64: Enable FP settings for msm8996 on automotive
Enable FP(Floating Point) and SIMD settings required
during execution of AArch32 processes.

Change-Id: I935d91778954937a7fd7cb5a959290a147220a06
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-24 11:28:22 +08:00
Se Wang (Patrick) Oh
e92e3ed647 arm64: fpsimd: Enable FP(floating-point) settings for msm8996
Enable FP and SIMD settings for the MSM8996 during the execution
of the AArch32 processes and disable these settings when you switch
to the AArch64 processes.

This commit also adds CONFIG_ENABLE_FP_SIMD_SETTINGS to support
FP and SIMD settings.

CRs-Fixed: 952837
Change-Id: If9537ca7390d8f08a6b48fb8865d1b349a93bcee
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
[ztu@codeaurora.org: Resolved conflicts]
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-24 11:05:22 +08:00
Rajkumar Subbiah
d4b4dcba33 msm: mdss: handle synchronization issues during DSI debugfs read/write
Handle race condition during read/write operations to DSI debugfs nodes
related to DSI panel ON/OFF commands.

Change-Id: I29c4ad74bf21d4cb5362565e902a682fe7263147
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
2017-03-23 11:51:05 -07:00
Srivatsa Vaddagiri
e4b8f93b84 Merge "can: bitrate setting for RH850" into dev/msm-4.4-8996au 2017-03-23 05:23:13 -07:00
Srivatsa Vaddagiri
af6b760131 Merge "ASoC: msm: qdsp6v2: add memset of adm open before usage" into dev/msm-4.4-8996au 2017-03-23 05:21:36 -07:00
Derek Chen
d010eb2b3f ARM: dts: msm: add support for secondary TDM on msm8996 adp/cdp
Add secondary TDM TX DAI in the automotive sound card entry for
msm8996 automotive ADP/CDP platforms.

Change-Id: I3ffc82c7e826fb7e97e1d34e0498637d5d55afd0
CRs-fixed: 1108597
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2017-03-23 05:19:41 -07:00
Srivatsa Vaddagiri
ee3f33beee Merge "ARM: dts: msm: add PCIe PHY sequence for MSM8996 agave" into dev/msm-4.4-8996au 2017-03-23 05:13:09 -07:00
Srivatsa Vaddagiri
7f44d45b7f Merge "ARM: dts: msm: disable L1/L1ss for all PCIe on MSM8996 AUTO" into dev/msm-4.4-8996au 2017-03-23 05:04:43 -07:00
Srivatsa Vaddagiri
624eedc164 Merge "defconfig: msm: Enable profiler driver for MSM8996 auto" into dev/msm-4.4-8996au 2017-03-23 05:00:58 -07:00
Sergio Frades Ruiz De Sola
8aa98bbbae can: bitrate setting for RH850
Bitrate config can be read for all
channels of RH850 and sent down to device

Change-Id: Id3f28f9fd024f7768fb04faef6a31efb8bfb85b2
CRs-Fixed: 1018330
Signed-off-by: Sergio Frades Ruiz De Sola <csfrade@codeaurora.org>
2017-03-23 00:33:21 -07:00
Tony Truong
1dfffe3913 ARM: dts: msm: add PCIe PHY sequence for MSM8996 agave
Add PHY init sequence based on new settings so that PCIe
PHY can be brought up on MSM8996 agave.

Change-Id: Iece881346523cf3f5b06314f38fc65d5afdb2986
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-03-23 00:30:00 -07:00
Tony Truong
eae5b8fa98 ARM: dts: msm: disable L1/L1ss for all PCIe on MSM8996 AUTO
Link state L1 and L1ss is not supported on MSM8996 AUTO
platforms. Thus, disable L1 and L1ss for all PCIe cores
on these platforms.

Change-Id: Ifd95e1bba9c895ea35e50545bd6ad93e42fca5e6
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-03-23 00:29:10 -07:00
Derek Chen
eb79340da4 ASoC: msm: qdsp6v2: add memset of adm open before usage
Add memset of adm open v5 and v6 structure before
value assignment to avoid warning of uninitialized stack.

CRs-fixed: 1112462
Change-Id: I18681f6b191e96118fde9ae774d105dc6b677858
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2017-03-22 23:05:02 -07:00