diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-11-29 15:37:06 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-12-03 22:10:56 -0600 |
commit | d0e44ad2a9633c9d49504f4a0c69ac730cdc0561 (patch) | |
tree | 54f8a0a0484cb64cbd8239f411c5eca79a13c132 /core/init.c | |
parent | 6d033ce35dc1071949d3be79a62d8964465b4b4f (diff) | |
download | skiboot-d0e44ad2a9633c9d49504f4a0c69ac730cdc0561.zip skiboot-d0e44ad2a9633c9d49504f4a0c69ac730cdc0561.tar.gz skiboot-d0e44ad2a9633c9d49504f4a0c69ac730cdc0561.tar.bz2 |
fast-reboot: bare bones fast reboot implementation for POWER9
This is an initial fast reboot implementation for p9 which has only been
tested on the Witherspoon platform, and without the use of NPUs, NX/VAS,
etc.
This has worked reasonably well so far, with no failures in about 100
reboots. It is hidden behind the traditional fast-reboot experimental
nvram option, until more platforms and configurations are tested.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/init.c')
-rw-r--r-- | core/init.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/init.c b/core/init.c index 0fdd7f0..2eeba75 100644 --- a/core/init.c +++ b/core/init.c @@ -502,6 +502,13 @@ void __noreturn load_and_boot_kernel(bool is_reboot) /* Wait for FW VPD data read to complete */ fsp_code_update_wait_vpd(true); + /* + * OCC takes few secs to boot. Call this as late as + * as possible to avoid delay. + */ + occ_pstates_init(); + occ_sensors_init(); + } else { /* fdt will be rebuilt */ free(fdt); @@ -512,13 +519,6 @@ void __noreturn load_and_boot_kernel(bool is_reboot) fsp_console_select_stdout(); - /* - * OCC takes few secs to boot. Call this as late as - * as possible to avoid delay. - */ - occ_pstates_init(); - occ_sensors_init(); - /* Use nvram bootargs over device tree */ cmdline = nvram_query("bootargs"); if (cmdline) { |