Commit 4b40393b authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Greg Kroah-Hartman

arm64: smp: Handle errors reported by the firmware

[ Upstream commit f357b3a7 ]

The __cpu_up() routine ignores the errors reported by the firmware
for a CPU bringup operation and looks for the error status set by the
booting CPU. If the CPU never entered the kernel, we could end up
in assuming stale error status, which otherwise would have been
set/cleared appropriately by the booting CPU.
Reported-by: default avatarSteve Capper <steve.capper@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e3d27b94
...@@ -146,6 +146,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle) ...@@ -146,6 +146,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle)
} }
} else { } else {
pr_err("CPU%u: failed to boot: %d\n", cpu, ret); pr_err("CPU%u: failed to boot: %d\n", cpu, ret);
return ret;
} }
secondary_data.task = NULL; secondary_data.task = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment