From: Thomas Gleixner <tglx@linutronix.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [GIT pull] irq fixes for .39.rc
Date: Wed, 30 Mar 2011 19:00:30 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.1103301856550.22418@localhost6.localdomain6> (raw)
In-Reply-To: <AANLkTikeMFpxVW2bU+CXh=VVPBf2Tm4ccMFBUELSeVy4@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1392 bytes --]
On Wed, 30 Mar 2011, Linus Torvalds wrote:
> On Wed, Mar 30, 2011 at 9:46 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Wed, 30 Mar 2011, Thomas Gleixner wrote:
> >> On Wed, 30 Mar 2011, Linus Torvalds wrote:
> >> >
> >> > which just makes me go "Somebody is really really confused".
> >> >
> >> > The whole thing may mean that both handler_data and chip_data contains
> >> > the right thing, but it still makes me go "WTF?".
> >> >
> >> > Which way should I resolve it?
> >>
> >> get_irq_desc_data() maps to irq_desc_get_handler_data() so Richards
> >> resolution is correct even if the other might work as well.
> >
> > Older code which was not using any accessors has:
> >
> > desc->handler_data
> >
> > But yeah, the init stuff is confusing as hell.
>
> So I took the handler_data version, but I do think the chip_data one
> seems to make more conceptual sense. It would be good if somebody who
> can actually test that code and knows all the details of the
> particular irq controller could just take a look, and decide on using
> one or the other, and not both.
I think I figured it out. The cascade interrupts do not set chip_data,
they set handler data in qe_ic_init().
The interrupts which are demultiplexed by the cascade handlers set
chip_data on different irq_desc instances. So Ben's resolution would
have resulted in a NULL pointer dereference.
Thanks,
tglx
next prev parent reply other threads:[~2011-03-30 17:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-30 14:51 [GIT pull] irq fixes for .39.rc Thomas Gleixner
2011-03-30 15:36 ` Linus Torvalds
2011-03-30 16:28 ` Thomas Gleixner
2011-03-30 16:46 ` Thomas Gleixner
2011-03-30 16:50 ` Linus Torvalds
2011-03-30 17:00 ` Thomas Gleixner [this message]
2011-03-30 21:45 ` Benjamin Herrenschmidt
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=alpine.LFD.2.00.1103301856550.22418@localhost6.localdomain6 \
--to=tglx@linutronix.de \
--cc=akpm@linux-foundation.org \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.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