From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from s1-ba86.socketlabs.email-od.com (s1-ba86.socketlabs.email-od.com [142.0.186.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 249F32253B0 for ; Thu, 25 Jun 2026 22:47:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=142.0.186.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782427669; cv=none; b=ZAnXpKMMGXZd/aDHFiTqjZItMZxnMRNzHOby77UtWEi8DDfXgRbBhlhyLcwgRQPWnMN5qB5naR/v002cspoV5tePUl+Y/N94m6/QjIrSkPeZYz4VmSjAY4rUg08PRWHUwl9JxN4KWUV87DiRqSjAcUYSL/piXGrAOio6nXc4+7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782427669; c=relaxed/simple; bh=k0cKblnjphOSscFoUU8t4GxbvZtlwozeiJ7FX4iNS+A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pheyn7X6IA+hmaqtfXCIxnW6Mm4woSTPuQS0v+uOlmMf6tGvwytv736TmyelnXIzZeDFOz/+Nz5lh8+r1UVxYZ4Dn3CQ/ZBz379sWes80r4aQhTyJTdC0qeVOcSqVJBYt1ucwix546/eL3oZYJSiE4CIpqVRE7Cmk/EvcSZcOKs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nalramli.com; spf=pass smtp.mailfrom=email-od.com; dkim=pass (1024-bit key) header.d=email-od.com header.i=@email-od.com header.b=fxl69Ei4; arc=none smtp.client-ip=142.0.186.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nalramli.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=email-od.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=email-od.com header.i=@email-od.com header.b="fxl69Ei4" DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1782427668; x=1785019668; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date:subject:cc:to:from:x-thread-info:subject:to:from:cc:reply-to; bh=mUM4h5webrIL3hHJwfioi6vOP6GUI22fY7vCjVOlmik=; b=fxl69Ei4jRZWOtYkbdALFln83Gttc6ShD7limRVjeAf9Mawa4/ZJSneVVfw+LrbSiOAPlEaGPwwlolxQogwNozpUQHZkhhwk3SlUNg/bphcfQzVKr4nAiR350AZsAEsPfy8Zd5YW6gWuX+jQv351pyRi3KLhOM1/l94dI0p6ohQ= X-Thread-Info: NDUwNC4xMi40Nzc4MTAwMDAwMTI2OGMubGludXgta2VybmVsPXZnZXIua2VybmVsLm9yZw== x-xsSpam: eyJTY29yZSI6MCwiRGV0YWlscyI6bnVsbH0= Received: from nalramli-fst-tp.. (d4-50-191-215.clv.wideopenwest.com [50.4.215.191]) by nalramli.com (Postfix) with ESMTPSA id 3E0D92CE01A2; Thu, 25 Jun 2026 18:47:46 -0400 (EDT) From: "Nabil S. Alramli" 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 Message-ID: <20260625224741.3632191-2-dev@nalramli.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260625224741.3632191-1-dev@nalramli.com> References: <20260625224741.3632191-1-dev@nalramli.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On certain hardware, the BMC firmware takes longer to become available. W= e 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 --- 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); =20 -#define GET_DEVICE_ID_MAX_RETRY 5 +#define GET_DEVICE_ID_MAX_RETRY 100 =20 /* Helper function for computing the IPMB checksum of some data. */ unsigned char ipmb_checksum(unsigned char *data, int size); --=20 2.43.0