All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nabil S. Alramli" <dev@nalramli.com>
To: corey@minyard.net
Cc: dev@nalramli.com, nalramli@fastly.com,
	openipmi-developer@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: [bmc/for-next RFC 1/1] ipmi: Retry BMC 100 times
Date: Thu, 25 Jun 2026 18:47:41 -0400	[thread overview]
Message-ID: <20260625224741.3632191-2-dev@nalramli.com> (raw)
In-Reply-To: <20260625224741.3632191-1-dev@nalramli.com>

On certain hardware, the BMC firmware takes longer to become available. We
get errors that look like below, after which the BMC does not recover and
is unavailable for the rest of the boot:

```
kernel: ipmi_si IPI0001:00: BMC returned 0xc0, retry get bmc device id
kernel: ipmi_si IPI0001:00: BMC returned 0xc0, retry get bmc device id
kernel: ipmi_si IPI0001:00: BMC returned 0xc0, retry get bmc device id
kernel: ipmi_si IPI0001:00: BMC returned 0xc0, retry get bmc device id
kernel: ipmi_si IPI0001:00: BMC returned 0xc0, retry get bmc device id
kernel: ipmi_si IPI0001:00: There appears to be no BMC at this location
```

The fix is to increase the number of retries from 5 to 100, which allows
the BMC firmware on this hardware enough time to start up.

Signed-off-by: Nabil S. Alramli <dev@nalramli.com>
---
 include/linux/ipmi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h
index 7da6602eab71..662c664ce9de 100644
--- a/include/linux/ipmi.h
+++ b/include/linux/ipmi.h
@@ -339,7 +339,7 @@ struct ipmi_smi_info {
 /* This is to get the private info of struct ipmi_smi */
 extern int ipmi_get_smi_info(int if_num, struct ipmi_smi_info *data);
 
-#define GET_DEVICE_ID_MAX_RETRY		5
+#define GET_DEVICE_ID_MAX_RETRY		100
 
 /* Helper function for computing the IPMB checksum of some data. */
 unsigned char ipmb_checksum(unsigned char *data, int size);
-- 
2.43.0


  reply	other threads:[~2026-06-25 22:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25 22:47 [bmc/for-next RFC 0/1] ipmi: Retry BMC 100 times Nabil S. Alramli
2026-06-25 22:47 ` Nabil S. Alramli [this message]
2026-06-26  3:53 ` Corey Minyard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260625224741.3632191-2-dev@nalramli.com \
    --to=dev@nalramli.com \
    --cc=corey@minyard.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nalramli@fastly.com \
    --cc=openipmi-developer@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.