From: ebiederm@xmission.com (Eric W. Biederman)
To: linux-ia64@vger.kernel.org
Subject: Re: NULL pointer in ia64/irq_chip-mask/unmask function (V2)
Date: Wed, 07 Mar 2007 22:20:55 +0000 [thread overview]
Message-ID: <m1vehcbsqg.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <200703072138.l27LcRVE022938@agluck-lia64.sc.intel.com>
"Luck, Tony" <tony.luck@intel.com> writes:
> This patch now has an extra piece for the SGI specific
> occurance of the same context (as noted by Eric). Just
> posting here in case I misunderstood, or mis-typed while
> applying (especially as to make this complile I had to make
> mask_irq() and unmasq_irq() global instead of static).
This patch appears wrong.
The mask/unmask methods are specific to an interrupt handler type,
so I think the mask_irq/unmask_irq methods you made global actually
happen to be iosapic specific.
The point of masking the irq when we are moving it is to ensure the
operation is atomic, and we won't get an irq sent to some halfway
state.
That said sn looks to be doing something fishing (SAL calls and
a whole extra layer of interrupt functions) and it seems not
to implement disable or enable methods so implementing a noop
mask/unmask operation is probably appropriate.
The change that triggered this is the function
move_native_irq was modified to call mask/unmask instead
of enable/disable as the default enable/disable routines
are noops that delay masking the interrupt until it occurs
one more time. Those semantics were completely inappropriate
for reprogramming the interrupt controller although they were
perfectly fine for drivers.
Eric
next prev parent reply other threads:[~2007-03-07 22:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 21:38 NULL pointer in ia64/irq_chip-mask/unmask function (V2) Luck, Tony
2007-03-07 22:20 ` Eric W. Biederman [this message]
2007-03-07 23:05 ` NULL pointer in ia64/irq_chip-mask/unmask function (V3) Luck, Tony
2007-03-07 23:18 ` Eric W. Biederman
2007-03-12 18:56 ` Jay Lan
2007-03-13 0:02 ` Prarit Bhargava
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=m1vehcbsqg.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.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