Skip to content

Commit cffb3e7

Browse files
vijaykumar-sdavem330
authored andcommitted
sparc64: Set cpu state to offline when stopped
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> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f41e546 commit cffb3e7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/sparc/kernel/smp_64.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,7 @@ void __irq_entry smp_receive_signal_client(int irq, struct pt_regs *regs)
14431443

14441444
static void stop_this_cpu(void *dummy)
14451445
{
1446+
set_cpu_online(smp_processor_id(), false);
14461447
prom_stopself();
14471448
}
14481449

@@ -1454,6 +1455,8 @@ void smp_send_stop(void)
14541455
for_each_online_cpu(cpu) {
14551456
if (cpu == smp_processor_id())
14561457
continue;
1458+
1459+
set_cpu_online(cpu, false);
14571460
#ifdef CONFIG_SUN_LDOMS
14581461
if (ldom_domaining_enabled) {
14591462
unsigned long hv_err;

0 commit comments

Comments
 (0)