aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2023-05-13 22:33:14 +1000
committerReza Arbab <arbab@linux.ibm.com>2023-06-06 13:32:12 -0500
commit25e28eae9acb0275b7c3a7f3377327b30aae6b5c (patch)
treee4dde23c969ab5186046ccd3b958ccb9c040c50b /core
parentd40064f479e6a94c2ff7714046d40818b4d993f0 (diff)
downloadskiboot-25e28eae9acb0275b7c3a7f3377327b30aae6b5c.zip
skiboot-25e28eae9acb0275b7c3a7f3377327b30aae6b5c.tar.gz
skiboot-25e28eae9acb0275b7c3a7f3377327b30aae6b5c.tar.bz2
core/init: Move opal_mpipl_init earlier
There doesn't seem to be any reason to call opal_mpipl_init so late, after sleep, traps, interrupts, machine checks, watchdog, etc., are all disabled. Move it earlier. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/init.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/init.c b/core/init.c
index 005ecf3..e832a00 100644
--- a/core/init.c
+++ b/core/init.c
@@ -574,6 +574,8 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
if (!occ_sensors_init())
dts_sensor_create_nodes(sensor_node);
+ opal_mpipl_init();
+
} else {
/* fdt will be rebuilt */
free(fdt);
@@ -638,10 +640,6 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
patch_traps(false);
cpu_set_hile_mode(false); /* Clear HILE on all CPUs */
- /* init MPIPL */
- if (!is_reboot)
- opal_mpipl_init();
-
checksum_romem();
debug_descriptor.state_flags |= OPAL_BOOT_COMPLETE;