[PATCH] discover/platform-powerpc: Increase IPMI timeout
Cyril Bur
cyrilbur at gmail.com
Thu Oct 26 15:34:52 AEDT 2017
On Thu, 2017-10-26 at 14:13 +1100, Samuel Mendoza-Jonas wrote:
> 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.
>
Reviewed-by: Cyril Bur <cyrilbur at gmail.com>
> Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
> ---
> discover/platform-powerpc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
More information about the Petitboot
mailing list