All of lore.kernel.org
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@debian.org>
To: Corey Minyard <corey@minyard.net>
Cc: openipmi-developer@lists.sourceforge.net,
	linux-kernel@vger.kernel.org,  kernel-team@meta.com,
	Dan Melnic <dmm@meta.com>
Subject: Re: [PATCH] ipmi:kcs: Rate limit the invalid state warning
Date: Fri, 30 Oct 2026 06:19:49 -0700	[thread overview]
Message-ID: <auSYkgAaz_jPC44A@gmail.com> (raw)
In-Reply-To: <auSU1tHoDTrIkHoR@mail.minyard.net>

On Fri, Oct 30, 2026 at 08:00:06AM -0500, Corey Minyard wrote:
> On Fri, Oct 30, 2026 at 03:29:45AM -0700, Breno Leitao wrote:
> > start_kcs_transaction() warns each time it is asked to start a
> > transaction while the KCS state machine is busy. The warning is not
> > rate limited, so if the SI layer believes the interface is idle while
> > the state machine is still running, every message sent to the BMC logs
> > another line.
> > 
> > Kernels carrying commit c608966f3f9c ("ipmi: fix msg stack when IPMI is
> > disconnected") hit this. When the interface is declared hosed, the
> > state machine is reset to KCS_ERROR0 rather than KCS_IDLE, and keeps
> > walking the error states while the SI layer, which treats it as idle,
> > tries to start new messages.
> > 
> > One host logged 29K of these lines in four days, several per second:
> > 
> >   [Thu Oct 29 14:55:54 2026] ipmi_si dmi-ipmi-si.0: KCS in invalid state 9
> >   [Thu Oct 29 14:55:55 2026] ipmi_si dmi-ipmi-si.0: KCS in invalid state 7
> >   [Thu Oct 29 14:55:55 2026] ipmi_si dmi-ipmi-si.0: KCS in invalid state 8
> >   [Thu Oct 29 14:55:55 2026] ipmi_si dmi-ipmi-si.0: KCS in invalid state 9
> >   [Thu Oct 29 14:55:55 2026] ipmi_si dmi-ipmi-si.0: KCS in invalid state 7
> 
> The rate limiting is a good idea.  I've included the patch.
> 
> However, it also sounds like you don't have working IPMI hardware on
> these systems.  The change you mention just exacerbates the problem
> here, but I think it would be a good idea to track down why this is
> happening.
> 
> If you really have working IPMI hardware, then it would be a good
> idea to trace down why this is happening.

Right. This is the Meta fleet, where we see a bunch of IPMI problems,
given the absurd number of hosts.

My main interest here is keeping these errors from flooding our
monitoring systems, but I am fairly sure other folks are looking into
the IPMI issues themselves.

> What specific kernel version are you running?

It happened on a mix of kernels (6.13, 6.16 and possibly 7.1).

> BTW, I need a link to the discussion about this so I can add a Closes:
> tag to the git change.

Sorry, I don't have a public link to Dan's report.

Thanks for the review and picking the patch.
--breno

      reply	other threads:[~2026-10-30 13:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 10:29 [PATCH] ipmi:kcs: Rate limit the invalid state warning Breno Leitao
2026-10-30 13:00 ` Corey Minyard
2026-10-30 13:19   ` Breno Leitao [this message]

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=auSYkgAaz_jPC44A@gmail.com \
    --to=leitao@debian.org \
    --cc=corey@minyard.net \
    --cc=dmm@meta.com \
    --cc=kernel-team@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --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.