Commit f357b3a7 authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Will Deacon

arm64: smp: Handle errors reported by the firmware

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>
parent 66f16a24
...@@ -141,6 +141,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle) ...@@ -141,6 +141,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