Subject: Re: [PATCH v2 2/2] arm64: Implement panic_smp_self_stop()

From: Will Deacon <[email-masked]>
Date: Tue, 18 Jun 2019 13:51:51 +0100

On Mon, Jun 17, 2019 at 11:35:19PM +0300, Aaro Koskinen wrote:
> From: Aaro Koskinen <[email-masked]>
> 
> Currently arm64 uses the default implementation of panic_smp_self_stop()
> where the CPU runs in a cpu_relax() loop unable to receive IPIs anymore.
> As a result, when two CPUs panic() simultaneously we get "SMP: failed to
> stop secondary CPUs" warnings and extra delays before a reset, because
> smp_send_stop() still tries to stop the other paniced CPU.
> 
> Provide an implementation of panic_smp_self_stop() that is identical to
> the IPI CPU stop handler, so that the online status of stopped CPUs gets
> properly updated.
> 
> Signed-off-by: Aaro Koskinen <[email-masked]>
> ---
> 
> 	v2: Update the commit log
> 	    Rename ipi_cpu_stop() to local_cpu_stop() and make it void func
> 	    Add a comment for panic_smp_self_stop()
> 
> 	v1: https://patchwork.kernel.org/patch/10988103/
> 
>  arch/arm64/kernel/smp.c | 19 +++++++++++++------
>  1 file changed, 13 insertions(+), 6 deletions(-)

Acked-by: Will Deacon <[email-masked]>

Will

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel