From: Ingo Molnar <mingo@elte.hu>
To: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: "Jan.Grossmann@kielnet.net" <Jan.Grossmann@kielnet.net>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"jbarnes@virtuousgeek.org" <jbarnes@virtuousgeek.org>,
"Woodhouse, David" <david.woodhouse@intel.com>,
"Han, Weidong" <weidong.han@intel.com>,
"Song, Youquan" <youquan.song@intel.com>,
LKML <linux-kernel@vger.kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>,
"x86@kernel.org" <x86@kernel.org>,
"stable@kernel.org" <stable@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: BUG: null pointer deref in dmar_ir_support
Date: Fri, 2 Apr 2010 20:45:01 +0200 [thread overview]
Message-ID: <20100402184501.GA4775@elte.hu> (raw)
In-Reply-To: <1270232913.2870.60.camel@sbs-t61.sc.intel.com>
* Suresh Siddha <suresh.b.siddha@intel.com> wrote:
> On Fri, 2010-04-02 at 11:20 -0700, Ingo Molnar wrote:
> > * Suresh Siddha <suresh.b.siddha@intel.com> wrote:
> >
> > > @@ -1640,8 +1640,10 @@ int __init APIC_init_uniprocessor(void)
> > > }
> > > #endif
> > >
> > > +#ifndef CONFIG_SMP
> > > enable_IR_x2apic();
> > > default_setup_apic_routing();
> > > +#endif
> >
> > Instead of adding yet another ugly #ifdef please hide these details
> > properly, by making enable_IR_x2apic() and default_setup_apic_routing() a
> > NOP on !SMP.
>
> Ingo, These are not nops on !SMP. We should call these functions from
> APIC_init_uniprocessor() only if it is a UP kernel. For SMP kernel they are
> called from some where else.
Btw., that makes the cleanliness situation even worse ...
> With the current code, on SMP and with non SMP motherboard we were calling
> these routines twice which cause problem.
>
> I wanted to keep the patch simple for urgent/backport. I will clean this by
> restructuring the init code for 2.6.35
Ok, fair enough, i'll queue up this fix.
The best structure would be to integrate these init details into the APIC
driver methods and make UP-IOAPIC nothing particularly special.
Thanks,
Ingo
next prev parent reply other threads:[~2010-04-02 18:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4BAD1676.9090704@kielnet.net>
[not found] ` <1270057394.2866.9.camel@sbs-t61.sc.intel.com>
[not found] ` <4BB395B0.6090007@kielnet.net>
2010-04-01 1:04 ` BUG: null pointer deref in dmar_ir_support Suresh Siddha
2010-04-01 18:20 ` Jan.Grossmann
2010-04-01 20:04 ` Suresh Siddha
2010-04-02 17:21 ` Suresh Siddha
2010-04-02 18:20 ` Ingo Molnar
2010-04-02 18:28 ` Suresh Siddha
2010-04-02 18:45 ` Ingo Molnar [this message]
2010-04-02 19:14 ` [tip:x86/urgent] x86: Fix double enable_IR_x2apic() call on SMP kernel on !SMP boards tip-bot for Suresh Siddha
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=20100402184501.GA4775@elte.hu \
--to=mingo@elte.hu \
--cc=Jan.Grossmann@kielnet.net \
--cc=david.woodhouse@intel.com \
--cc=hpa@zytor.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=stable@kernel.org \
--cc=suresh.b.siddha@intel.com \
--cc=tglx@linutronix.de \
--cc=weidong.han@intel.com \
--cc=x86@kernel.org \
--cc=youquan.song@intel.com \
/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