Commit graph

577552 commits

Author SHA1 Message Date
Vikram Mulukutla
3f11a4bc4f sched: core: Skip migrating tasks that aren't enqueued on dead_rq
During migrate_tasks, we have to drop the dead_rq lock in
order to preserve locking order when acquiring task->pi_lock.
This may allow the task to migrate off of dead_rq. Therefore,
don't attempt to migrate such a task again from dead_rq.

Change-Id: Id31b58e231d3dcd7d32e0dc7f264595d60a7c408
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2016-11-11 16:09:55 -08:00
Olav Haugan
45b8775b62 sched/core: Fix migrate tasks bail-out condition
Migrate tasks function is used by both hotplug and cpu isolation. During
hotplug all the cpus are stalled (in stop machine) while tasks are being
migrated. However, this is not the case during cpu isolation. A task
that was counted as a pinned thread might have been migrated off the
cpu. Take this into account when checking whether we have completed
moving all tasks off the runqueue.

Also ignore warning about tasks moving off the run-queue for isolation
use case.

Change-Id: I5c5f25eb9b1eaf0605b606a65e0ac86996fa5f27
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-11-10 14:19:05 -08:00
Olav Haugan
c82e2f73d1 core_ctl: Synchronize access to cluster cpu list
Cluster cpu list traversal is not properly protected against removal of
element by a separate thread. Add proper locking to ensure an element
cannot be removed while accessing the list.

In addition ensure we don't end up in a livelock never exiting the loop
due to hotplug continuously moving elements to the end of the list.

Change-Id: Ie98fe48c2f4fdd0244573229b77ee9823df9e214
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-11-10 14:19:00 -08:00
Linux Build Service Account
e95375540c Merge "crypto: msm: qce50: Prevent deadlock during timeout" 2016-11-09 16:25:10 -08:00
Linux Build Service Account
05a0fa2b20 Merge "dma-mapping: use iommu_unmap for unmapping address" 2016-11-09 16:25:09 -08:00
Linux Build Service Account
d9a9a205a9 Merge "ARM: dts: msm: switch to RPM control for regulators on MSMFALCON" 2016-11-09 16:25:09 -08:00
Linux Build Service Account
dd4dc008b8 Merge "fg-memif: update IMA error handling and clear sequence" 2016-11-09 16:25:07 -08:00
Linux Build Service Account
c05ea068d8 Merge "spmi: pmic-arb: support show_resume_irq" 2016-11-09 16:25:04 -08:00
Linux Build Service Account
0352bfd3f3 Merge "ASoC: wcd934x: Change SIDO reference to internal" 2016-11-09 16:25:03 -08:00
Linux Build Service Account
31ce266c3f Merge "msm: kgsl: Enable retention for gpu core clock" 2016-11-09 16:25:01 -08:00
Linux Build Service Account
67dc1ae411 Merge "msm: kgsl: Ignore EAGAIN when programming perfcounter" 2016-11-09 16:24:58 -08:00
Linux Build Service Account
2d01b7daf1 Merge "msm: kgsl: Increase fault detection threshold value" 2016-11-09 16:24:57 -08:00
Linux Build Service Account
af730b8728 Merge "wil6210: validate wil_pmc_alloc parameters" 2016-11-09 16:24:56 -08:00
Linux Build Service Account
71e6cbe0b0 Merge "mdss: sde: Add register read/write debugfs for SDE rotator" 2016-11-09 16:24:55 -08:00
Linux Build Service Account
cc699c3f57 Merge "msm: kgsl: Declare iomem addresses as void" 2016-11-09 16:24:54 -08:00
Linux Build Service Account
04fa73f4a4 Merge "msm: kgsl: Correct the merciu size for a540" 2016-11-09 16:24:53 -08:00
Yasir Malik
8ae62993fc crypto: msm: qce50: Prevent deadlock during timeout
Lock out interrupts during issuing dummy request in timeout to prevent from
a potential deadlock happening.

Change-Id: I986d8c36c839a1dee23761465ad331ffc31dd6ac
CRs-Fixed: 1008319
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Yasir Malik <ymalik@codeaurora.org>
2016-11-09 09:43:31 -08:00
Ashay Jaiswal
110f023c2c ARM: dts: msm: switch to RPM control for regulators on MSMFALCON
Convert most of the pmfalcon stub-regulator devices to a
rpm-smd-regulator devices. This ensures that requests made for
these regulators are aggregated by the RPM processor along with
the requests from other processors.
Also, add a dummy gfx_vreg_corner regulator until the CPR node
is added.

While at it, rename all regulators names and add pm/pm2 prefix
to differentiate between regulators on multiple supported PMICs.
Also update all clients with new regulator phandles.

CRs-Fixed: 1077493
Change-Id: I95b17de5bf17b62096d2c9d60633b6b30768752a
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-11-09 13:06:57 +05:30
Subbaraman Narayanamurthy
bc17be09da fg-memif: update IMA error handling and clear sequence
Based on the hardware documentation, update the IMA error
handling and clear sequence. In addition, check for DMA errors
and clear it before SRAM transactions begin. Also, check for IMA
hardware status to run the IMA clear sequence during ima_init and
not just based on IMA exception status alone. This is to help
with FG SRAM access to resume again properly in case of an error
encountered.

Change-Id: I583fa51599a1cbbd029cb45c075429730d2e071b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-08 12:29:05 -08:00
Linux Build Service Account
4a91ea36cb Merge "ARM: dts: msm: Add stub regulator devices for msmtriton" 2016-11-08 11:19:15 -08:00
Linux Build Service Account
684c01af9a Merge "ARM64: config: Add VPN support" 2016-11-08 11:19:14 -08:00
Linux Build Service Account
f83f0cdbd0 Merge "ARM: dts: msm: Add QRD interposer dts file for msmcobalt" 2016-11-08 11:19:13 -08:00
Linux Build Service Account
bd04f6926f Merge "qpnp-fg-gen3: support configuring ESR FCC based on charging status" 2016-11-08 11:19:11 -08:00
Linux Build Service Account
27df8e4425 Merge "ASoC: wcd934x: Fix fake button press for headset insertion" 2016-11-08 11:19:09 -08:00
Linux Build Service Account
9d893fc136 Merge "ASoC: wcd9335: Fix AANC click and pop in voice call" 2016-11-08 11:19:09 -08:00
Linux Build Service Account
087bcf1fcf Merge "ASoC: wcd934x: Fix AANC click and pop in voice call" 2016-11-08 11:19:08 -08:00
Linux Build Service Account
a97a6be4de Merge "sched: Ensure watchdog is enabled before disabling" 2016-11-08 11:19:07 -08:00
Linux Build Service Account
5a1e6a8dbf Merge "sched/core: Keep rq online after cpu isolation" 2016-11-08 11:19:06 -08:00
Linux Build Service Account
b820fbcdd2 Merge "sched: Fix race condition with active balance" 2016-11-08 11:19:06 -08:00
Linux Build Service Account
b8f4f2de0f Merge "qcom-charger: Add batch register access support for CC2 removal" 2016-11-08 11:19:05 -08:00
Linux Build Service Account
135b2c6882 Merge "msm: kgsl: Add speed bin read capabilities for A306a GPU" 2016-11-08 11:19:04 -08:00
Linux Build Service Account
e0a287f464 Merge "ARM: dts: msm: Add remote debugger device configuration for msmcobalt" 2016-11-08 11:19:03 -08:00
Linux Build Service Account
e733abf82b Merge "ANDROID: binder: Clear binder and cookie when setting handle in flat binder struct" 2016-11-08 11:19:02 -08:00
Linux Build Service Account
d64b4912b6 Merge "qpnp-smb2: fix reverse boost when input is removed" 2016-11-08 11:19:01 -08:00
Linux Build Service Account
f87432168b Merge "sound: usb: Add support to handle QMI client disconnect" 2016-11-08 11:18:59 -08:00
Linux Build Service Account
b6d823c863 Merge "coresight: tmc: fix mutex release" 2016-11-08 11:18:58 -08:00
Linux Build Service Account
97f85929b6 Merge "ASoC: wcd934x: fix MAD enable sequence for ADC2" 2016-11-08 11:18:58 -08:00
Linux Build Service Account
33938e1252 Merge "msm: soc: Avoid calling bus clear pdata" 2016-11-08 11:18:57 -08:00
Linux Build Service Account
74f298e6d1 Merge "msm: cpp: De-init bandwidth manager during error conditions" 2016-11-08 11:18:56 -08:00
Linux Build Service Account
3b757bec28 Merge "msm: cpp: Vote for nominal ahb clock while loading firmware" 2016-11-08 11:18:55 -08:00
Linux Build Service Account
e4d2402bc9 Merge "ARM: dts: msm: Enable VDD_APC CPR aging for msmcobalt v2" 2016-11-08 11:18:53 -08:00
Linux Build Service Account
34c43886b9 Merge "ARM: dts: msm: update VDD_APC CPR settings for msmcobalt" 2016-11-08 11:18:52 -08:00
Linux Build Service Account
dbf9862073 Merge "Revert "defconfig: msm64: msm: Compile vidc driver as LKM"" 2016-11-08 11:18:51 -08:00
Linux Build Service Account
1e46b9f6e9 Merge "gpio: qpnp-pin: Fix reading the GPIO mode for GPIO_LV_MV subtype" 2016-11-08 11:18:49 -08:00
Linux Build Service Account
3b37b07413 Merge "msm: kgsl: Enable limits management on A540v2" 2016-11-08 11:18:48 -08:00
Linux Build Service Account
e77fc25751 Merge "msm: vidc: Initialize the dcvs load during perf mode switch" 2016-11-08 11:18:47 -08:00
Linux Build Service Account
3b1bca8355 Merge "defconfig: msm: Add MSMTRITON in msmfalcon defconfig" 2016-11-08 11:18:46 -08:00
Linux Build Service Account
f78c7df422 Merge "crypto: msm: enable hw crypto driver for msmtriton" 2016-11-08 11:18:45 -08:00
Linux Build Service Account
3e792d2915 Merge "arm: qcom: Add support for msmtriton chipset" 2016-11-08 11:18:44 -08:00
Linux Build Service Account
59ef24e225 Merge "ARM: dts: msm: Disable clock gating on msmcobalt" 2016-11-08 11:18:43 -08:00