linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: mvebu: Disable CPU Idle on Armada 38x
@ 2015-02-06 18:04 Gregory CLEMENT
  2015-02-23 18:35 ` Gregory CLEMENT
  2015-02-23 19:12 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2015-02-06 18:04 UTC (permalink / raw)
  To: linux-arm-kernel

On Armada 38x SoCs, under heavy I/O load, the system hangs when CPU
Idle is enabled. Waiting for a solution to this issue, this patch
disables the CPU Idle support for this SoC.

As CPU Hot plug support also uses some of the CPU Idle functions it is
also affected by the same issue. This patch disables it also for the
Armada 38x SoCs.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: <stable@vger.kernel.org> # v3.17 +
---
 arch/arm/mach-mvebu/pmsu.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index d8ab605a44fa..05c8625bbc40 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -476,12 +476,22 @@ static int __init mvebu_v7_cpu_pm_init(void)
 		return 0;
 	of_node_put(np);
 
+	/*
+	 * Currently the CPU Idle support for Armada 38x is broken, as
+	 * the CPU Hotplug uses some of the CPU Idle functions it is
+	 * broken too, so let's disable it
+	 */
+	if (of_machine_is_compatible("marvell,armada380")) {
+		cpu_hotplug_disable();
+		pr_warn("CPU Hotplug support is currently broken on Armada 38x: disabling");
+	}
+
 	if (of_machine_is_compatible("marvell,armadaxp"))
 		ret = armada_xp_cpuidle_init();
 	else if (of_machine_is_compatible("marvell,armada370"))
 		ret = armada_370_cpuidle_init();
-	else if (of_machine_is_compatible("marvell,armada380"))
-		ret = armada_38x_cpuidle_init();
+	else if (of_machine_is_compatible("marvell,armada380")
+		 pr_warn("CPU Idle is currently broken on Armada 38x: disabling");
 	else
 		return 0;
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-25 17:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-06 18:04 [PATCH] ARM: mvebu: Disable CPU Idle on Armada 38x Gregory CLEMENT
2015-02-23 18:35 ` Gregory CLEMENT
2015-02-23 19:12 ` Thomas Petazzoni
2015-02-24 15:09   ` Gregory CLEMENT
2015-02-25 17:55     ` Gregory CLEMENT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).