public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Grant Grundler <iod00d@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: request_irq() and setup_irq()
Date: Thu, 21 Oct 2004 16:53:29 +0000	[thread overview]
Message-ID: <20041021165329.GG30581@cup.hp.com> (raw)
In-Reply-To: <4177D1A4.1040009@hob.de>

On Thu, Oct 21, 2004 at 05:11:32PM +0200, Christian Hildner wrote:
> Hi,
> 
> looking through the sources of 2.4.21 there come up one question. If a 
> device wants to register its interrupt it may call request_irq() that 
> then calls setup_irq(). Now since SA_PERCPU_IRQ is not set by the device 
> setup_irq() does not initialize desc->handler.

Sorry - can you explain why this is a problem?
Are you trying to avoid the spinlock in do_IRQ() or something else?

It's been a while since I've last played with 2.4.21, but it mostly
worked for the things I was testing at the time.

> Can that be fixed by 
> adding SA_PERCPU_IRQ to irqflags in request_irq() or does that introduce 
> problems at another place?

For IO SAPIC generated interrupts, that should work fine on platforms
that don't implement XPR (IIRC, e.g. HP ZX1). Systems which implement
XPR could redirect the interrupt to a different CPU (e.g Intel).
IIRC, one can "pin" the IO SAPIC generated interrupt to a CPU despite
XPR but I don't recall details or if that's already being done.
You'll need to investigate this a bit more.

hth,
grant

  parent reply	other threads:[~2004-10-21 16:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-21 15:11 request_irq() and setup_irq() Christian Hildner
2004-10-21 15:38 ` Matthew Wilcox
2004-10-21 16:53 ` Grant Grundler [this message]
2004-10-22  1:22 ` Tian, Kevin
2004-10-22 13:06 ` Christian Hildner

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=20041021165329.GG30581@cup.hp.com \
    --to=iod00d@hp.com \
    --cc=linux-ia64@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