From: Andrew Morton <akpm@zip.com.au>
To: Denny Gudea <ekay@ecs.fullerton.edu>
Cc: netdev@oss.sgi.com, linux-kernel@vger.kernel.org
Subject: Re: 3c59x.c - kernel message explosion (fwd)
Date: Wed, 03 Apr 2002 15:59:18 -0800 [thread overview]
Message-ID: <3CAB9756.C5F89C13@zip.com.au> (raw)
In-Reply-To: <Pine.GSO.4.33.0204031538340.19587-100000@titan.ecs.fullerton.edu>
Denny Gudea wrote:
>
> Hi,
>
> id like to thank you for maintaining this driver..
>
> i have a 3com 3c905 and im using 3c59x.c driver to run it in my linux
> machine. it is connected to a hub on a network with 7 nodes. it seems like
> one of the hosts on my network has a duplex problem (as is described in
> vortex.txt). the problem i'm having is that the driver does a lot of
> kernel messages for this error even though my debug is set to the default.
>
> i've looked at the code and the problem seems to be due to a small typo:
> this code segment begins at line 1826:
> ------------------------------------------------
> if (status & TxComplete) { /* Really "TxError" for us. */
> tx_status = inb(ioaddr + TxStatus);
> /* Presumably a tx-timeout. We must merely re-enable. */
> if (vortex_debug > 2
> || (tx_status != 0x88 && vortex_debug > 0)) {
> printk(KERN_ERR "%s: Transmit error, Tx status register %2.2x.\n",
> dev->name, tx_status);
> if (tx_status == 0x82) {
> printk(KERN_ERR "Probably a duplex mismatch. See "
> "Documentation/networking/vortex.txt\n");
> }
> dump_tx_ring(dev);
> -------------------------------------------------
> i believe the problem resides when it tests for the debug level:
>
> if (vortex_debug > 2
> || (tx_status != 0x88 && vortex_debug > 0)) {
The code is OK, I think. It says, in a rather tortured manner,
"if debug > 0 then print stuff, unless it is a max-collisions-exceeded
event" and "if debug > 2 then print all events".
Probably many of these driver messages should be throttled
by net_ratelimit() but in practice, things work out OK.
Your machine is a special case, because your network is
bust. The default value of `debug' is 1. If you set
it to zero, those messages should go away?
-
prev parent reply other threads:[~2002-04-04 0:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-03 23:39 3c59x.c - kernel message explosion (fwd) Denny Gudea
2002-04-03 23:49 ` Jeff Garzik
2002-04-04 0:08 ` Denny Gudea
2002-04-03 23:59 ` Andrew Morton [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=3CAB9756.C5F89C13@zip.com.au \
--to=akpm@zip.com.au \
--cc=ekay@ecs.fullerton.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
/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.