From: Will Deacon Date: Tue, 27 Aug 2019 14:54:56 +0000 (+0100) Subject: arm64: smp: Treat unknown boot failures as being 'stuck in kernel' X-Git-Tag: v5.15~5475^2~6^8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebef746543fd1aa162216b0e484eb9062b65741d;p=platform%2Fkernel%2Flinux-starfive.git arm64: smp: Treat unknown boot failures as being 'stuck in kernel' When we fail to bring a secondary CPU online and it fails in an unknown state, we should assume the worst and increment 'cpus_stuck_in_kernel' so that things like kexec() are disabled. Reviewed-by: Mark Rutland Signed-off-by: Will Deacon --- diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 1f8aeb7..dc9fe87 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -147,6 +147,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle) default: pr_err("CPU%u: failed in unknown state : 0x%lx\n", cpu, status); + cpus_stuck_in_kernel++; break; case CPU_KILL_ME: if (!op_cpu_kill(cpu)) {