From: James Harper <james.harper@bigpond.com>
To: linux-kernel@vger.kernel.org
Subject: BUG? SA_INTERRUPT and shared IRQs
Date: Sun, 23 Feb 2003 20:36:12 +1100 [thread overview]
Message-ID: <3E58960C.9060900@bigpond.com> (raw)
i'm having a problem with crashes which i think is to do with shared
irq's. i have too many things hanging off my PCI bus... dammit.
on IRQ 19 i have:
wlan0 (prism2 based wireless card running hostap)
ens1371 (soundcard)
uhci-hcd (USB driver)
wlan0 and uhci-hcd call request_irq with SA_SHIRQ
ens1371 calles request_irq with SA_SHIRQ | SA_INTERRUPT
the code that calls the interrupt handlers appears to be:
(arch/i386/kernel/irq.c)
int handle_IRQ_event(unsigned int irq, struct pt_regs * regs, struct
irqaction * action)
{
int status = 1; /* Force the "do bottom halves" bit */
if (!(action->flags & SA_INTERRUPT))
local_irq_enable();
do {
status |= action->flags;
action->handler(irq, action->dev_id, regs);
action = action->next;
} while (action);
if (status & SA_SAMPLE_RANDOM)
add_interrupt_randomness(irq);
local_irq_disable();
return status;
}
which looks to me that interrupts are going to get enabled if the
_first_ handler in the chain _doesn't_ have SA_INTERRUPT set, which
isn't the behaviour i'd expect. a later handler might freak if it makes
the assumption that interrupts are disabled (or maybe this doesn't
happen)...
i'm not sure what the correct thing to do here is... is it okay to
enable or disable interrupts for each handler depending on their own
SA_INTERRUPT flag? if that's the case then the patch is trivial...
thanks
James
reply other threads:[~2003-02-23 9:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3E58960C.9060900@bigpond.com \
--to=james.harper@bigpond.com \
--cc=linux-kernel@vger.kernel.org \
/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