mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] sparc64: Set cpu state to offline when stopped
@ 2016-11-10 22:43 Vijay Kumar
  2016-11-10 22:43 ` [PATCH 2/4] sparc64: Migrate hvcons irq to panicked cpu Vijay Kumar
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Vijay Kumar @ 2016-11-10 22:43 UTC (permalink / raw)
  To: davem, sparclinux; +Cc: karl.volz, rob.gardner, linux-kernel

CPU needs to be marked offline before stopping it. When not marked
offline, the xcall receives HV_EWOULDBLOCK and so assumes that not all
CPUs received the message, and retries. After 10000 retries, it finally
fails with fatal mondo timeout.

Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
---
 arch/sparc/kernel/smp_64.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c
index d3035ba..14138ad 100644
--- a/arch/sparc/kernel/smp_64.c
+++ b/arch/sparc/kernel/smp_64.c
@@ -1435,6 +1435,7 @@ void __irq_entry smp_receive_signal_client(int irq, struct pt_regs *regs)
 
 static void stop_this_cpu(void *dummy)
 {
+	set_cpu_online(smp_processor_id(), false);
 	prom_stopself();
 }
 
@@ -1446,6 +1447,8 @@ void smp_send_stop(void)
 		for_each_online_cpu(cpu) {
 			if (cpu == smp_processor_id())
 				continue;
+
+			set_cpu_online(cpu, false);
 #ifdef CONFIG_SUN_LDOMS
 			if (ldom_domaining_enabled) {
 				unsigned long hv_err;
-- 
1.7.1

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

end of thread, other threads:[~2016-11-10 23:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-10 22:43 [PATCH 1/4] sparc64: Set cpu state to offline when stopped Vijay Kumar
2016-11-10 22:43 ` [PATCH 2/4] sparc64: Migrate hvcons irq to panicked cpu Vijay Kumar
2016-11-10 22:43 ` [PATCH 3/4] sparc64: Send break twice from console to return to boot prom Vijay Kumar
2016-11-10 22:43 ` [PATCH 4/4] Documentation/sparc: Steps for sending break on sunhv console Vijay Kumar
2016-11-10 23:27 ` [PATCH 1/4] sparc64: Set cpu state to offline when stopped David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®