Re: annoying frequent overcurrent messages.

From: Alan Stern
Date: Wed Jul 12 2006 - 13:18:00 EST


On Wed, 12 Jul 2006, Ray Lee wrote:

> On 7/12/06, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> > Dave Jones wrote:
> > > I have a box that's having its dmesg flooded with..
> > >
> > > hub 1-0:1.0: over-current change on port 1
> > > hub 1-0:1.0: over-current change on port 2
> > > hub 1-0:1.0: over-current change on port 1
> > > hub 1-0:1.0: over-current change on port 2
> > ...
> >
> > > over and over again..
> > > The thing is, this box doesn't even have any USB devices connected to it,
> > > so there's absolutely nothing I can do to remedy this.
> >
> > Since you're not using the UHCI controller on that computer, you could
> > simply rmmod uhci-hcd (or modify /etc/modprobe.conf to prevent it from
> > being loaded in the first place). That would stop the constant interrupts
> > and the syslog spamming.
>
> For the syslog spamming, you could jus emit the message once when the
> state is first noticed, then emit a everything good message when it
> clears up. There's no need to log it repeatedly during the problem
> period.

That's almost exactly how the driver behaves currently -- the message is
printed just once when the state is first noticed. Nothing is printed
when the state is cleared, and nothing gets printed repeatedly during the
problem period. But then the problem recurs very quickly.


On Wed, 12 Jul 2006, Dave Jones wrote:

> we could at least rate-limit the messages.

That's true for every message in the kernel. How do you decide which
messages to rate-limit?

Note that this particular message will cause problems only in the presence
of defective hardware.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/