netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rask Ingemann Lambertsen <rask@sygehus.dk>
To: netdev@oss.sgi.com
Subject: Re: Kernel crash in 2.6.0-test9-mm3
Date: Sun, 23 Nov 2003 21:29:59 +0100	[thread overview]
Message-ID: <20031123212959.D1461@sygehus.dk> (raw)
In-Reply-To: <C6F5CF431189FA4CBAEC9E7DD5441E0102CBDCE3@orsmsx402.jf.intel.com>; from scott.feldman@intel.com on Wed, Nov 19, 2003 at 06:40:04PM -0800

On Wed, Nov 19, 2003 at 06:40:04PM -0800, Feldman, Scott wrote:
> > However, with things like IOAPIC and such, it might be 
> > possible for two cpus to enter e100intr() simultaneously, 
> > both read the same status, both see that the interrupt is 
> > pending, and both thus process the interrupt and race with each other.
> > 
> > Scott, what prevents the above from happening?
> 
> Whoa, this question is freaking me out just a little bit: my assumption
> is that the device's interrupt line has been masked off at the CPU/PIC
> before e100intr() is ever called, so 1) there really isn't any need to
> disable device's interrupts from the driver (see eepro100.c), 2) or even
> hold a lock unless we shared something critical on the queuing side (see
> e1000), and 3) only one e100intr is running.  [public spanking in
> order?]

Me too. My impression is also that the kernel guarantees that the interrupt
handler is single threaded, regardless of IOAPIC, SMP and such.

-- 
Regards,
Rask Ingemann Lambertsen

  reply	other threads:[~2003-11-23 20:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20  2:40 Kernel crash in 2.6.0-test9-mm3 Feldman, Scott
2003-11-23 20:29 ` Rask Ingemann Lambertsen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-19  2:22 Krishna Kumar
2003-11-19  2:24 ` David S. Miller
2003-11-19  2:58 ` Reuben Farrelly
     [not found]   ` <20031119185157.3edf69c8.davem@redhat.com>
2003-11-20  3:05     ` Reuben Farrelly
     [not found]       ` <20031119190258.4d926957.davem@redhat.com>
2003-11-20  7:30         ` Reuben Farrelly
     [not found] <6.0.1.1.2.20031118232152.01ae5728@tornado.reub.net>
2003-11-18 19:01 ` Andrew Morton
2003-11-18 22:22   ` David S. Miller
2003-11-19  0:49   ` David S. Miller
2003-11-19  1:22     ` Reuben Farrelly
2003-11-19  2:02     ` Andrew Morton

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=20031123212959.D1461@sygehus.dk \
    --to=rask@sygehus.dk \
    --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 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).