* Re: Add support for checking before-the-fact whether an IRQ is
[not found] <200312291905.hBTJ56k1032326@hera.kernel.org>
@ 2003-12-29 19:18 ` Arjan van de Ven
2003-12-29 19:43 ` Linus Torvalds
0 siblings, 1 reply; 3+ messages in thread
From: Arjan van de Ven @ 2003-12-29 19:18 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: torvalds
[-- Attachment #1: Type: text/plain, Size: 616 bytes --]
On Mon, 2003-12-29 at 19:18, Linux Kernel Mailing List wrote:
> ChangeSet 1.1552, 2003/12/29 10:18:11-08:00, torvalds@home.osdl.org
>
> Add support for checking before-the-fact whether an IRQ is
> already registered or not. The x86 PCI layer wants this for
> its availability testing.
>
> Doing a request_irq()/free_irq() pair to check this condition
> like we used to do can lock the machine if the irq happens to
> be screaming.
question; which lock prevents someone else claiming the irq and making
it unsharable/unclaimable between can_request_irq() and the eventual
request_irq() ????
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Add support for checking before-the-fact whether an IRQ is
2003-12-29 19:18 ` Add support for checking before-the-fact whether an IRQ is Arjan van de Ven
@ 2003-12-29 19:43 ` Linus Torvalds
2003-12-30 2:47 ` Rusty Russell
0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2003-12-29 19:43 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: Linux Kernel Mailing List
On Mon, 29 Dec 2003, Arjan van de Ven wrote:
> On Mon, 2003-12-29 at 19:18, Linux Kernel Mailing List wrote:
> > ChangeSet 1.1552, 2003/12/29 10:18:11-08:00, torvalds@home.osdl.org
> >
> > Add support for checking before-the-fact whether an IRQ is
> > already registered or not. The x86 PCI layer wants this for
> > its availability testing.
> >
> > Doing a request_irq()/free_irq() pair to check this condition
> > like we used to do can lock the machine if the irq happens to
> > be screaming.
>
>
> question; which lock prevents someone else claiming the irq and making
> it unsharable/unclaimable between can_request_irq() and the eventual
> request_irq() ????
Nothing. It never did. This is basically a heuristic: "find the irq that
looks the least used".
I just fixed the heuristic so that it shouldn't cause problems if the
system comes up with the BIOS having done something silly like leaving an
irq pending..
Linus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Add support for checking before-the-fact whether an IRQ is
2003-12-29 19:43 ` Linus Torvalds
@ 2003-12-30 2:47 ` Rusty Russell
0 siblings, 0 replies; 3+ messages in thread
From: Rusty Russell @ 2003-12-30 2:47 UTC (permalink / raw)
To: Linus Torvalds; +Cc: arjanv, linux-kernel
On Mon, 29 Dec 2003 11:43:29 -0800 (PST)
Linus Torvalds <torvalds@osdl.org> wrote:
> > question; which lock prevents someone else claiming the irq and making
> > it unsharable/unclaimable between can_request_irq() and the eventual
> > request_irq() ????
>
> Nothing. It never did. This is basically a heuristic: "find the irq that
> looks the least used".
I just worry about other people using it. I'd prefer "irq_looks_free()",
but since it's x86-specific it's not a big issue.
Rusty.
--
there are those who do and those who hang on and you don't see too
many doers quoting their contemporaries. -- Larry McVoy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-30 4:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200312291905.hBTJ56k1032326@hera.kernel.org>
2003-12-29 19:18 ` Add support for checking before-the-fact whether an IRQ is Arjan van de Ven
2003-12-29 19:43 ` Linus Torvalds
2003-12-30 2:47 ` Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome