linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: kexec: offline non panic CPUs on Kdump panic
@ 2013-07-26  5:41 vijay.kilari at gmail.com
  2013-07-26 10:49 ` Will Deacon
  2013-07-26 17:05 ` Stephen Warren
  0 siblings, 2 replies; 15+ messages in thread
From: vijay.kilari at gmail.com @ 2013-07-26  5:41 UTC (permalink / raw)
  To: linux-arm-kernel

From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>

In case of normal kexec kernel load, all cpu's are offlined
before calling machine_kexec() under kernel_kexec() function.
But in case crash panic cpus are relaxed in
machine_crash_nonpanic_core() SMP function but not offlined.

When crash kernel is loaded with kexec and on panic trigger
machine_kexec() checks for number of cpus online.
If more than one cpu is online machine_kexec() fails to load
with below error

kexec: error: multiple CPUs still online

In machine_crash_nonpanic_core() SMP function, offline CPU
before cpu_relax

Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
---
 arch/arm/kernel/machine_kexec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c
index 4fb074c..163b160 100644
--- a/arch/arm/kernel/machine_kexec.c
+++ b/arch/arm/kernel/machine_kexec.c
@@ -73,6 +73,7 @@ void machine_crash_nonpanic_core(void *unused)
 	crash_save_cpu(&regs, smp_processor_id());
 	flush_cache_all();
 
+	set_cpu_online(smp_processor_id(), false);
 	atomic_dec(&waiting_for_crash_ipi);
 	while (1)
 		cpu_relax();
-- 
1.7.9.5

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

end of thread, other threads:[~2013-08-13 11:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26  5:41 [PATCH] ARM: kexec: offline non panic CPUs on Kdump panic vijay.kilari at gmail.com
2013-07-26 10:49 ` Will Deacon
2013-07-26 17:08   ` Stephen Warren
2013-07-26 17:11     ` Will Deacon
2013-07-30 10:37     ` Vijay Kilari
2013-07-30 16:59       ` Stephen Warren
2013-07-31 11:37         ` Vijay Kilari
2013-07-31 17:14           ` Stephen Warren
2013-08-01 13:49             ` Vijay Kilari
2013-08-01 16:25               ` Stephen Warren
2013-08-12 12:18                 ` Vijay Kilari
2013-08-13 11:18                   ` Will Deacon
2013-07-26 17:05 ` Stephen Warren
2013-07-30 10:05   ` Vijay Kilari
2013-07-30 16:57     ` Stephen Warren

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).