OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoscsi: ufs: error out all issued requests after shutdown
Asutosh Das [Tue, 13 Sep 2016 06:14:14 +0000 (11:44 +0530)]
scsi: ufs: error out all issued requests after shutdown

After PON (power-off notification) is sent, no requests
should be issued to the driver.
This change errors out all requests except from shutdown
context after shutdown is initiated.

Change-Id: Id499abc27303bfed72fab4d61abb872bad7d9043
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
7 years agoRevert "scsi: ufs: stub UFS shutdown handler"
Asutosh Das [Thu, 15 Sep 2016 06:56:28 +0000 (12:26 +0530)]
Revert "scsi: ufs: stub UFS shutdown handler"

This reverts commit aa484ff4b600 ("scsi: ufs: stub UFS shutdown
handler").
This is reverted so as to enable PON (Power-off Notification).
PON would notify the ufs device of the incoming power-down
so that the device can prepare for the same before
the power to the device is cut.

CRs-fixed: 941978
Change-Id: Idee8691d769218d7e732c9b7f936a2c40946b239
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Add stub regulator devices for msmtriton"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:17 +0000 (11:19 -0800)]
Merge "ARM: dts: msm: Add stub regulator devices for msmtriton"

7 years agoMerge "ARM64: config: Add VPN support"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:15 +0000 (11:19 -0800)]
Merge "ARM64: config: Add VPN support"

7 years agoMerge "ARM: dts: msm: Add QRD interposer dts file for msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:14 +0000 (11:19 -0800)]
Merge "ARM: dts: msm: Add QRD interposer dts file for msmcobalt"

7 years agoMerge "qpnp-fg-gen3: support configuring ESR FCC based on charging status"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:11 +0000 (11:19 -0800)]
Merge "qpnp-fg-gen3: support configuring ESR FCC based on charging status"

7 years agoMerge "ASoC: wcd934x: Fix fake button press for headset insertion"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:10 +0000 (11:19 -0800)]
Merge "ASoC: wcd934x: Fix fake button press for headset insertion"

7 years agoMerge "ASoC: wcd9335: Fix AANC click and pop in voice call"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:09 +0000 (11:19 -0800)]
Merge "ASoC: wcd9335: Fix AANC click and pop in voice call"

7 years agoMerge "ASoC: wcd934x: Fix AANC click and pop in voice call"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:08 +0000 (11:19 -0800)]
Merge "ASoC: wcd934x: Fix AANC click and pop in voice call"

7 years agoMerge "sched: Ensure watchdog is enabled before disabling"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:07 +0000 (11:19 -0800)]
Merge "sched: Ensure watchdog is enabled before disabling"

7 years agoMerge "sched/core: Keep rq online after cpu isolation"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:06 +0000 (11:19 -0800)]
Merge "sched/core: Keep rq online after cpu isolation"

7 years agoMerge "sched: Fix race condition with active balance"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:06 +0000 (11:19 -0800)]
Merge "sched: Fix race condition with active balance"

7 years agoMerge "qcom-charger: Add batch register access support for CC2 removal"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:05 +0000 (11:19 -0800)]
Merge "qcom-charger: Add batch register access support for CC2 removal"

7 years agoMerge "msm: kgsl: Add speed bin read capabilities for A306a GPU"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:04 +0000 (11:19 -0800)]
Merge "msm: kgsl: Add speed bin read capabilities for A306a GPU"

7 years agoMerge "ARM: dts: msm: Add remote debugger device configuration for msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:03 +0000 (11:19 -0800)]
Merge "ARM: dts: msm: Add remote debugger device configuration for msmcobalt"

7 years agoMerge "ANDROID: binder: Clear binder and cookie when setting handle in flat binder...
Linux Build Service Account [Tue, 8 Nov 2016 19:19:02 +0000 (11:19 -0800)]
Merge "ANDROID: binder: Clear binder and cookie when setting handle in flat binder struct"

7 years agoMerge "qpnp-smb2: fix reverse boost when input is removed"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:01 +0000 (11:19 -0800)]
Merge "qpnp-smb2: fix reverse boost when input is removed"

7 years agoMerge "sound: usb: Add support to handle QMI client disconnect"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:00 +0000 (11:19 -0800)]
Merge "sound: usb: Add support to handle QMI client disconnect"

7 years agoMerge "coresight: tmc: fix mutex release"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:59 +0000 (11:18 -0800)]
Merge "coresight: tmc: fix mutex release"

7 years agoMerge "ASoC: wcd934x: fix MAD enable sequence for ADC2"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:58 +0000 (11:18 -0800)]
Merge "ASoC: wcd934x: fix MAD enable sequence for ADC2"

7 years agoMerge "msm: soc: Avoid calling bus clear pdata"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:57 +0000 (11:18 -0800)]
Merge "msm: soc: Avoid calling bus clear pdata"

7 years agoMerge "msm: cpp: De-init bandwidth manager during error conditions"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:56 +0000 (11:18 -0800)]
Merge "msm: cpp: De-init bandwidth manager during error conditions"

7 years agoMerge "msm: cpp: Vote for nominal ahb clock while loading firmware"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:55 +0000 (11:18 -0800)]
Merge "msm: cpp: Vote for nominal ahb clock while loading firmware"

7 years agoMerge "ARM: dts: msm: Enable VDD_APC CPR aging for msmcobalt v2"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:53 +0000 (11:18 -0800)]
Merge "ARM: dts: msm: Enable VDD_APC CPR aging for msmcobalt v2"

7 years agoMerge "ARM: dts: msm: update VDD_APC CPR settings for msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:52 +0000 (11:18 -0800)]
Merge "ARM: dts: msm: update VDD_APC CPR settings for msmcobalt"

7 years agoMerge "Revert "defconfig: msm64: msm: Compile vidc driver as LKM""
Linux Build Service Account [Tue, 8 Nov 2016 19:18:51 +0000 (11:18 -0800)]
Merge "Revert "defconfig: msm64: msm: Compile vidc driver as LKM""

7 years agoMerge "gpio: qpnp-pin: Fix reading the GPIO mode for GPIO_LV_MV subtype"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:50 +0000 (11:18 -0800)]
Merge "gpio: qpnp-pin: Fix reading the GPIO mode for GPIO_LV_MV subtype"

7 years agoMerge "msm: kgsl: Enable limits management on A540v2"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:49 +0000 (11:18 -0800)]
Merge "msm: kgsl: Enable limits management on A540v2"

7 years agoMerge "msm: vidc: Initialize the dcvs load during perf mode switch"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:48 +0000 (11:18 -0800)]
Merge "msm: vidc: Initialize the dcvs load during perf mode switch"

7 years agoMerge "defconfig: msm: Add MSMTRITON in msmfalcon defconfig"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:46 +0000 (11:18 -0800)]
Merge "defconfig: msm: Add MSMTRITON in msmfalcon defconfig"

7 years agoMerge "crypto: msm: enable hw crypto driver for msmtriton"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:46 +0000 (11:18 -0800)]
Merge "crypto: msm: enable hw crypto driver for msmtriton"

7 years agoMerge "arm: qcom: Add support for msmtriton chipset"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:45 +0000 (11:18 -0800)]
Merge "arm: qcom: Add support for msmtriton chipset"

7 years agoMerge "ARM: dts: msm: Disable clock gating on msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:44 +0000 (11:18 -0800)]
Merge "ARM: dts: msm: Disable clock gating on msmcobalt"

7 years agoMerge "ASoC: wcd934x: Update surge recovery for version 1.1"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:43 +0000 (11:18 -0800)]
Merge "ASoC: wcd934x: Update surge recovery for version 1.1"

7 years agoMerge "qcedev: Validate Source and Destination addresses"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:42 +0000 (11:18 -0800)]
Merge "qcedev: Validate Source and Destination addresses"

7 years agoMerge "msm: mdss: Enable secure display and camera feature for msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:41 +0000 (11:18 -0800)]
Merge "msm: mdss: Enable secure display and camera feature for msmcobalt"

7 years agoMerge "msm: mdss: Add support for secure camera"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:40 +0000 (11:18 -0800)]
Merge "msm: mdss: Add support for secure camera"

7 years agoMerge "msm: mdss: add multiple partial update support"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:38 +0000 (11:18 -0800)]
Merge "msm: mdss: add multiple partial update support"

7 years agoMerge "msm: mdss: fix 32-bit compilation issues for MDSS DP driver"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:37 +0000 (11:18 -0800)]
Merge "msm: mdss: fix 32-bit compilation issues for MDSS DP driver"

7 years agoMerge "msm: mdss: Dynamic resolution switch with DSC on/off"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:36 +0000 (11:18 -0800)]
Merge "msm: mdss: Dynamic resolution switch with DSC on/off"

7 years agoMerge "mdss: Fix solid fill unpack pattern"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:36 +0000 (11:18 -0800)]
Merge "mdss: Fix solid fill unpack pattern"

7 years agoMerge "ARM: dts: msm: update VDD_GFX CPR aging and loop parameters for msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:35 +0000 (11:18 -0800)]
Merge "ARM: dts: msm: update VDD_GFX CPR aging and loop parameters for msmcobalt"

7 years agoMerge "ANDROID: binder: Add strong ref checks"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:34 +0000 (11:18 -0800)]
Merge "ANDROID: binder: Add strong ref checks"

7 years agoMerge "cgroup: Disable IRQs while holding css_set_lock"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:33 +0000 (11:18 -0800)]
Merge "cgroup: Disable IRQs while holding css_set_lock"

7 years agoMerge "msm: msm_bus: limit max chars read by sscanf"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:32 +0000 (11:18 -0800)]
Merge "msm: msm_bus: limit max chars read by sscanf"

7 years agoMerge "soc: qcom: Initialize structure with default values"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:31 +0000 (11:18 -0800)]
Merge "soc: qcom: Initialize structure with default values"

7 years agoMerge "qseecom: whitelist support for kernel client and listener"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:30 +0000 (11:18 -0800)]
Merge "qseecom: whitelist support for kernel client and listener"

7 years agoMerge "msm: vidc: Print secure info for a session"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:27 +0000 (11:18 -0800)]
Merge "msm: vidc: Print secure info for a session"

7 years agoMerge "qpnp-smb2: force HVDCP to 5V before reboot"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:26 +0000 (11:18 -0800)]
Merge "qpnp-smb2: force HVDCP to 5V before reboot"

7 years agoMerge "ARM: dts: msm: Enable ACD on msmcobalt v2"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:23 +0000 (11:18 -0800)]
Merge "ARM: dts: msm: Enable ACD on msmcobalt v2"

7 years agoMerge "msm: kgsl: Add MEMDESC_MAPPED back to for legacy mappings"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:22 +0000 (11:18 -0800)]
Merge "msm: kgsl: Add MEMDESC_MAPPED back to for legacy mappings"

7 years agoMerge "drivers: soc: implement notify_tx_abort()"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:11 +0000 (22:29 -0800)]
Merge "drivers: soc: implement notify_tx_abort()"

7 years agoMerge "ASoC: msm: q6dspv2: wake up tasks when ADSP goes down"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:10 +0000 (22:29 -0800)]
Merge "ASoC: msm: q6dspv2: wake up tasks when ADSP goes down"

7 years agoMerge "sched/hmp: Fix memory leak when task fork fails"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:08 +0000 (22:29 -0800)]
Merge "sched/hmp: Fix memory leak when task fork fails"

7 years agoMerge "sched/hmp: Use GFP_KERNEL for top task memory allocations"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:07 +0000 (22:29 -0800)]
Merge "sched/hmp: Use GFP_KERNEL for top task memory allocations"

7 years agoMerge "coresight: set appropriate clock rate for coresight devices"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:06 +0000 (22:29 -0800)]
Merge "coresight: set appropriate clock rate for coresight devices"

7 years agoMerge "msm: ADSPRPC: Use secure session device while freeing memory"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:05 +0000 (22:29 -0800)]
Merge "msm: ADSPRPC: Use secure session device while freeing memory"

7 years agoMerge "qpnp-fg-gen3: extend profile integrity word usage"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:05 +0000 (22:29 -0800)]
Merge "qpnp-fg-gen3: extend profile integrity word usage"

7 years agoMerge "qpnp-fg-gen3: expose a fake battery SOC for debug board"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:04 +0000 (22:29 -0800)]
Merge "qpnp-fg-gen3: expose a fake battery SOC for debug board"

7 years agoMerge "ASoC: pcm: change capture_active to unsigned int"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:04 +0000 (22:29 -0800)]
Merge "ASoC: pcm: change capture_active to unsigned int"

7 years agoMerge "ARM: dts: msm: Add camera dtsi file for msmcobalt qrd skuk board"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:03 +0000 (22:29 -0800)]
Merge "ARM: dts: msm: Add camera dtsi file for msmcobalt qrd skuk board"

7 years agoMerge "msm: kgsl: Allow mempools to configure from the device tree"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:02 +0000 (22:29 -0800)]
Merge "msm: kgsl: Allow mempools to configure from the device tree"

7 years agoMerge "defconfig: msm: Add support for GCC clocks"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:01 +0000 (22:29 -0800)]
Merge "defconfig: msm: Add support for GCC clocks"

7 years agoMerge "clk: qcom: gcc: Cleanup code for GCC clocks"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:01 +0000 (22:29 -0800)]
Merge "clk: qcom: gcc: Cleanup code for GCC clocks"

7 years agoMerge "soc: qcom: pil: Using devm_ioremap for mapping restart reg of modem"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:00 +0000 (22:29 -0800)]
Merge "soc: qcom: pil: Using devm_ioremap for mapping restart reg of modem"

7 years agoMerge "defconfig: msm: update msmfalcon defconfigs"
Linux Build Service Account [Tue, 8 Nov 2016 06:28:59 +0000 (22:28 -0800)]
Merge "defconfig: msm: update msmfalcon defconfigs"

7 years agoMerge "ASoC: add 352800Hz into the pcm known rates"
Linux Build Service Account [Tue, 8 Nov 2016 06:28:59 +0000 (22:28 -0800)]
Merge "ASoC: add 352800Hz into the pcm known rates"

7 years agoMerge "msm: ipa: fix division by 0 for DMA pipes"
Linux Build Service Account [Tue, 8 Nov 2016 06:28:58 +0000 (22:28 -0800)]
Merge "msm: ipa: fix division by 0 for DMA pipes"

7 years agoMerge "drivers: mfd: Fix 32-bit audio compile"
Linux Build Service Account [Tue, 8 Nov 2016 06:28:57 +0000 (22:28 -0800)]
Merge "drivers: mfd: Fix 32-bit audio compile"

7 years agomsm: kgsl: Add speed bin read capabilities for A306a GPU
Hareesh Gundu [Mon, 1 Aug 2016 11:36:00 +0000 (17:06 +0530)]
msm: kgsl: Add speed bin read capabilities for A306a GPU

A306a GPU have the two different frequency plans. The frequency
plan needs to be loaded dynamically based on the speed bin
information. Add support for A306a gpu to read the speed bin
information and choose frequency plan dynamically.

Change-Id: Iba53d4381d61f23ce1195a147493b0d292cd3723
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
7 years agoARM: dts: msm: Add QRD interposer dts file for msmcobalt
Zhenhua Huang [Fri, 4 Nov 2016 05:00:11 +0000 (13:00 +0800)]
ARM: dts: msm: Add QRD interposer dts file for msmcobalt

Add device tree support for msmcobalt interposer platform
using msmfalcon QRD.

CRs-Fixed: 1086541
Change-Id: If17aa7a60832b71a94d75718da07158e1474ef31
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
7 years agoARM64: config: Add VPN support
Ashwanth Goli [Mon, 7 Nov 2016 13:16:26 +0000 (18:46 +0530)]
ARM64: config: Add VPN support

Add native android VPN support for msm_falcon

Change-Id: I2689d42402befd849aff05353196c7c0a4d32d56
Signed-off-by: Ashwanth Goli <ashwanth@codeaurora.org>
7 years agoASoC: wcd934x: Fix fake button press for headset insertion
Phani Kumar Uppalapati [Tue, 8 Nov 2016 03:15:48 +0000 (19:15 -0800)]
ASoC: wcd934x: Fix fake button press for headset insertion

Fix fake button press when headset is inserted by properly
disabling micbias after the detection is completed.

CRs-Fixed: 1086418
Change-Id: I241a49dd36746c083b410a58c8c899ee0e9390ad
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
7 years agosched: Ensure watchdog is enabled before disabling
Olav Haugan [Thu, 3 Nov 2016 22:10:57 +0000 (15:10 -0700)]
sched: Ensure watchdog is enabled before disabling

There is a race between watchdog being enabled by hotplug and core
isolation disabling the watchdog. When a CPU is hotplugged in and
the hotplug lock has been released the watchdog thread might not
have run yet to enable the watchdog.  We have to wait for the
watchdog to be enabled before proceeding.

Change-Id: I88f73603b6d389a46f8e819d9b490091d5ba4fe9
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agosched/core: Keep rq online after cpu isolation
Olav Haugan [Thu, 3 Nov 2016 20:39:23 +0000 (13:39 -0700)]
sched/core: Keep rq online after cpu isolation

To move tasks off a cpu when offlining the rq needs to be offlined to
un-throttle tasks.  However, tasks might still run on the CPU even after
the CPU has been isolated (per-CPU threads). Thus we should leave the rq
in online state after tasks have been moved.

Change-Id: I61486e8648af0dbb82595fe699e1bc158e837362
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agosched: Fix race condition with active balance
Olav Haugan [Wed, 2 Nov 2016 00:30:36 +0000 (17:30 -0700)]
sched: Fix race condition with active balance

There is a race condition between checking for whether an active load
balance request has been set and clearing the request. A cpu might have
an active load balance request set and queued but not executed yet.
Before the load balance request is executed the request flag might be
cleared by cpu isolation. Then subsequently the load balancer or tick
might try to do another active load balance.  This can cause the same
active load balance work to be queued twice causing report of list
corruption.

Fix this by moving the clearing of the request to the stopper thread and
ensuring that load balance will not try to queue a request on an
already isolated cpu.

Change-Id: I5c900d2ee161fa692d66e3e66012398869715662
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agosched/hmp: Fix memory leak when task fork fails
Syed Rameez Mustafa [Fri, 4 Nov 2016 01:13:08 +0000 (18:13 -0700)]
sched/hmp: Fix memory leak when task fork fails

The scheduler allocates memory for the task load structures during
fork. It then relies to sched_exit() to be called to free that memory.
However, if the fork itself fails at any point after the allocation,
the memory is left unclaimed forever. Fix this memory leak by freeing
the allocated memory under error conditions.

Change-Id: I14a8290c9fcc4174ec80560e9f9d7bcdb119761f
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agosched/hmp: Use GFP_KERNEL for top task memory allocations
Syed Rameez Mustafa [Wed, 2 Nov 2016 01:13:36 +0000 (18:13 -0700)]
sched/hmp: Use GFP_KERNEL for top task memory allocations

Task load structure allocations can consume a lot of memory as the
number of tasks begin to increase. Also they might exhaust the atomic
memory pool pretty quickly if a workload starts spawning lots of
threads in a short amount of time thus increasing the possibility of
failed allocations. Move the call to init_new_task_load() outside
atomic context and start using GFP_KERNEL for allocations. There is
no need for this allocation to be in atomic context.

Change-Id: I357772e10bf8958804d9cd0c78eda27139054b21
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agosched/hmp: Use improved information for frequency notifications
Syed Rameez Mustafa [Wed, 2 Nov 2016 00:30:20 +0000 (17:30 -0700)]
sched/hmp: Use improved information for frequency notifications

Recent changes to scheduler guided frequency have started reporting
the maximum of the cpu load and the load of the top task on a CPU
to the governor. Use the same information to determine whether a
notification is necessary or not.

Change-Id: I1928c6cd0509952443a912ef54e0d72d5f75955d
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agosched/hmp: Remove capping when reporting load to the cpufreq governor
Syed Rameez Mustafa [Wed, 2 Nov 2016 00:34:01 +0000 (17:34 -0700)]
sched/hmp: Remove capping when reporting load to the cpufreq governor

Capping load when reporting to the governor was important prior to new
scheduler guided frequency changes as intra-cluster migrations would
sometimes lead to CPU loads well in excess of 100%. With the new top
task approach however, load greater than 100% is no longer possible
except for the same conditions that were previously exempted (i.e.
inter-cluster migrations and frequency aggregation).

Change-Id: I3e4f5e39ec9ae7eeaba9a567efd245a7aec1b7ad
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agoqpnp-fg-gen3: support configuring ESR FCC based on charging status
Subbaraman Narayanamurthy [Wed, 2 Nov 2016 02:31:44 +0000 (19:31 -0700)]
qpnp-fg-gen3: support configuring ESR FCC based on charging status

Currently, fuel gauge assumes that the battery charging current
is provided only by the main charger. When ESR pulse is needed,
it notifies only the main charger to lower its FCC. However, with
parallel charger also supplying the FCC to the battery, the main
charger can end up increasing its FCC instead of lowering it.
This is because of the fact that FCC of main charger is lower
than the total battery charging current because of the current
distribution to the parallel charger and the code sent by FG
allows it to increase its FCC.

Fix this by controlling ESR FCC current code to 300mA in software
when the device is charging and the parallel charger is enabled.
Switch back to hardware control when the device is not charging
or parallel charger is disabled.

Change-Id: I0e6e600f72f9ef8864f9b775df88f674de9cb52c
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-smb2: add support to configure charge inhibit
Subbaraman Narayanamurthy [Wed, 2 Nov 2016 22:25:32 +0000 (15:25 -0700)]
qpnp-smb2: add support to configure charge inhibit

Currently charge inhibit feature is enabled by default and the
charge inhibit threshold is not configurable. Add a device tree
parameter "qcom,chg-inhibit-threshold-mv" through which the
charge inhibit threshold can be configured. If the property is
not specified, then charge inhibit feature is kept disabled.

Change-Id: I464d720abc138e8cd9ba8d7f1704cd91f4408bee
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: update the ESR pulse width in pmicobalt
Subbaraman Narayanamurthy [Wed, 2 Nov 2016 20:53:47 +0000 (13:53 -0700)]
ARM: dts: msm: update the ESR pulse width in pmicobalt

As per the hardware documentation, increase the duration
between attempts to measure ESR as the ESR pulse amplitude got
increased. This is to reduce the power consumption.

Change-Id: I65027413ecb22a1e89e37a12f66c5abda6c3ba28
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: extend profile integrity word usage
Subbaraman Narayanamurthy [Thu, 27 Oct 2016 01:12:10 +0000 (18:12 -0700)]
qpnp-fg-gen3: extend profile integrity word usage

Currently, profile integrity register is using only bit 0 to
indicate whether the profile is loaded or not. Now that the
profile can be loaded and/or fuel gauge can be restarted by the
bootloader, extend the usage of that word by using other bits
to provide more information. This is to aid the debugging.

Change-Id: Ib04ab10998de2f57b05cd976c3e9c8a1e2f4c574
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: update empty voltage threshold and empty SOC irq handling
Subbaraman Narayanamurthy [Tue, 1 Nov 2016 23:29:46 +0000 (16:29 -0700)]
qpnp-fg-gen3: update empty voltage threshold and empty SOC irq handling

As per the hardware characterization, update the battery empty
voltage threshold to 2.8V. Since this moves the voltage little
away from cutoff voltage, update the empty SOC interrupt handling
to report SOC as 0. Since we only need the rising edge of empty
SOC interrupt, modify the interrupt flag as well.

Change-Id: I665a6f879af4e6b6e9f94b5464be7894d5ea67cb
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoqpnp-fg-gen3: expose a fake battery SOC for debug board
Subbaraman Narayanamurthy [Thu, 3 Nov 2016 19:02:52 +0000 (12:02 -0700)]
qpnp-fg-gen3: expose a fake battery SOC for debug board

When a debug board is present, battery ID will be something like
7 Kohms. Expose a fake battery SOC when this is detected. This
will help avoiding the device shutdown if a low battery voltage
is seen by FG and state of charge goes to 0.

Change-Id: I750b2adfb00f12960f74bd552a5896f66ecaece6
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoASoC: wcd9335: Fix AANC click and pop in voice call
Vidyakumar Athota [Fri, 4 Nov 2016 23:18:23 +0000 (16:18 -0700)]
ASoC: wcd9335: Fix AANC click and pop in voice call

Currently ANC output is connected to speaker path before PA
is enabled. This is causing click sound during voice call
when adaptive ANC is enabled. Fix this issue by connecting ANC
output to speaker path after PA is enabled.

Change-Id: I5f381b1e0c0222b8ae81d923da0b86d742b3cccd
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
7 years agoANDROID: binder: Clear binder and cookie when setting handle in flat binder struct
Arve Hjønnevåg [Mon, 17 Oct 2016 18:21:11 +0000 (23:51 +0530)]
ANDROID: binder: Clear binder and cookie when setting handle in flat binder struct

Prevents leaking pointers between processes

BUG: 30768347
Change-Id: Id898076926f658a1b8b27a3ccb848756b36de4ca
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Git-repo: https://android.googlesource.com/kernel/msm.git
Git-commit: 11032d745836280574827bb1db5e64a94945180e
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agoqpnp-smb2: force HVDCP to 5V before reboot
Nicholas Troast [Fri, 28 Oct 2016 18:02:03 +0000 (11:02 -0700)]
qpnp-smb2: force HVDCP to 5V before reboot

When the MSM resets the USB data lines are pulled low. If an HVDCP adapter
is attached and operating at >5V, and the phone reboots then the HVDCP
adapter will be in a bad state and the USB input will be suspended. Fix
this by forcing the HVDCP adapter to 5V in the shutdown path.

Change-Id: I953d42418f90398bd4248f8b761cf63943ce5532
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoqcom-charger: Add batch register access support for CC2 removal
Harry Yang [Tue, 18 Oct 2016 23:47:48 +0000 (16:47 -0700)]
qcom-charger: Add batch register access support for CC2 removal

Provide a convient and compact way for a bunch of register
reads/saves and writes.

CRs-Fixed: 1079913
Change-Id: Ica6a60f3f5bd1fad624d01ea410e62dbed09dac8
Signed-off-by: Harry Yang <harryy@codeaurora.org>
7 years agoqpnp-smb2: fix reverse boost when input is removed
Nicholas Troast [Fri, 16 Sep 2016 18:07:45 +0000 (11:07 -0700)]
qpnp-smb2: fix reverse boost when input is removed

When any input is removed it is likely that reverse boost can happen.
Detect reverse boost by checking if the switcher-power-ok interrupt
triggers 3 times within 1 second. If detected then suspend all input.
Once VBUS falls the input can be resumed for the next insertion.

Change-Id: I3dbe4fe426111023b60eefd968c426be7d6057b9
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoASoC: wcd934x: fix MAD enable sequence for ADC2
Bhalchandra Gajare [Tue, 1 Nov 2016 22:34:52 +0000 (15:34 -0700)]
ASoC: wcd934x: fix MAD enable sequence for ADC2

Microphone Activity Detection (MAD) hardware block in codec needs to
be in micbias mode and bandgap must be enabled whenever the input
to the MAD block is from ADC2. Change updates the codec register
sequence for MAD Input mixer control accordingly.

CRs-Fixed: 1085214
Change-Id: Ic57b1db8688ff634ed7d62279baa7c042d126550
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
7 years agoASoC: wcd934x: Fix AANC click and pop in voice call
Vidyakumar Athota [Fri, 4 Nov 2016 21:57:03 +0000 (14:57 -0700)]
ASoC: wcd934x: Fix AANC click and pop in voice call

Currently ANC output is connected to speaker path before PA
is enabled. This is causing click sound during voice call
when adaptive ANC is enabled. Fix this issue by connecting ANC
output to speaker path after PA is enabled.

Change-Id: I2103773a17e7d9ee5acb3f21dc955e2da493b3b4
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
7 years agomsm: ADSPRPC: Use secure session device while freeing memory
Sathish Ambley [Mon, 7 Nov 2016 18:11:51 +0000 (10:11 -0800)]
msm: ADSPRPC: Use secure session device while freeing memory

Make sure that the secure session device is used while freeing the
buffer that was allocated from secure memory.

Change-Id: I07802c21c661fe18fb2fda70980b04f646408d7d
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
7 years agoARM: dts: msm: Enable VDD_APC CPR aging for msmcobalt v2
Osvaldo Banuelos [Wed, 12 Oct 2016 22:19:59 +0000 (15:19 -0700)]
ARM: dts: msm: Enable VDD_APC CPR aging for msmcobalt v2

Enable VDD_APC CPR aging for msmcobalt v2 and define a CPR
closed-loop and open-loop voltage margin reduction of 15 mV
for CPR local rev 3 parts and greater to account for this
feature being enabled.

CRs-Fixed: 1081084
Change-Id: I50a3ca4e09c6cd6edeb5c15478989e19926c6576
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
7 years agoARM: dts: msm: update VDD_APC CPR settings for msmcobalt
Osvaldo Banuelos [Fri, 28 Oct 2016 05:25:44 +0000 (22:25 -0700)]
ARM: dts: msm: update VDD_APC CPR settings for msmcobalt

Update the default CPR min/max step quotient,
count repeat, consecutive down, and aging RO scaling
factor values for VDD_APC0 and VDD_APC1 to match the latest
hardware guidelines.

CRs-Fixed: 1080409
Change-Id: Ibb35a3f475725af96276389f78abb790ea5b5b81
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
7 years agoARM: dts: msm: Add stub regulator devices for msmtriton
Ashay Jaiswal [Mon, 7 Nov 2016 07:21:30 +0000 (12:51 +0530)]
ARM: dts: msm: Add stub regulator devices for msmtriton

Add stub regulator devices for msmtriton because RPM regulator
support is not yet in place.

CRs-Fixed: 1086513
Change-Id: I40220bcf960a10d7d6271e09b9f85107ed0c24af
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agodefconfig: msm: Add support for GCC clocks
Taniya Das [Mon, 7 Nov 2016 09:13:40 +0000 (14:43 +0530)]
defconfig: msm: Add support for GCC clocks

GCC clock controller is required to be enabled for all peripheral clocks
supported by global clock controller.

Change-Id: I11c6cc7f09b403a09bdf65a14f7b9d327c5d9613
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoclk: qcom: gcc: Cleanup code for GCC clocks
Taniya Das [Mon, 7 Nov 2016 09:07:39 +0000 (14:37 +0530)]
clk: qcom: gcc: Cleanup code for GCC clocks

The fmax & num_fmax have been updated to reflect the new variable names and
also fall back to branch clocks clock_ops for hardware branch clocks for
now until the new ops are available.

Change-Id: I8b86ebbabe37bb86bd20eafe9501c4677f21a553
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agomsm: kgsl: Allow mempools to configure from the device tree
Hareesh Gundu [Fri, 21 Oct 2016 14:11:24 +0000 (19:41 +0530)]
msm: kgsl: Allow mempools to configure from the device tree

Add driver support to configure mempools from the device tree.
This will enable mempools to configure per device specific and
reduces the high kgsl memory usage based on configuration.

CRs-Fixed: 1064046
Change-Id: I0a7e36b7e1fef9d42a4c0fe33d69a4debf15af2f
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>