OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoARM: dts: msm: correct vote on ldo11 for vddio on sdm660
Ashish Garg [Mon, 6 Feb 2017 06:33:29 +0000 (12:03 +0530)]
ARM: dts: msm: correct vote on ldo11 for vddio on sdm660

On sdm660, VDDIO needs 1.8V and LDO11 is voted for 1.88V
which is causing higher power numbers. Update the vote
correctly for LDO11.

Change-Id: Id6178d312394a4c4bebb77659f6eb7e21574137b
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
7 years agoMerge "ARM: dts: msm: add Silver cluster MEM-ACC thresholds for msm8998v2"
Linux Build Service Account [Sun, 5 Feb 2017 04:21:42 +0000 (20:21 -0800)]
Merge "ARM: dts: msm: add Silver cluster MEM-ACC thresholds for msm8998v2"

7 years agoMerge "soc: qcom: glink_smem_native_xprt: Add print for GFP_ATOMIC alloc fail"
Linux Build Service Account [Sun, 5 Feb 2017 04:21:41 +0000 (20:21 -0800)]
Merge "soc: qcom: glink_smem_native_xprt: Add print for GFP_ATOMIC alloc fail"

7 years agoMerge "clk: msm: clock-osm: support MEM-ACC threshold voltage for Silver cluster"
Linux Build Service Account [Sat, 4 Feb 2017 06:59:41 +0000 (22:59 -0800)]
Merge "clk: msm: clock-osm: support MEM-ACC threshold voltage for Silver cluster"

7 years agoMerge "diag: Do not close MHI channels when usb is disconnected"
Linux Build Service Account [Sat, 4 Feb 2017 06:59:40 +0000 (22:59 -0800)]
Merge "diag: Do not close MHI channels when usb is disconnected"

7 years agoMerge "qcrypto: protect potential integer overflow."
Linux Build Service Account [Sat, 4 Feb 2017 06:59:39 +0000 (22:59 -0800)]
Merge "qcrypto: protect potential integer overflow."

7 years agoMerge "qpnp-fg-gen3: Linearize SOC during discharging in SOC masking algorithm"
Linux Build Service Account [Sat, 4 Feb 2017 06:59:36 +0000 (22:59 -0800)]
Merge "qpnp-fg-gen3: Linearize SOC during discharging in SOC masking algorithm"

7 years agoMerge "qpnp-fg-gen3: Adjust recharge voltage to help SOC masking"
Linux Build Service Account [Sat, 4 Feb 2017 06:59:35 +0000 (22:59 -0800)]
Merge "qpnp-fg-gen3: Adjust recharge voltage to help SOC masking"

7 years agoMerge "msm: ipa3: Validate IPA and GSI firmwares before loading"
Linux Build Service Account [Fri, 3 Feb 2017 22:56:17 +0000 (14:56 -0800)]
Merge "msm: ipa3: Validate IPA and GSI firmwares before loading"

7 years agoMerge "soc: qcom: pil: Fix error case scenario in subsystem ramdump"
Linux Build Service Account [Fri, 3 Feb 2017 22:56:16 +0000 (14:56 -0800)]
Merge "soc: qcom: pil: Fix error case scenario in subsystem ramdump"

7 years agoMerge "ARM: dts: msm: add etm save restore nodes for sdm630"
Linux Build Service Account [Fri, 3 Feb 2017 22:56:16 +0000 (14:56 -0800)]
Merge "ARM: dts: msm: add etm save restore nodes for sdm630"

7 years agoMerge "ARM: dts: msm: Enable UART for sdm630"
Linux Build Service Account [Fri, 3 Feb 2017 22:56:15 +0000 (14:56 -0800)]
Merge "ARM: dts: msm: Enable UART for sdm630"

7 years agoMerge "ARM: dts: msm: Add revid phandle to read FAB ID for PM660"
Linux Build Service Account [Fri, 3 Feb 2017 22:56:14 +0000 (14:56 -0800)]
Merge "ARM: dts: msm: Add revid phandle to read FAB ID for PM660"

7 years agoMerge "ARM: dts: msm: modify dcc ram size for sdm660"
Linux Build Service Account [Fri, 3 Feb 2017 22:56:13 +0000 (14:56 -0800)]
Merge "ARM: dts: msm: modify dcc ram size for sdm660"

7 years agoMerge "ath10k: Populate HW params, WMI and HTT versions for WCN3990"
Linux Build Service Account [Fri, 3 Feb 2017 22:56:12 +0000 (14:56 -0800)]
Merge "ath10k: Populate HW params, WMI and HTT versions for WCN3990"

7 years agodiag: Do not close MHI channels when usb is disconnected
Sreelakshmi Gownipalli [Tue, 20 Dec 2016 07:31:05 +0000 (23:31 -0800)]
diag: Do not close MHI channels when usb is disconnected

Do not close MHI channels when usb is disconnected and a process
is running in memory device mode.

Change-Id: I043fc25542e432a9fa294d4f433945718b2e5878
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
7 years agosoc: qcom: pil: Fix error case scenario in subsystem ramdump
Puja Gupta [Thu, 2 Feb 2017 21:41:04 +0000 (13:41 -0800)]
soc: qcom: pil: Fix error case scenario in subsystem ramdump

During ramdump collection we assign memory to HLOS from subsystem for
non-secure pil. Whether ramdump collection is successful or not, we
should assign memory back to subsystem. This is to avoid access
violations in powerup path which happens after ramdump.

CRs-Fixed: 2002073
Change-Id: I7f1d42aebb44464fe077ca544ce91c2d7a8eefbb
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
7 years agosoc: qcom: glink_smem_native_xprt: Add print for GFP_ATOMIC alloc fail
Chris Lew [Tue, 17 Jan 2017 22:50:24 +0000 (14:50 -0800)]
soc: qcom: glink_smem_native_xprt: Add print for GFP_ATOMIC alloc fail

Add error message for GFP_ATOMIC allocation failure. Keep current
design to drop packet if allocation fails. This print will help debug
issues where a system critical client fails because of a dropped GLINK
packet.

CRs-Fixed: 1112151
Change-Id: I6a69cbf1f88295009284d726a06fa5affd4cc591
Signed-off-by: Chris Lew <clew@codeaurora.org>
7 years agoath10k: Populate HW params, WMI and HTT versions for WCN3990
Rajeev Kumar Sirasanagandla [Tue, 17 Jan 2017 12:47:51 +0000 (18:17 +0530)]
ath10k: Populate HW params, WMI and HTT versions for WCN3990

firmware-5.bin file for WCN3990 contains just WMI and HTT versions and
firmware is loaded by PIL.

This change, populate the hw params for WCN3990 and parse
firmware-5.bin file for WMI and HTT versions.

CRs-Fixed: 2002151
Change-Id: Ic65d3696e9546fd428e608f4738e9fe53d61338f
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Add sdhc ice device node for sdm660"
Linux Build Service Account [Fri, 3 Feb 2017 14:27:02 +0000 (06:27 -0800)]
Merge "ARM: dts: msm: Add sdhc ice device node for sdm660"

7 years agoMerge "ARM: dts: msm: Add ufs ice device node for sdm660"
Linux Build Service Account [Fri, 3 Feb 2017 14:27:01 +0000 (06:27 -0800)]
Merge "ARM: dts: msm: Add ufs ice device node for sdm660"

7 years agoMerge "ASoc: wcd-mbhc: correct handling of electrical interrupts"
Linux Build Service Account [Fri, 3 Feb 2017 14:27:01 +0000 (06:27 -0800)]
Merge "ASoc: wcd-mbhc: correct handling of electrical interrupts"

7 years agoMerge "msm: qdsp6v2: set device channels on vocproc"
Linux Build Service Account [Fri, 3 Feb 2017 14:27:00 +0000 (06:27 -0800)]
Merge "msm: qdsp6v2: set device channels on vocproc"

7 years agoMerge "ASoC: msm: qdsp6v2: completely deallocate on cal block creation failure"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:59 +0000 (06:26 -0800)]
Merge "ASoC: msm: qdsp6v2: completely deallocate on cal block creation failure"

7 years agoMerge "drivers: soc: apr: create glink buffers dynamically"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:58 +0000 (06:26 -0800)]
Merge "drivers: soc: apr: create glink buffers dynamically"

7 years agoMerge "ASoC: msm8998: enable ignore suspend flag for ANC"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:57 +0000 (06:26 -0800)]
Merge "ASoC: msm8998: enable ignore suspend flag for ANC"

7 years agoMerge "ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:56 +0000 (06:26 -0800)]
Merge "ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()"

7 years agoMerge "ARM: dts: msm: Add ufs support for SDM630"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:51 +0000 (06:26 -0800)]
Merge "ARM: dts: msm: Add ufs support for SDM630"

7 years agoMerge "ARM: dts: msm: Add WCN3990 WLAN module device node for APQ8998"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:50 +0000 (06:26 -0800)]
Merge "ARM: dts: msm: Add WCN3990 WLAN module device node for APQ8998"

7 years agoMerge "soc: qcom: glink_ssr: Set NULL after free"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:50 +0000 (06:26 -0800)]
Merge "soc: qcom: glink_ssr: Set NULL after free"

7 years agoMerge "iio: rradc: Update charger die temperature coefficients"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:49 +0000 (06:26 -0800)]
Merge "iio: rradc: Update charger die temperature coefficients"

7 years agoMerge "msm: ADSPRPC: Use domain information to open channels"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:48 +0000 (06:26 -0800)]
Merge "msm: ADSPRPC: Use domain information to open channels"

7 years agoMerge "qcom: battery: reorganize creation of votables in SMB library"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:45 +0000 (06:26 -0800)]
Merge "qcom: battery: reorganize creation of votables in SMB library"

7 years agoMerge "ARM: dts: msm: Add GPU power level speed bins for SDM660"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:44 +0000 (06:26 -0800)]
Merge "ARM: dts: msm: Add GPU power level speed bins for SDM660"

7 years agoMerge "sched: Remove sched_enable_hmp flag"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:44 +0000 (06:26 -0800)]
Merge "sched: Remove sched_enable_hmp flag"

7 years agoMerge "ARM: dts: msm: Add support for CPU clocks for sdm630"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:43 +0000 (06:26 -0800)]
Merge "ARM: dts: msm: Add support for CPU clocks for sdm630"

7 years agoMerge "usb: xhci-plat: Add DT parameter to program xhci imod_interval"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:41 +0000 (06:26 -0800)]
Merge "usb: xhci-plat: Add DT parameter to program xhci imod_interval"

7 years agoMerge "ath10k: add WCN3990 SNOC layer compilation support"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:40 +0000 (06:26 -0800)]
Merge "ath10k: add WCN3990 SNOC layer compilation support"

7 years agoMerge "ARM: dts: msm: Update csi source clk in msm8998"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:39 +0000 (06:26 -0800)]
Merge "ARM: dts: msm: Update csi source clk in msm8998"

7 years agoMerge "msm: camera: sensor: Validate csid lane count"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:38 +0000 (06:26 -0800)]
Merge "msm: camera: sensor: Validate csid lane count"

7 years agoMerge "ASoC: msm-cpe: Add timestamp support for lsm event status"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:35 +0000 (06:26 -0800)]
Merge "ASoC: msm-cpe: Add timestamp support for lsm event status"

7 years agoMerge "ASoC: msm: qdsp6v2: Add App type cfg support for Listen"
Linux Build Service Account [Fri, 3 Feb 2017 14:26:34 +0000 (06:26 -0800)]
Merge "ASoC: msm: qdsp6v2: Add App type cfg support for Listen"

7 years agoARM: dts: msm: add etm save restore nodes for sdm630
Amey Telawane [Tue, 17 Jan 2017 05:53:08 +0000 (11:23 +0530)]
ARM: dts: msm: add etm save restore nodes for sdm630

Values stored in etm are lost across power collapse.
Add etm save retore nodes which saves etm
values across power collapse.

Change-Id: I9ceb89a255847ca1d9dc01f223283f5664cb8feb
CRs-fixed: 1112224
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
7 years agomsm: ipa3: Validate IPA and GSI firmwares before loading
Ghanim Fodi [Tue, 24 Jan 2017 13:42:30 +0000 (15:42 +0200)]
msm: ipa3: Validate IPA and GSI firmwares before loading

IPA and GSI firmwares are saved on the file-system as an
ELF file. IPA driver extracts the firmwares and load
them during driver initialization.
This change adds validation steps to each firmware before
loading: load addresses, memory sizes, firmware sizes and
more...

Change-Id: I7d7f66e8e8a9ca0efae08b1e57b25ae4e44cc5bb
CRs-fixed: 1110522
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
7 years agoARM: dts: msm: Enable UART for sdm630
Rupesh Tatiya [Fri, 3 Feb 2017 11:28:51 +0000 (16:58 +0530)]
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>
7 years agoARM: dts: msm: Add sdhc ice device node for sdm660
AnilKumar Chimata [Tue, 10 Jan 2017 13:17:09 +0000 (18:47 +0530)]
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>
7 years agoARM: dts: msm: Add ufs ice device node for sdm660
AnilKumar Chimata [Tue, 13 Dec 2016 09:25:10 +0000 (14:55 +0530)]
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>
7 years agoARM: dts: msm: modify dcc ram size for sdm660
Amey Telawane [Fri, 3 Feb 2017 10:18:16 +0000 (15:48 +0530)]
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>
7 years agoARM: dts: msm: Add revid phandle to read FAB ID for PM660
Rama Krishna Phani A [Fri, 27 Jan 2017 13:48:11 +0000 (19:18 +0530)]
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>
7 years agoARM: dts: msm: Add ufs support for SDM630
Sayali Lokhande [Tue, 17 Jan 2017 10:44:48 +0000 (16:14 +0530)]
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>
7 years agoARM: dts: msm: Add WCN3990 WLAN module device node for APQ8998
Govind Singh [Thu, 5 Jan 2017 14:56:18 +0000 (20:26 +0530)]
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>
7 years agoqcom: battery: reorganize creation of votables in SMB library
Ashay Jaiswal [Fri, 3 Feb 2017 06:07:28 +0000 (11:37 +0530)]
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>
7 years agoqcom: battery: add voting support for handling wakeup source
Ashay Jaiswal [Fri, 3 Feb 2017 06:05:27 +0000 (11:35 +0530)]
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>
7 years agoqcom: battery: fix taper entry handling
Ashay Jaiswal [Fri, 3 Feb 2017 05:55:36 +0000 (11:25 +0530)]
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>
7 years agoqcom: battery: fix parallel psy name
Ashay Jaiswal [Fri, 3 Feb 2017 05:48:22 +0000 (11:18 +0530)]
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>
7 years agoMerge "msm: camera: Force syncing frame ID if out-of-sync happens"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:21 +0000 (21:33 -0800)]
Merge "msm: camera: Force syncing frame ID if out-of-sync happens"

7 years agoMerge "cfg80211: add bitrate for 20MHz MCS 9"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:20 +0000 (21:33 -0800)]
Merge "cfg80211: add bitrate for 20MHz MCS 9"

7 years agoMerge "qpnp-fg-gen3: improve TTF accuracy towards EOC"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:19 +0000 (21:33 -0800)]
Merge "qpnp-fg-gen3: improve TTF accuracy towards EOC"

7 years agoMerge "ARM: dts: msm: update SMB138X TADC die temp parameters"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:18 +0000 (21:33 -0800)]
Merge "ARM: dts: msm: update SMB138X TADC die temp parameters"

7 years agoMerge "ecm_ipa: remove redundant code"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:17 +0000 (21:33 -0800)]
Merge "ecm_ipa: remove redundant code"

7 years agoMerge "ARM: dts: msm: Add compute context banks for sdm630"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:16 +0000 (21:33 -0800)]
Merge "ARM: dts: msm: Add compute context banks for sdm630"

7 years agoMerge "drivers: lmh_dcvsh: Provide CPU frequency in Hz for opp interface"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:15 +0000 (21:33 -0800)]
Merge "drivers: lmh_dcvsh: Provide CPU frequency in Hz for opp interface"

7 years agoMerge "msm: vidc: Correct enum value for vpx colorspace extradata"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:14 +0000 (21:33 -0800)]
Merge "msm: vidc: Correct enum value for vpx colorspace extradata"

7 years agoMerge "crypto: msm: check length before copying to buf in _debug_stats_read"
Linux Build Service Account [Fri, 3 Feb 2017 05:33:14 +0000 (21:33 -0800)]
Merge "crypto: msm: check length before copying to buf in _debug_stats_read"

7 years agoqpnp-fg-gen3: Linearize SOC during discharging in SOC masking algorithm
Subbaraman Narayanamurthy [Fri, 6 Jan 2017 23:47:24 +0000 (15:47 -0800)]
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>
7 years agoqpnp-fg-gen3: Adjust recharge voltage to help SOC masking
Subbaraman Narayanamurthy [Fri, 23 Dec 2016 02:55:25 +0000 (18:55 -0800)]
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>
7 years agoqpnp-fg-gen3: improve SOC masking algorithm
Subbaraman Narayanamurthy [Tue, 3 Jan 2017 23:39:08 +0000 (15:39 -0800)]
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>
7 years agoARM: dts: msm: modify delta SOC irq configuration for pmi8998 and pm660
Subbaraman Narayanamurthy [Mon, 16 Jan 2017 23:01:09 +0000 (15:01 -0800)]
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>
7 years agoqpnp-fg-gen3: clear RESTART_GO bit always
Subbaraman Narayanamurthy [Wed, 25 Jan 2017 02:52:52 +0000 (18:52 -0800)]
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>
7 years agoqpnp-fg-gen3: Show a fake SOC and voltage when battery is missing
Subbaraman Narayanamurthy [Wed, 25 Jan 2017 02:45:14 +0000 (18:45 -0800)]
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>
7 years agomsm: camera: Force syncing frame ID if out-of-sync happens
Rajeev Kulkarni [Tue, 27 Dec 2016 23:07:22 +0000 (15:07 -0800)]
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>
7 years agousb: xhci-plat: Add DT parameter to program xhci imod_interval
Manu Gautam [Fri, 24 Jun 2016 07:00:37 +0000 (12:30 +0530)]
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>
7 years agoqpnp-fg-gen3: improve TTF accuracy towards EOC
Nicholas Troast [Sat, 21 Jan 2017 00:47:31 +0000 (16:47 -0800)]
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>
7 years agoMerge "defconfig: msm: Enable HWBinder for msmcortex"
Linux Build Service Account [Thu, 2 Feb 2017 20:31:36 +0000 (12:31 -0800)]
Merge "defconfig: msm: Enable HWBinder for msmcortex"

7 years agoMerge "android: binder: support for scatter-gather."
Linux Build Service Account [Thu, 2 Feb 2017 20:31:35 +0000 (12:31 -0800)]
Merge "android: binder: support for scatter-gather."

7 years agoMerge "ath10k: Add support for the management over wmi"
Linux Build Service Account [Thu, 2 Feb 2017 20:31:34 +0000 (12:31 -0800)]
Merge "ath10k: Add support for the management over wmi"

7 years agoMerge "net: rmnet_data: Fix incorrect netlink handling"
Linux Build Service Account [Thu, 2 Feb 2017 20:31:33 +0000 (12:31 -0800)]
Merge "net: rmnet_data: Fix incorrect netlink handling"

7 years agoMerge "ath10k: disable HW checksum for WCN3990"
Linux Build Service Account [Thu, 2 Feb 2017 20:31:32 +0000 (12:31 -0800)]
Merge "ath10k: disable HW checksum for WCN3990"

7 years agoMerge "crypto: ice: Fix NULL pointer exception in ice."
Linux Build Service Account [Thu, 2 Feb 2017 20:31:31 +0000 (12:31 -0800)]
Merge "crypto: ice: Fix NULL pointer exception in ice."

7 years agoMerge "ARM: dts: msm: Enable CXIP LM feature for sdm660"
Linux Build Service Account [Thu, 2 Feb 2017 20:31:29 +0000 (12:31 -0800)]
Merge "ARM: dts: msm: Enable CXIP LM feature for sdm660"

7 years agoMerge "ARM: dts: msm: correct spi master number for sdm660"
Linux Build Service Account [Thu, 2 Feb 2017 20:31:28 +0000 (12:31 -0800)]
Merge "ARM: dts: msm: correct spi master number for sdm660"

7 years agoMerge "ath10k: Refactor HTT RX datapath for WCN3990"
Linux Build Service Account [Thu, 2 Feb 2017 20:31:27 +0000 (12:31 -0800)]
Merge "ath10k: Refactor HTT RX datapath for WCN3990"

7 years agoARM: dts: msm: update SMB138X TADC die temp parameters
Nicholas Troast [Thu, 8 Dec 2016 22:18:29 +0000 (14:18 -0800)]
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>
7 years agosched: Remove sched_enable_hmp flag
Olav Haugan [Thu, 2 Feb 2017 01:59:51 +0000 (17:59 -0800)]
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>
7 years agodefconfig: msm: Enable HWBinder for msmcortex
Neeraj Upadhyay [Thu, 2 Feb 2017 10:39:45 +0000 (16:09 +0530)]
defconfig: msm: Enable HWBinder for msmcortex

Enable HWBinder Domain for msmcortex.

Change-Id: Id3f9b7065b089a200278a50f77f6da5a6824c4fd
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agomsm: ADSPRPC: Use domain information to open channels
Sathish Ambley [Thu, 2 Feb 2017 17:35:55 +0000 (09:35 -0800)]
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>
7 years agoandroid: binder: support for file-descriptor arrays.
Martijn Coenen [Tue, 18 Oct 2016 11:58:55 +0000 (13:58 +0200)]
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: 5b3e17679b8246857652930b409db35501369bf1
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agoandroid: binder: support for scatter-gather.
Martijn Coenen [Fri, 30 Sep 2016 12:10:07 +0000 (14:10 +0200)]
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: 34b8f97791ba0c2ee897993484df5ee70a01d780
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>
7 years agoecm_ipa: remove redundant code
Gidon Studinski [Mon, 23 Jan 2017 09:55:53 +0000 (11:55 +0200)]
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>
7 years agoandroid: binder: add extra size to allocator.
Martijn Coenen [Fri, 30 Sep 2016 12:05:40 +0000 (14:05 +0200)]
android: binder: add extra size to allocator.

The binder_buffer allocator currently only allocates
space for the data and offsets buffers of a Parcel.
This change allows for requesting an additional chunk
of data in the buffer, which can for example be used
to hold additional meta-data about the transaction
(eg a security context).

Change-Id: Iabf59a64ff66a0457a9aa7077aef219c3dc05ba8
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: d7c114e9e7acd710307306090f4c4d70b48dec9c
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agoandroid: binder: refactor binder_transact()
Martijn Coenen [Thu, 29 Sep 2016 13:38:14 +0000 (15:38 +0200)]
android: binder: refactor binder_transact()

Moved handling of fixup for binder objects,
handles and file descriptors into separate
functions.

Change-Id: If68c2d93c3a42765cefda40dc807b39f6ab774c2
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 6ea3f1848b6c7fa1d419fe1dad799c09c8d003c2
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agoandroid: binder: support multiple /dev instances.
Martijn Coenen [Fri, 30 Sep 2016 14:08:09 +0000 (16:08 +0200)]
android: binder: support multiple /dev instances.

Add a new module parameter 'devices', that can be
used to specify the names of the binder device
nodes we want to populate in /dev.

Each device node has its own context manager, and
is therefore logically separated from all the other
device nodes.

The config option CONFIG_ANDROID_BINDER_DEVICES can
be used to set the default value of the parameter.

This approach was favored over using IPC namespaces,
mostly because we require a single process to be a
part of multiple binder contexts, which seemed harder
to achieve with namespaces.

Change-Id: Idc765f6186282bdfcf95960d7b4168c5f0992c31
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 5711c305d2ba2ca5e0b9dd865753a246314871e2
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agoandroid: binder: deal with contexts in debugfs.
Martijn Coenen [Mon, 17 Oct 2016 13:17:31 +0000 (15:17 +0200)]
android: binder: deal with contexts in debugfs.

Properly print the context in debugfs entries.

Change-Id: I409a5a3854e5071bca4ad79a986c2aa129d42952
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 830ceaa588bbf798054ba57de694d188d9ee0859
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agoandroid: binder: support multiple context managers.
Martijn Coenen [Fri, 30 Sep 2016 13:51:48 +0000 (15:51 +0200)]
android: binder: support multiple context managers.

Move the context manager state into a separate
struct context, and allow for each process to have
its own context associated with it.

Change-Id: I2a1c9adbc01ce1125e4f8661898e7ea4b4904ebe
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: e11560a518c69f45de0e35b659e46a73e4aec3a3
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agoandroid: binder: split flat_binder_object.
Martijn Coenen [Wed, 13 Jul 2016 10:06:49 +0000 (12:06 +0200)]
android: binder: split flat_binder_object.

flat_binder_object is used for both handling
binder objects and file descriptors, even though
the two are mostly independent. Since we'll
have more fixup objects in binder in the future,
instead of extending flat_binder_object again,
split out file descriptors to their own object
while retaining backwards compatibility to
existing user-space clients. All binder objects
just share a header.

Change-Id: Ife64444979fba493c1865d2e4f4213ec26d03720
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: d8e0aca03af20906d971b588bb65d4e0b9d7324d
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
[neeraju@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agodrivers: lmh_dcvsh: Provide CPU frequency in Hz for opp interface
Ram Chandrasekar [Thu, 26 Jan 2017 00:05:11 +0000 (17:05 -0700)]
drivers: lmh_dcvsh: Provide CPU frequency in Hz for opp interface

The frequency requested by LMH DCVSh hardware may not match an actual
frequency in the CPU clock plan. LMH DCVSh driver uses OPP framework to
match the hardware frequency request to a nearest valid CPU frequency. OPP
interface expects the frequency input in Hz and DCVSh driver is passing the
frequency value in kHz, which will result in error. So the hardware
mitigation frequency reported by the driver may not reflect the actual
frequency that the CPU is mitigated to.

Provide the hardware frequency input in Hz for OPP interface in LMH DCVSh
driver. Hardware mitigation frequency can be lower than the lowest
possible CPU frequency. In that case freq floor call will fail. So call
dev_pm_opp_find_freq_ceil to match to the lowest CPU frequency.

Change-Id: I6e9f7f5129320c37d41e20ca9735129f25440134
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agoARM: dts: msm: Add GPU power level speed bins for SDM660
Deepak Kumar [Tue, 31 Jan 2017 18:14:56 +0000 (23:44 +0530)]
ARM: dts: msm: Add GPU power level speed bins for SDM660

SDM660 supports multiple GPU power level speed bins. This
change adds all supported GPU power levels speed bins.
Specific speed bin will be used based on efuse value.

Change-Id: Ie542ee2439713ccbba17d38cef5e6ffd95a8b249
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
7 years agoath10k: Add support for the management over wmi
Rakesh Pillai [Mon, 30 Jan 2017 10:01:36 +0000 (15:31 +0530)]
ath10k: Add support for the management over wmi

With the new chipset wcn3990 and new firmware HL-1.0, management
is supported via the WMI rather than legacy HTT.
Add support for the management over wmi for the ath10k driver.

CRs-Fixed: 2000484
Change-Id: Iaf387243d63870e063b3b5bf34cd7232dae921fc
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
7 years agoath10k: Refactor start scan cmd and add peer flag for WCN3990
Rakesh Pillai [Mon, 23 Jan 2017 15:25:12 +0000 (20:55 +0530)]
ath10k: Refactor start scan cmd and add peer flag for WCN3990

WCN3990 target needs different value for scan flags.
Add proper scan flags for WCN3990 and attach based
on hardware detected.

CRs-Fixed: 1115143
Change-Id: Ie4c02adb5ae65e12d250389d945e048cb6720479
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
7 years agoath10k: Add support for NON BMI platform
Govind Singh [Mon, 9 Jan 2017 11:41:20 +0000 (17:11 +0530)]
ath10k: Add support for NON BMI platform

WCN3990 does not uses BMI for fw download.
Refactor startup sequence to support non BMI
platform.

CRs-Fixed: 1114413
Change-Id: I1e1f5c3808decf319474629ab257ae908895f3a8
Signed-off-by: Govind Singh <govinds@codeaurora.org>