From: David Miller <davem@davemloft.net>
To: romieu@fr.zoreil.com
Cc: fzu@wemgehoertderstaat.de, netdev@vger.kernel.org, rjw@sisk.pl
Subject: Re: [PATCH] r8169: Fix irq masking in rtl8169_interrupt()
Date: Wed, 18 Mar 2009 23:35:45 -0700 (PDT) [thread overview]
Message-ID: <20090318.233545.163357233.davem@davemloft.net> (raw)
In-Reply-To: <20090318223629.GA2306@electric-eye.fr.zoreil.com>
From: Francois Romieu <romieu@fr.zoreil.com>
Date: Wed, 18 Mar 2009 23:36:29 +0100
> Karsten Wiese <fzu@wemgehoertderstaat.de> :
> > Am Mittwoch 18 März 2009 schrieb Francois Romieu:
> [...]
> > > If netif_rx_schedule fails after napi is enabled, there is a
> > > racing poll thread to care for the transfer.
> > >
> > > Stated differently the bug is noticeable because napi_enable()
> > > should be called before request_irq() in rtl8169_open, right ?
> >
> > Propably yes. That would mean the first interrupt is received before
> > rtl_hw_start() is called in rtl8169_open. The source of that
> > interrupt would be something else then?
>
> All we need is thus a shared interrupt racing on a different CPU
> with rtl8169_open and some IO versus memory reordering so that
> the hardware is started and a change in the status register can
> be seen in the IRQ handler before napi_enable/NAPI_STATE_SCHED
> escapes from the CPU where rtl8169_open is running...
>
> It does not look like a credible explanation. :o/
Agreed, looking at how this part of the driver works I can't
see how this condition can arise either.
next prev parent reply other threads:[~2009-03-19 6:35 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 19:34 [PATCH] r8169: Fix irq masking in rtl8169_interrupt() Karsten Wiese
2009-03-17 22:06 ` Francois Romieu
2009-03-18 1:56 ` Karsten Wiese
2009-03-18 6:40 ` Francois Romieu
2009-03-18 11:59 ` Karsten Wiese
2009-03-18 22:36 ` Francois Romieu
2009-03-19 6:35 ` David Miller [this message]
2009-03-19 10:58 ` Karsten Wiese
2009-03-19 22:23 ` Francois Romieu
2009-03-20 1:40 ` Karsten Wiese
2009-03-22 21:16 ` Francois Romieu
2009-03-22 23:53 ` Karsten Wiese
2009-03-23 22:42 ` Francois Romieu
2009-03-24 0:38 ` Karsten Wiese
2009-03-24 13:54 ` Karsten Wiese
2009-03-24 20:18 ` Francois Romieu
[not found] <200903171937.53401.fzu@wemgehoertderstaat.de>
2009-03-17 20:09 ` Jeff Garzik
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=20090318.233545.163357233.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=fzu@wemgehoertderstaat.de \
--cc=netdev@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=romieu@fr.zoreil.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;
as well as URLs for NNTP newsgroup(s).