From: Manfred Spraul <manfred@colorfullife.com>
To: Tim Hockin <thockin@hockin.org>
Cc: Tim Hockin <thockin@sun.com>,
linux-kernel@vger.kernel.org, jgarzik@mandrakesoft.com
Subject: Re: [PATCH] Rx FIFO Overrun error found
Date: Sat, 12 Jan 2002 22:57:08 +0100 [thread overview]
Message-ID: <3C40B134.3FE631B4@colorfullife.com> (raw)
In-Reply-To: <200201122111.g0CLBhK00442@www.hockin.org>
Tim Hockin wrote:
>
> > if (dspcfg != DSPCFG_VAL) {
> > if (!netif_queue_stopped(dev)) {
> > + spin_unlock_irq(&np->lock);
> > printk(KERN_INFO
> > "%s: possible phy reset: re-initializing\n",
> > dev->name);
> > disable_irq(dev->irq);
> > spin_lock_irq(&np->lock);
> > + natsemi_reset(dev);
> > + reinit_ring(dev);
> > init_registers(dev);
> > spin_unlock_irq(&np->lock);
> > enable_irq(dev->irq);
>
> I'm not sure you want or need a natsemi_reset here - I'll need to check my
> notes on this when I get back to work. Can I ask why this change was made?
> This is a very hard case to reproduce, so I'm not very comfortable changing
> the codepath :) We've had National looking at this buggy behavior for
> months now, with little result.
>
init_registers() reinitialized the rx and tx ring pointers as seen by
the nic. You called it without init_ring(), i.e. the ring pointers as
seen by the driver didn't match the values used by the nic. It probably
only worked by chance. And changing the ring pointers while the nic is
in the middle of a data transfers just asks for trouble.
I agree that natsemi_stop_rxtx() instead of reset would be enough.
> > /* enable the WOL interrupt.
> > * Could be used to send a netlink message.
> > */
> > - writel(readl(ioaddr + IntrMask) | WOLPkt, ioaddr + IntrMask);
> > + writel(WOLPkt, ioaddr + IntrMask);
> > + writel(1, ioaddr + IntrEnable);
>
> is this intended to blow away the other bits in IntrMask? Keep in mind
> that Wake-On-Phy requires the PHY interrupt enabled, but I don't know if it
> needs it on in intrmask or just in the Phy intr reg.
>
Yes, they are always 0. Actually the code is (and was) never executed.
Everyone calls enable_wol_mode(,0).
--
Manfred
next prev parent reply other threads:[~2002-01-12 21:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-12 21:13 [PATCH] Rx FIFO Overrun error found Manfred Spraul
2002-01-12 21:11 ` Tim Hockin
2002-01-12 21:57 ` Manfred Spraul [this message]
2002-01-14 0:54 ` Jeff Garzik
2002-01-14 16:32 ` Manfred Spraul
2002-02-08 10:38 ` Jeff Garzik
-- strict thread matches above, loose matches on Subject: below --
2002-01-14 18:52 Torrey Hoffman
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=3C40B134.3FE631B4@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=jgarzik@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=thockin@hockin.org \
--cc=thockin@sun.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox