summaryrefslogtreecommitdiff
path: root/src/drivers/ipmi/chip.h
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2019-07-22 16:31:35 +0200
committerMartin Roth <martinroth@google.com>2019-08-08 03:24:18 +0000
commit3d41a1399085cbd191ae7c47d706b3c6c6e44026 (patch)
tree80c7f8ad8322f66e4c1e41b688516c0dc8c4adf3 /src/drivers/ipmi/chip.h
parent6276dfee515dbe28a7ff5e3957af286aa62643ee (diff)
drivers/ipmi: Add option to wait for BMC
The BMC on Supermicro X11SSH takes 34 seconds to start the IPMI KCS, but the default timeout of the IPMI KCS code is just 100 msec. Add a configurable timeout option to wait for the BMC to become ready. As it only should boot very long after power on reset, it's not a problem on reset or warm boot. Tested on Supermicro X11SSH. The IPMI driver doesn't fail with a time-out any more. Change-Id: I22c6885eae6fd7c778ac37b18f95b8775e9064e3 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34569 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'src/drivers/ipmi/chip.h')
-rw-r--r--src/drivers/ipmi/chip.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/ipmi/chip.h b/src/drivers/ipmi/chip.h
index eb8b4e6d34..1c5afe7b59 100644
--- a/src/drivers/ipmi/chip.h
+++ b/src/drivers/ipmi/chip.h
@@ -24,6 +24,17 @@ struct drivers_ipmi_config {
u8 gpe_interrupt;
u8 have_apic;
u32 apic_interrupt;
+ /*
+ * Wait for BMC to boot.
+ * This can be used if the BMC takes a long time to boot after PoR:
+ * AST2400 on Supermicro X11SSH: 34 s
+ */
+ bool wait_for_bmc;
+ /*
+ * The timeout in seconds to wait for the IPMI service to be loaded.
+ * Will be used if wait_for_bmc is true.
+ */
+ u16 bmc_boot_timeout;
};
#endif /* _IMPI_CHIP_H_ */