summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-10-26 14:10:57 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-10-26 14:11:50 +1100
commit093178c4a93ab6f25aa40101de1910368260228f (patch)
tree6863c656a8ed3f62de42d28a4ece392b76495fd6
parent24ccb34938342f414b888553882ef2ee976d02a0 (diff)
downloadtalos-petitboot-093178c4a93ab6f25aa40101de1910368260228f.tar.gz
talos-petitboot-093178c4a93ab6f25aa40101de1910368260228f.zip
discover/platform-powerpc: Increase IPMI timeoutv1.6.2
On OpenBMC platforms IPMI requests can take over five seconds to complete. OpenBMC does inform OPAL in BT init that it may take up to ten seconds to respond to any requests, so update our timeout value to accommodate this extra delay. On other platforms this will won't change anything (AMI- and SMC- based BMCs for example respond in under a second), but on OpenBMC platforms such as Witherspoon this will delay Petitboot significantly while we wait for the response. This is not ideal but we need to wait in order to receive important information such as a safe mode request. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--discover/platform-powerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index 02d9a20..ed5733e 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -25,7 +25,7 @@
static const char *partition = "common";
static const char *sysparams_dir = "/sys/firmware/opal/sysparams/";
static const char *devtree_dir = "/proc/device-tree/";
-static const int ipmi_timeout = 5000; /* milliseconds. */
+static const int ipmi_timeout = 10000; /* milliseconds. */
struct param {
char *name;
OpenPOWER on IntegriCloud