From: "David S. Miller" <davem@redhat.com>
To: Rask Ingemann Lambertsen <rask@sygehus.dk>
Cc: jt@hpl.hp.com, jt@bougret.hpl.hp.com,
linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de,
jgarzik@pobox.com, netdev@oss.sgi.com
Subject: Re: [BUG 2.6.0-test11] pcnet32 oops
Date: Wed, 10 Dec 2003 00:30:59 -0800 [thread overview]
Message-ID: <20031210003059.24fdd370.davem@redhat.com> (raw)
In-Reply-To: <20031209151459.A1345@sygehus.dk>
On Tue, 9 Dec 2003 15:15:02 +0100
Rask Ingemann Lambertsen <rask@sygehus.dk> wrote:
> On Fri, Dec 05, 2003 at 04:59:00PM -0800, David S. Miller wrote:
> > This is the classic case of doing disabling/enabling of software
> > interrupts with hardware interrupts disabled, which is a bug.
> >
> > In this case pcnet32_set_multicast_list() is disabling hardware
> > interrupts, and the packet freeing of pcnet32_purge_tx_ring()
> > is what leads to the software interrupt disable/enable.
>
> I think the root cause of this problem is that pcnet32_set_multicast_list()
> dumps the entire TX ring on the floor (as a side effect of calling
> pcnet32_restart()). I don't think dev->set_multicast_list() is supposed to
> do that.
The task of dev->set_multicast_list() is to do whatever is necessary
to update the multicast filter.
If the pcnet32 hardware for some odd reason requires that you flush
the TX list, it is appropriate.
> I've been wondering about this too with the recent netpoll patches. Many
> (including pcnet32) implement the poll controller simply as
>
> disable_irq (dev->irq);
> driver_interrupt_handler (dev->irq, dev, NULL);
> enable_irq (dev->irq);
>
> If the interrupt handler calls dev_kfree_skb_any(), could you then run into
> this kind of problem? Or is it just if you call spin_lock_irq*() that you
> have a problem?
No, it would not be a problem because the thing that dev_kfree_skb_any()
_does_ test right now ('in_irq()') would trigger.
next prev parent reply other threads:[~2003-12-10 8:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-05 23:45 [BUG 2.6.0-test11] pcnet32 oops Jean Tourrilhes
2003-12-06 0:59 ` David S. Miller
2003-12-09 14:15 ` Rask Ingemann Lambertsen
2003-12-10 8:30 ` David S. Miller [this message]
2003-12-10 8:32 ` David S. Miller
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=20031210003059.24fdd370.davem@redhat.com \
--to=davem@redhat.com \
--cc=jgarzik@pobox.com \
--cc=jt@bougret.hpl.hp.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=rask@sygehus.dk \
--cc=tsbogend@alpha.franken.de \
/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.