Commit graph

582596 commits

Author SHA1 Message Date
Rupesh Tatiya
2eb9de043d ARM: dts: msm: Add bluetooth node of wcn3990 for sdm630
Bluetooth functionality is provided by wcn3990 on sdm630. Add device tree
entry having various voltage regulators, clock settings etc.

Change-Id: I8640138f3485e1b1a26fb0f63526ad6083b93193
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2017-02-03 17:14:37 +05:30
Rupesh Tatiya
41d17c1ad9 ARM: dts: msm: Enable UART for sdm630
BLSP2 UART1 is used as transport for Bluetooth between sdm630 & wcn3990.
Enable it so that Bluetooth can be enabled on sdm630 CDP/MTP/QRD.

Change-Id: I61f300d5a8fa54172acce429ee961f7caef7d404
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2017-02-03 16:59:55 +05:30
AnilKumar Chimata
312981bf91 ARM: dts: msm: Add sdhc ice device node for sdm660
Add sdhc ice device tree data to dts files with all
the necessary parameters, to enable the ICE driver
for crypto operations related to disk encryption.

Change-Id: I5bfcf35f4a93ef9ef21508d3c4b3309bb0086511
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2017-02-03 16:37:38 +05:30
AnilKumar Chimata
479ce2576d ARM: dts: msm: Add ufs ice device node for sdm660
Add ufs ice device tree data to dts files with all
the necessary parameters, to enable the ICE driver
for crypto operations related to disk encryption.

Change-Id: I87463a1c1a064ba2a0597d095e6807931e7b5666
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2017-02-03 16:37:31 +05:30
Utkarsh Saxena
67329b8d85 ARM: dts: msm: Enable zone dma flag for sdm660/630
IPA v2.6 hardware has 32 bit limitation,
enable zone dma flag to get a kernel
memory allocated in 32 bit space.

Change-Id: I61fc2d28ef4e690a7d03ad68c308a6b6fe5129cf
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-02-03 16:18:19 +05:30
Amey Telawane
a2efe4fb8a ARM: dts: msm: modify dcc ram size for sdm660
Modify DCC RAM size for sdm660. DCC RAM is used to
store captured information locally in DCC.

Change-Id: Ib9d4ae640e8162d5a3f44739b9289457ee4ae43c
CRs-fixed: 2002031
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2017-02-03 15:48:16 +05:30
Rama Krishna Phani A
f8b4f78f86 ARM: dts: msm: Add revid phandle to read FAB ID for PM660
Temperature compensation is needed for charger die
temperature. Offset and slope coefficients are applied
based on the FAB ID read from the REVID peripheral.

Change-Id: I0bd5712b17b11c245da6d737ea0994e7f17d9837
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-02-03 15:44:13 +05:30
Sayali Lokhande
8e10d91138 ARM: dts: msm: Add ufs support for SDM630
Add ufs and ufs-phy device nodes to support
ufs as storage device for SDM630 platform.

Change-Id: Ia4059d1663dc7886ac3873bbdcca6023c6ff5643
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-02-03 15:42:23 +05:30
Govind Singh
0612699ff1 ARM: dts: msm: Add WCN3990 WLAN module device node for APQ8998
Add device node for the ath10k SNOC platform driver probe
and add interrupt table to configure copy engine for WLAN
SNOC platform driver to WLAN firmware communication.

CRs-Fixed: 1116436
Change-Id: Idade4ff63fa8e7eb2262709d76ed707e3a7e2820
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-02-02 23:07:01 -08:00
Lei Chen
00499f56c5 msm: ext_display: update hpd and notify for HDMI
The semantic of hpd and notify have been changed. hpd is
a blocking call which notifies display and audio with the
cable status, and notify is used to complete the hpd call
which waits for the acknowledgment of power on/off. Update
these 2 interface implementations for HDMI.

CRs-Fixed: 1086894
Change-Id: I8603149132e224cb2859d2b808123238d0516817
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Signed-off-by: Lei Chen <chenl@codeaurora.org>
2017-02-03 14:26:21 +08:00
Ashay Jaiswal
846583572a qcom: battery: reorganize creation of votables in SMB library
Move all "find_votable" requests before any voter creation
in smb library to prevent multiple creation/destruction of
votables due to probe-deferrals.

CRs-Fixed: 2001651
Change-Id: I03cb30775720a53ad24e1c5d5e075d7442b2729c
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-02-03 11:38:44 +05:30
Ashay Jaiswal
060f26470a qcom: battery: add voting support for handling wakeup source
Add a new votable in parallel driver to support wakeup source
handling via pmic-voter framework.

CRs-Fixed: 2001651
Change-Id: Ia2c67d76081c36508d1ad3c3cb3a0be4c1a55814
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-02-03 11:35:56 +05:30
Ashay Jaiswal
095a8e4246 qcom: battery: fix taper entry handling
Move Taper entry check before charge enable check in
"handle_main_charge_type" to make sure TAPER entry is
handled properly.

CRs-Fixed: 2001651
Change-Id: Id7c3f48b66ba8df20ca2be022565d8bf0e38379b
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-02-03 11:33:59 +05:30
Ashay Jaiswal
8bb83bb77e qcom: battery: fix parallel psy name
Parallel charger registers to power supply framework with name
"parallel" instead of "usb-parallel" thus update all references
of "usb-parallel" with "parallel".
While at it, remove extra NULL pointer check of pl_psy in
parallel enable path.

CRs-Fixed: 2001651
Change-Id: I4150808f7122cef970296553fb70671df12aced9
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-02-03 11:32:34 +05:30
Linux Build Service Account
892e41e7c7 Merge "msm: camera: Force syncing frame ID if out-of-sync happens" 2017-02-02 21:33:20 -08:00
Linux Build Service Account
bddb525c99 Merge "cfg80211: add bitrate for 20MHz MCS 9" 2017-02-02 21:33:20 -08:00
Linux Build Service Account
d9ef83ab10 Merge "qpnp-fg-gen3: improve TTF accuracy towards EOC" 2017-02-02 21:33:19 -08:00
Linux Build Service Account
0fb3c56e16 Merge "ARM: dts: msm: update SMB138X TADC die temp parameters" 2017-02-02 21:33:17 -08:00
Linux Build Service Account
8808ab3610 Merge "ecm_ipa: remove redundant code" 2017-02-02 21:33:16 -08:00
Linux Build Service Account
367bab7b55 Merge "ARM: dts: msm: Add compute context banks for sdm630" 2017-02-02 21:33:16 -08:00
Linux Build Service Account
6cc36a0152 Merge "drivers: lmh_dcvsh: Provide CPU frequency in Hz for opp interface" 2017-02-02 21:33:15 -08:00
Linux Build Service Account
e2327b7afb Merge "msm: vidc: Correct enum value for vpx colorspace extradata" 2017-02-02 21:33:14 -08:00
Linux Build Service Account
e3a533c911 Merge "crypto: msm: check length before copying to buf in _debug_stats_read" 2017-02-02 21:33:13 -08:00
Aditya Bavanari
f4ac3dd042 ASoC: msm: qdsp6v2: Add mixer controls for PRI/SEC TDM
Add mixer controls and port mixer controls applicable for
Primary TDM Rx, Primary TDM Tx, Secondary TDM Tx
and Secondary TDM Rx  in the routing driver.

CRs-fixed: 1089445
Change-Id: I51a765c38439b21b4b56e4089c863eb17c7dc1f8
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-02-02 21:28:57 -08:00
Pavankumar Kondeti
00861ed665 sysctl: define upper limit for sched_freq_reporting_policy
Setting sched_freq_reporting_policy tunable to an unsupported
values results in a warning from the scheduler. The previous
policy setting is also lost.

As sched_freq_reporting_policy can not be set to an incorrect
value now, remove the WARN_ON_ONCE from the scheduler.

Change-Id: I58d7e5dfefb7d11d2309bc05a1dd66acdc11b766
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-02-03 10:55:52 +05:30
Subbaraman Narayanamurthy
9d27ab2fe7 qpnp-fg-gen3: Linearize SOC during discharging in SOC masking algorithm
During SOC masking, SOC 100 will be shown to the user after the
charge termination and as long as the charger is inserted. After
the charger is removed or device is discharging when the charger
was inserted, showing the real monotonic SOC instantly reduces
the user experience. Linearize the drop in SOC so that it can be
spread to a wider range.

Change-Id: I509e59f8e5d9e9addd8c5721369fbcf664158338
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-02 21:05:02 -08:00
Subbaraman Narayanamurthy
48734a7d0b qpnp-fg-gen3: Adjust recharge voltage to help SOC masking
When SOC masking algorithm is enabled, a SOC of 100 will be shown
to the user when certain conditions are met. When the device
starts discharging after charge termination, auto recharge will
be triggered once the SOC or Vbatt goes below the threshold. When
the recharge is based on Vbatt, a fluctutation in Vbatt can cause
issues in SOC masking algorithm. To make it robust, adjust the
recharge voltage dynamically based on charging status and battery
SOC.

Add a device tree property to allow configuring auto recharge to
be based off SOC or battery voltage. This will help the user to
select auto recharge configuration easily.

Change-Id: I2d749806aa51b9fa747967b592b6622cc12bee65
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-02 21:02:40 -08:00
Subbaraman Narayanamurthy
4fa5fdc375 qpnp-fg-gen3: improve SOC masking algorithm
After charge termination, charging status might not get updated
until the recharge begins. This makes charge_full_update to be
not called at all thereby causing SOC masking algorithm to not
clear the charge_full flag. Use delta battery SOC interrupt to
help with this. Keep it disabled by default and enable it after
the charge termination. Disable it again when the user removes
the charger.

Since this needs delta battery SOC threshold to be configured,
add support for it.

Change-Id: Ic1a9f8a065c87efe88e315f2b2e1e1378151531b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-02 21:02:39 -08:00
Subbaraman Narayanamurthy
5c7833f48b ARM: dts: msm: modify delta SOC irq configuration for pmi8998 and pm660
Delta MSOC and BSOC interrupts need to be configured only for
the rising edge as that is sufficient to handle most of the
actions to be done responding to them. Update the interrupt
configurations for pmi8998 and pm660.

Change-Id: I84d6d009c3b5227869309570d94c62bde6bea710
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-02 21:02:38 -08:00
Subbaraman Narayanamurthy
1e769af74c qpnp-fg-gen3: clear RESTART_GO bit always
When FG is restarted, RESTART_GO bit is set and it is cleared
only when the first estimate is done, signalled by SOC_READY
interrupt. If SOC_READY interrupt doesn't fire for some reason,
RESTART_GO bit will not get cleared. Fix this.

Change-Id: I99261d5020f5012ba0a4e35e543458f9e7b30210
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-02 21:02:37 -08:00
Subbaraman Narayanamurthy
7e3256e251 qpnp-fg-gen3: Show a fake SOC and voltage when battery is missing
During battery hotswap, a strong charger will be supplying enough
current to keep the device up and running. Currently, FG driver
shows up the monotonic SOC and voltage as-is (which is zero) to
the battery power supply and hence to the userspace.

Show a fake battery SOC (50%) and fake battery voltage (3.7 V)
when the battery is missing. If a strong charger is not present,
then the device will be powered down anyways.

Change-Id: Ia2c85d1e75bbf0c937a7e36e786362c473c7f7cd
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-02 21:02:37 -08:00
Rajeev Kulkarni
08bf736b8c msm: camera: Force syncing frame ID if out-of-sync happens
In dual cam sync mode, set all source to async state if
out-of-sync happens.

CRs-Fixed: 1115553
Change-Id: I8d322d5d87dd30c6852052ae9f56d43273af6095
Signed-off-by: Junzhe Zou <jnzhezou@codeaurora.org>
2017-02-02 16:19:38 -08:00
Manu Gautam
a4f63f1693 usb: xhci-plat: Add DT parameter to program xhci imod_interval
XHCI allows interrupt moderation using imod_interval at 250ns
increments. Add DT parameter to specify this imod_value for
targets mainly with single CPU to reduce CPU interrupt loads.
This allows better balance between CPU usage and performance.

CRs-fixed: 1019219
Change-Id: Id479c162da6492caff4dd83de4054fee63b6abc5
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2017-02-02 14:20:44 -08:00
Nicholas Troast
94c376b60e qpnp-fg-gen3: improve TTF accuracy towards EOC
Currently the TTF is inaccurate near 100% SOC. Adjust the tau scale near
100% SOC and adjust the target full battery current to compensate for
the inaccuracy.

Change-Id: I2f6327fab7b71108a928e8c99107522c73c35e07
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-02 12:40:11 -08:00
Linux Build Service Account
336e245503 Merge "defconfig: msm: Enable HWBinder for msmcortex" 2017-02-02 12:31:36 -08:00
Linux Build Service Account
4331c08bf9 Merge "android: binder: support for scatter-gather." 2017-02-02 12:31:35 -08:00
Linux Build Service Account
fe9a5e6da7 Merge "ath10k: Add support for the management over wmi" 2017-02-02 12:31:33 -08:00
Linux Build Service Account
21f46f2e15 Merge "net: rmnet_data: Fix incorrect netlink handling" 2017-02-02 12:31:32 -08:00
Linux Build Service Account
0769d8a501 Merge "ath10k: disable HW checksum for WCN3990" 2017-02-02 12:31:31 -08:00
Linux Build Service Account
7ac59f9642 Merge "crypto: ice: Fix NULL pointer exception in ice." 2017-02-02 12:31:30 -08:00
Linux Build Service Account
00b5ea2384 Merge "ARM: dts: msm: Enable CXIP LM feature for sdm660" 2017-02-02 12:31:29 -08:00
Linux Build Service Account
31b90dbf3f Merge "ARM: dts: msm: correct spi master number for sdm660" 2017-02-02 12:31:27 -08:00
Linux Build Service Account
5784dca5b5 Merge "ath10k: Refactor HTT RX datapath for WCN3990" 2017-02-02 12:31:26 -08:00
Nicholas Troast
acf15eb729 ARM: dts: msm: update SMB138X TADC die temp parameters
Update the die temperature scale and offset values to the latest
recommended values.

Change-Id: Iaf27461dd43c1f6915416447031cc362210801b5
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-02 11:56:26 -08:00
Olav Haugan
475820b5bc sched: Remove sched_enable_hmp flag
Clean up the code and make it more maintainable by removing dependency
on the sched_enable_hmp flag. We do not support HMP scheduler without
recompiling. Enabling the HMP scheduler is done through enabling the
CONFIG_SCHED_HMP config.

Change-Id: I246c1b1889f8dcbc8f0a0805077c0ce5d4f083b0
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2017-02-02 10:23:08 -08:00
Neeraj Upadhyay
30b32775a5 defconfig: msm: Enable HWBinder for msmcortex
Enable HWBinder Domain for msmcortex.

Change-Id: Id3f9b7065b089a200278a50f77f6da5a6824c4fd
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:36:11 -08:00
Sathish Ambley
150e613cb7 msm: ADSPRPC: Use domain information to open channels
The domain information indicates which remote processor to
communicate with. Use this domain information to open up the
corresponding channel with the remote processor.

Change-Id: I54ddfae04ce71b3c760840e26285cd5754533882
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-02-02 09:35:55 -08:00
Martijn Coenen
5029e5bfb6 android: binder: support for file-descriptor arrays.
This patch introduces a new binder_fd_array object,
that allows us to support one or more file descriptors
embedded in a buffer that is scatter-gathered.

Change-Id: I273d7e00807eda4defc5c94c4bd86e4812e2c7a8
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 5b3e17679b
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:32:03 -08:00
Martijn Coenen
edaed8a883 android: binder: support for scatter-gather.
Previously all data passed over binder needed
to be serialized, with the exception of Binder
objects and file descriptors.

This patchs adds support for scatter-gathering raw
memory buffers into a binder transaction, avoiding
the need to first serialize them into a Parcel.

To remain backwards compatibile with existing
binder clients, it introduces two new command
ioctls for this purpose - BC_TRANSACTION_SG and
BC_REPLY_SG. These commands may only be used with
the new binder_transaction_data_sg structure,
which adds a field for the total size of the
buffers we are scatter-gathering.

Because memory buffers may contain pointers to
other buffers, we allow callers to specify
a parent buffer and an offset into it, to indicate
this is a location pointing to the buffer that
we are fixing up. The kernel will then take care
of fixing up the pointer to that buffer as well.

Change-Id: Ia9bb2c588d932b6627a04baf4a62a09ae6aca087
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 34b8f97791
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
[tsoni@codeaurora.org: Fixed 32 bit compilation]
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2017-02-02 09:30:50 -08:00
Gidon Studinski
4b3c1f6478 ecm_ipa: remove redundant code
Remove ECM_IPA debugging capabilities which are no longer needed, nor used.

CRs-Fixed: 1112912
Change-Id: I20765d84ca7351c436d39d0f10b7f7a819bcc40b
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
2017-02-02 09:30:27 -08:00