diff options
author | Joel Stanley <joel@jms.id.au> | 2014-11-04 00:02:02 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-03-04 16:02:20 +0800 |
commit | 573d0a9af9e46afbefc34cf95510f3d91bc778f6 (patch) | |
tree | 37623706790cdc6c3d2ea0406fdc3e488c42ac69 /core/init.c | |
parent | 81791e5da50b9804a19f2bfbc25916791b28d499 (diff) | |
download | skiboot-573d0a9af9e46afbefc34cf95510f3d91bc778f6.zip skiboot-573d0a9af9e46afbefc34cf95510f3d91bc778f6.tar.gz skiboot-573d0a9af9e46afbefc34cf95510f3d91bc778f6.tar.bz2 |
hw/ipmi: Set firmware progress sensor
We set the IPMI firmware progress sensor to indicate the boot progress
of the system. The x86-centric IPMI names don't fit perfectly into what
skiboot does, but they do give some indication of the system state.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'core/init.c')
-rw-r--r-- | core/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/init.c b/core/init.c index ac61c37..1fd8d2e 100644 --- a/core/init.c +++ b/core/init.c @@ -43,6 +43,7 @@ #include <centaur.h> #include <libfdt/libfdt.h> #include <timer.h> +#include <ipmi.h> #include <ipmi.h> @@ -374,6 +375,8 @@ void __noreturn load_and_boot_kernel(bool is_reboot) load_initramfs(); + ipmi_set_fw_progress_sensor(IPMI_FW_OS_BOOT); + if (!is_reboot) { /* We wait for the nvram read to complete here so we can * grab stuff from there such as the kernel arguments @@ -668,6 +671,8 @@ void __noreturn main_cpu_entry(const void *fdt, u32 master_cpu) /* Add OPAL timer related properties */ late_init_timers(); + ipmi_set_fw_progress_sensor(IPMI_FW_PCI_INIT); + /* * These last few things must be done as late as possible * because they rely on various other things having been setup, |