From: Grant Grundler <grundler@puffin.external.hp.com>
To: Richard Hirst <rhirst@linuxcare.com>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] kernel panic
Date: Thu, 24 May 2001 22:31:27 -0600 [thread overview]
Message-ID: <200105250431.WAA08405@puffin.external.hp.com> (raw)
In-Reply-To: Your message of "Thu, 24 May 2001 15:16:14 BST." <20010524151614.X8736@linuxcare.com>
Richard Hirst wrote:
> You mean like scsi_request_fn() calling spin_unlock_irq(&io_request_lock);
> when called at interrupt level?
spin_unlock_irq() can only twiddle the I-bit (PSW) since it's not
told which irq to save/restore state for. But the EIEM bit in CR15
should remain masked. So I don't think this code should be a problem.
*Someone* is unmasking the CPU EIEM bit for dino_isr().
And that's a bug since only do_irq_mask() should be unmasking it
when the ISR completes. This is orthogonal to the I-bit state.
...
> I also found
>
> spin_lock(&lock) can also be used in your interrupt handler if your
> device only uses one interrupt: the kernel guarantees that a interrupt
> handler is never reentered, even if the interrupt handler runs with
> enabled interrupts.
>
> in <http://kt.zork.net/kernel-traffic/kt20000703_74.txt>
I read the kt summary. The wording is somewhat ambiguous.
Each device instance will typically use one interrupt.
The above statement suggests to me the driver ISR gets called serially
to handle each device instance. That's certainly not the case for
anything with IO APIC or SAPIC.
I think he meant the ISR won't get re-entered for a given instance
of a device. And the kernel does that by masking the particular IRQ
assigned to that device instance.
For some reason that doesn't appear to be working for dino.
grant
Grant Grundler
parisc-linux {PCI|IOMMU|SMP} hacker
+1.408.447.7253
next prev parent reply other threads:[~2001-05-25 4:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-23 8:53 [parisc-linux] kernel panic John Marvin
2001-05-23 16:21 ` Matthew Wilcox
2001-05-23 18:59 ` Grant Grundler
2001-05-23 19:13 ` Matthew Wilcox
2001-05-24 14:16 ` Richard Hirst
2001-05-25 4:31 ` Grant Grundler [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-09-07 20:46 [parisc-linux] Kernel Panic marc
2002-09-07 22:08 ` Grant Grundler
2002-09-02 16:37 marc
2002-09-02 16:51 ` Randolph Chung
2001-05-22 8:10 [parisc-linux] kernel panic John Marvin
2001-05-23 2:18 ` Ryan Bradetich
2001-05-23 16:48 ` Stan Sieler
2001-05-22 3:57 Ryan Bradetich
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=200105250431.WAA08405@puffin.external.hp.com \
--to=grundler@puffin.external.hp.com \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=rhirst@linuxcare.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.