Commit graph

583751 commits

Author SHA1 Message Date
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
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
Derek Chen
e823a55d47 ARM: dts: msm: add spi_0 dev subnode on msm8996 adp/cdp platform
Add spi-msm-codec-slave device as a subnode of spi_0 on
msm8996 adp/cdp platform.

CRs-fixed: 1027162
Signed-off-by: Derek Chen <chenche@codeaurora.org>
Change-Id: I0b402ef31b53b7f0408e2eec39cc8dea2729cedd
2017-03-22 23:03:28 -07:00
Derek Chen
90c6439d08 ARM: dts: msm: Add loopback1 platform device for msm8996 adp/cdp
Add support for low latency loopback (loopback1) platform device
for msm8996 automotive ADP/CDP platforms.

CRs-fixed: 998118
Change-Id: I12768f71cf4a311f014848d70ef860b4de70612b
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2017-03-22 22:40:54 -07:00
Tony Truong
a53676c1d0 ARM: dts: msm: enable QGIC MSI for RC1 on MSM8996 AUTO platforms
PCIe1 endpoint on MSM8996 AUTO platforms uses QGIC MSI
interrupts instead of Synopsys MSI. Thus, enable QGIC
MSI for PCIe1 for MSM8996 AUTO platforms.

Change-Id: I5814deee87651097dca30f8cc85c563c1451733e
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-03-22 22:18:08 -07:00
Derek Chen
87dbd09664 ARM: dts: msm: disable slimbus/codec on msm8996 adp/cdp platform
WCD codec and Slimbus interface are not used on msm8996
automotive platform. Disable them to optimize the
boot time for performance measurement.

CRs-fixed: 998111
Change-Id: I05cd0dcd528317e75bcd4c3477f2baae056e8cfb
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2017-03-22 07:06:10 -07:00
Srivatsa Vaddagiri
df62040093 Merge "mmc: mmc: Handle error case in mmc_suspend" into dev/msm-4.4-8996au 2017-03-22 02:01:43 -07:00
Srivatsa Vaddagiri
fa201dcdcb Merge "ASoC: msm: Add machine driver for APQ8096 based automotive platform" into dev/msm-4.4-8996au 2017-03-21 23:27:57 -07:00
Jaiju Yesudasan
2152d9715e defconfig: msm: Enable profiler driver for MSM8996 auto
Profiler driver will allow the sdp profiler to get
cpu/gpu and total bandwidth info.

Change-Id: I47a59a72d4cac771e39f9460ab9c8f453d57fb14
Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
2017-03-21 22:32:21 -07:00
Ritesh Harjani
16b7aeeeaa mmc: mmc: Handle error case in mmc_suspend
Currently in case if suspend is failed due to some
reason then the error case is not handled properly :-
1. w.r.t. suspend_clk_scaling claim_host counters are going bad.
2. In case of any error after halting and disabling cmdq -
the error is returned to the PM framework and it assumes that
card is not suspended, whereas CQ remains disabled. This causes
I/O requests hangs since no request can be processed any further.

Fix this by handling error cases properly.

Change-Id: I8691eebcb0e2d089720505475aa0297efce5cca5
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
Signed-off-by: Siba Prasad <sibap@codeaurora.org>
2017-03-21 20:48:52 -07:00
Srivatsa Vaddagiri
d11fa99334 Merge "ASoC: msm: qdsp6v2: add route from SEC_MI2S_TX to MM2" into dev/msm-4.4-8996au 2017-03-21 20:35:28 -07:00
Derek Chen
8a3af1b5a6 ASoC: msm: Add machine driver for APQ8096 based automotive platform
Add machine driver for APQ8096 based automotive platform. The machine
driver is based on msm8996.c. On top of it, add support for TDM which
is used for data transfer between APQ8096 and the automotive COODEC HW,
the changes include add TDM backend and frontend DAI links as well as
kcontrol functions to configure TDM channels.

CRs-fixed: 2002348
Change-Id: Id4e8931c06de9cf20f8012d84cd808f919020174
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2017-03-21 12:03:50 -07:00
Honghao Liu
437b8ba3b2 ARM: dts: msm: add support for secondary MI2S on msm8996 adp/cdp
Update secondary MI2S DAI entry to use SD0 for TX path and SD1
for RX path, and add secondary MI2S DAI in the automotive sound
card entry for msm8996 automotive ADP/CDP platforms.

CRs-fixed: 1087945
Change-Id: I7c29aa605549f54339b108beae39a4e8816ac6dd
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-21 12:02:05 -07:00
Honghao Liu
838525b3a3 ASoC: msm: qdsp6v2: add route from SEC_MI2S_TX to MM2
Add the route from secondary MI2S TX to Multimedia2 Mixer.

CRs-fixed: 2007990
Change-Id: I6082264bc54376af6d88e67833dea348d070ab97
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-21 11:56:10 -07:00
Mitchel Humpherys
4a6f833be0 iommu/iommu-debug: Do a software table walk if ATOS fails
It's hard to tell whether ATOS failed due to a misconfiguration in
hardware or software.  Add a software table walk to help narrow down the
reasons for the failure.  If the software walk succeeds then there's
something wrong in hardware.  If the software walk fails then there's
something wrong in software.

CRs-Fixed: 1014916
Change-Id: I49dd61856ad08e1890791b3e5c180350a5eaa648
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2017-03-20 22:01:03 -07:00
Jordan Crouse
1add8d5a71 iommu/arm-smmu: Ratelimit dynamic ASID allocation error
It is possible to aggressively push the limits of dynamic ASID
by forking and creating lots of domains. In the most egregious
cases enormous log storms can occur. Ratelimit the error
message to cut down on spam.

Change-Id: Ic0dedbadc8f7fd7e810505e4cf2a312cf2986047
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-03-20 21:49:47 -07:00
Jin Li
d6ca6477e2 fb: msm_dba: fix issue in dba driver
Fix wrong return value and wrong print message in msm_dba driver.

Change-Id: I267deb62adbf6ffc09e3ce36bb2c54e7e6768f0f
Signed-off-by: Jin Li <jinl@codeaurora.org>
Signed-off-by: Yunyun Cao <yunyunc@codeaurora.org>
2017-03-20 16:01:53 +08:00
Jin Li
d0829c0b17 video: fbdev: msm: build msm driver when dba is enabled
MSM fbdev driver contains both mdss and dba drivers. It needs to be
compiled when either one of them is enabled.

Change-Id: I6a62b99dddce4da0485d34bca11704aeb9064465
Signed-off-by: Jin Li <jinl@codeaurora.org>
Signed-off-by: Yunyun Cao <yunyunc@codeaurora.org>
2017-03-20 15:14:35 +08:00
Hanumant Singh
aa1980af4c ARM: dts: msm: Add GIC ITS extensions for 8996
Add support for ITS and LPI interrupts.

Change-Id: I3831519f72276ce2cd5ec5de22beaf9ab5287ce1
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-17 12:48:08 +08:00
Tholkappiyan Agaram Raghupathy
cce1f5c68b ARM: dts: support for APQ8096pro v1.1 ADP lite
Add device tree file needed to support APQ8096AU V1.1
ADP Lite.

CRs-Fixed: 1070289
Change-Id: I46362c470abb130d6a7d2f5983a009517f30189b
Signed-off-by: Tholkappiyan Agaram Raghupathy <traghu@codeaurora.org>
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-03-16 13:43:58 +08:00
Venumadhav Cheryala
6e0929af0f ARM: dts: msm: Add support for APQ8096proAU V1.1 ADP Lite platform
Add device tree files needed to support APQ8096AU V1.1 ADP
Lite (Automotive Development Platform). ADP Lite platform has a
stripped down barebone version of the peripheral board.

CRs-Fixed: 1070289

Change-Id: If5580f7f7a3913979e1cd7686af41f2a6d6f45e6
Signed-off-by: Venumadhav Cheryala <cvenum@codeaurora.org>
2017-03-16 12:34:23 +08:00
Tholkappiyan Agaram Raghupathy
55148364ee ARM: dts: msm: Add support for MSM8996v3/pro ADP Lite platform
Add device tree files needed to support MSM8996 and MSM8996proAU ADP
Lite (Automotive Development Platform). ADP Lite platform has a
stripped down barebone version of the peripheral board.

CRs-Fixed: 1061363
Change-Id: Ic4188777abd392a2304c6918a70ad97fd12884b2
Signed-off-by: Tholkappiyan Agaram Raghupathy <traghu@codeaurora.org>
2017-03-15 19:52:46 -07:00
Venumadhav Cheryala
6aa8a1d384 ARM: dts: msm: Add support for APQ8096proAU v1.1 ADP
Add board support file needed to support ADP APQ8096proAU v1.1.

APQ8096pro v1.1 with Agave is a new automotive development platform
This change is needed for device boot up.

CRs-Fixed: 1070289
Change-Id: I46b4e38415861f5971fda7dc90a4c3eb9051b2ee
Signed-off-by: Venumadhav Cheryala <cvenum@codeaurora.org>
2017-03-15 17:36:49 -07:00
Tholkappiyan Agaram Raghupathy
d455affcc8 ARM: dts: msm: refactor DT files for 8996 automotive platforms
Currently, all the SOC (msm8996v3AU or msm8996proAU) specific
overrides are being done in board files. There is a lot of duplication
because of that. Refactor the device tree files for 8996 automotive
platforms so that all the SOC specific overrides can be present in
msm8996v3-auto.dtsi and msm8996pro-auto.dtsi alone. All the
8996v3/8996pro automotive board files will include one of these
files based upon the SOC used.

CRs-Fixed: 1036992
Change-Id: I2306907bbda6c2604bace046b361d1895f324361
Signed-off-by: Atul Raut <araut@codeaurora.org>
Signed-off-by: Tholkappiyan Agaram Raghupathy <traghu@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-14 17:31:27 -07:00
Mathew Joseph Karimpanal
7ba7b300c9 ARM: dts: msm: Add support for MSM8996pro v1.1 automotive SoCs
Add device tree files needed to support MSM8996proAU v1.1 and
APQ8096proAU v1.1 SoC CDPs (Core Development Platform).

CRs-Fixed: 1030299
Change-Id: I16c6fc69790fd5ad3a29b64f8e615a783dc84e98
Signed-off-by: Mathew Joseph Karimpanal <mkarim@codeaurora.org>
2017-03-14 06:56:32 -07:00
Srivatsa Vaddagiri
010425a3c9 Merge "ARM: dts: msm: Add support for MSM8996AU/APQ8096AU SoCs on ADP" into dev/msm-4.4-8996au 2017-03-14 06:30:02 -07:00
Mathew Joseph Karimpanal
c44b4a34d2 socinfo: Add support for MSM8996proAU SoC
Add CPU IDs to the socinfo table needed to support MSM8996pro
Automotive SoC.

CRs-Fixed: 991575
Change-Id: I6efaf4574a5f563b0ee3edd8545e0acd027ad59b
Signed-off-by: Mathew Joseph Karimpanal <mkarim@codeaurora.org>
2017-03-14 03:47:37 -07:00
Mathew Joseph Karimpanal
af9b2e5ad8 ARM: dts: msm: Add support for MSM8996AU/APQ8096AU SoCs on ADP
Add device tree files needed to support the following Automotive SoCs
on ADP (Automotive Development Platform):
- MSM8996AU
- APQ8096AU

CRs-Fixed: 1028318
Change-Id: Idb00f5b7876874095f0cb57f48880ac43306a906
Signed-off-by: Mathew Joseph Karimpanal <mkarim@codeaurora.org>
2017-03-14 02:11:31 -07:00
Srivatsa Vaddagiri
4d76d40f3b Merge "ARM: dts: msm: Add support for APQ8096AU CDP" into dev/msm-4.4-8996au 2017-03-14 02:00:51 -07:00
Hanumant Singh
e4f49bea67 ARM: dts: msm: Add pin setup for modem-QSPI mux on 8996
Auto platforms have an external mux that needs to be setup
to choose between QSPI and modem. Prior to the modem being
loaded, the mux needs to be setup for modem to use the pin.
This is a one time configuration at bootup, that is performed
by pil driver.

CRs-Fixed: 1010787
Change-Id: Ibab421fadef7e591ec84225aa4be7b55d0a54e0c
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
2017-03-14 01:00:47 -07:00
Mathew Joseph Karimpanal
292cc4fe02 ARM: dts: msm: Add support for APQ8096AU CDP
Add device tree files that are needed to support APQ8096 Automotive
CDP platform.

CRs-Fixed: 991575
Change-Id: Ic8818e8255b2d690a1555e23fe35d581835ba634
Signed-off-by: Mathew Joseph Karimpanal <mkarim@codeaurora.org>
2017-03-13 21:45:57 -07:00
Mathew Joseph Karimpanal
db160719ad ARM: dts: msm: Disable SLIMbus on MSM8996proAU ADP
MSM8996pro Automotive ADP platform does not use SLIMbus (Serial Low-
power Inter-chip Media Bus) audio interface path. Disable SLIMbus.

CRs-Fixed: 1000279
Change-Id: I55ef759f6d57909aa9d975e92d2c65224bfec615
Signed-off-by: Mathew Joseph Karimpanal <mkarim@codeaurora.org>
2017-03-13 21:37:41 -07:00
Mathew Joseph Karimpanal
b18d189db2 ARM: dts: msm: Update SD Card Detect GPIO on MSM8996proAU ADP
Update SD Card Detect GPIO configuration on MSM8996proAU ADP.

CRs-Fixed: 1000279
Change-Id: Ia3f2887e835a9e49fe646064f42d017a9c8bdc02
Signed-off-by: Mathew Joseph Karimpanal <mkarim@codeaurora.org>
2017-03-13 21:37:06 -07:00
Mathew Joseph Karimpanal
2eee20854d ARM: dts: msm: Disable sensors on MSM8996proAU ADP
Snapdragon Sensor Core (SSC) solution is not supported on MSM8996pro
Automotive ADP platform. Disable sensors SSC driver.

CRs-Fixed: 1000279
Change-Id: Iaf791529ed51958c02b9a1b714759954997ccaa4
Signed-off-by: Mathew Joseph Karimpanal <mkarim@codeaurora.org>
2017-03-13 21:35:12 -07:00
Srivatsa Vaddagiri
10caab038d Merge "ARM: dts: msm: Add support for MSM8996proAU ADP" into dev/msm-4.4-8996au 2017-03-13 21:32:17 -07:00