secondary_data.stack = NULL;
__flush_dcache_area(&secondary_data, sizeof(secondary_data));
status = READ_ONCE(secondary_data.status);
----- - if (ret && status) {
-
- if (status == CPU_MMU_OFF)
- status = READ_ONCE(__early_cpu_boot_status);
-
- switch (status & CPU_BOOT_STATUS_MASK) {
- default:
- pr_err("CPU%u: failed in unknown state : 0x%lx\n",
- cpu, status);
- cpus_stuck_in_kernel++;
+++++ + if (status == CPU_MMU_OFF)
+++++ + status = READ_ONCE(__early_cpu_boot_status);
+
---- - if (status == CPU_MMU_OFF)
---- - status = READ_ONCE(__early_cpu_boot_status);
---- -
---- - switch (status & CPU_BOOT_STATUS_MASK) {
---- - 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)) {
---- - pr_crit("CPU%u: died during early boot\n", cpu);
---- - break;
---- - }
---- - pr_crit("CPU%u: may not have shut down cleanly\n", cpu);
---- - /* Fall through */
---- - case CPU_STUCK_IN_KERNEL:
---- - pr_crit("CPU%u: is stuck in kernel\n", cpu);
---- - if (status & CPU_STUCK_REASON_52_BIT_VA)
---- - pr_crit("CPU%u: does not support 52-bit VAs\n", cpu);
---- - if (status & CPU_STUCK_REASON_NO_GRAN)
---- - pr_crit("CPU%u: does not support %luK granule \n", cpu, PAGE_SIZE / SZ_1K);
---- - cpus_stuck_in_kernel++;
+++++ + switch (status & CPU_BOOT_STATUS_MASK) {
+++++ + 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)) {
+++++ + pr_crit("CPU%u: died during early boot\n", cpu);
break;
- case CPU_KILL_ME:
- if (!op_cpu_kill(cpu)) {
- pr_crit("CPU%u: died during early boot\n", cpu);
- break;
- }
- pr_crit("CPU%u: may not have shut down cleanly\n", cpu);
- /* Fall through */
- case CPU_STUCK_IN_KERNEL:
- pr_crit("CPU%u: is stuck in kernel\n", cpu);
- if (status & CPU_STUCK_REASON_52_BIT_VA)
- pr_crit("CPU%u: does not support 52-bit VAs\n", cpu);
- if (status & CPU_STUCK_REASON_NO_GRAN)
- pr_crit("CPU%u: does not support %luK granule \n", cpu, PAGE_SIZE / SZ_1K);
- cpus_stuck_in_kernel++;
- break;
----- - case CPU_PANIC_KERNEL:
----- - panic("CPU%u detected unsupported configuration\n", cpu);
}
+++++ + pr_crit("CPU%u: may not have shut down cleanly\n", cpu);
+++++ + /* Fall through */
+++++ + case CPU_STUCK_IN_KERNEL:
+++++ + pr_crit("CPU%u: is stuck in kernel\n", cpu);
+++++ + if (status & CPU_STUCK_REASON_52_BIT_VA)
+++++ + pr_crit("CPU%u: does not support 52-bit VAs\n", cpu);
+++++ + if (status & CPU_STUCK_REASON_NO_GRAN) {
+++++ + pr_crit("CPU%u: does not support %luK granule\n",
+++++ + cpu, PAGE_SIZE / SZ_1K);
+++++ + }
+++++ + cpus_stuck_in_kernel++;
+++++ + break;
+++++ + case CPU_PANIC_KERNEL:
+++++ + panic("CPU%u detected unsupported configuration\n", cpu);
}
return ret;