From: Samuel Mendoza-Jonas Date: Thu, 26 Oct 2017 03:10:57 +0000 (+1100) Subject: discover/platform-powerpc: Increase IPMI timeout X-Git-Tag: v1.6.2^0 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=093178c4a93ab6f25aa40101de1910368260228f;p=petitboot discover/platform-powerpc: Increase IPMI timeout 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 --- 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;