From: Thomas Gleixner <tglx@linutronix.de>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Pavel Machek <pavel@suse.cz>,
linux-kernel@vger.kernel.org, mingo@elte.hu,
davej@codemonkey.org.uk, andi@firstfloor.org
Subject: Re: aperture_64.c: corner case wrong
Date: Tue, 3 Jun 2008 15:54:10 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.1.10.0806031551330.3235@apollo.tec.linutronix.de> (raw)
In-Reply-To: <20080602153033.2d1672f0.akpm@linux-foundation.org>
On Mon, 2 Jun 2008, Andrew Morton wrote:
> On Mon, 26 May 2008 21:17:30 +0200
> Pavel Machek <pavel@suse.cz> wrote:
> > diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c
> > index 02f4dba..aa4876a 100644
> > --- a/arch/x86/kernel/aperture_64.c
> > +++ b/arch/x86/kernel/aperture_64.c
> > @@ -344,14 +323,16 @@ out:
> > if (gart_fix_e820 && !fix && aper_enabled) {
> > if (!e820_all_mapped(aper_base, aper_base + aper_size,
> > E820_RESERVED)) {
> > /* reserve it, so we can reuse it in second kernel */
> > printk(KERN_INFO "update e820 for GART\n");
> > add_memory_region(aper_base, aper_size, E820_RESERVED);
> > update_e820();
> > }
> > - return;
> > }
> >
> > + if (!fix)
> > + return;
> > +
> > /* different nodes have different setting, disable them all at first*/
> > for (i = 0; i < ARRAY_SIZE(bus_dev_ranges); i++) {
> > int bus;
> >
>
> So what happened with this? Thomas has merged an "x86: aperture_64.c:
> cleanups" from yourself but it appears that half of this bugfix got
> applied somewhere and the below part did not?
Err, no. I seem to have dropped the patch completely. I'm picking it
up again.
> diff -puN arch/x86/kernel/aperture_64.c~aperture_64c-corner-case-wrong arch/x86/kernel/aperture_64.c
> --- a/arch/x86/kernel/aperture_64.c~aperture_64c-corner-case-wrong
> +++ a/arch/x86/kernel/aperture_64.c
> @@ -331,6 +331,9 @@ out:
> return;
This should be:
- return;
right?
> }
>
> + if (!fix)
> + return;
> +
> /* different nodes have different setting, disable them all at first*/
> for (i = 0; i < ARRAY_SIZE(bus_dev_ranges); i++) {
> int bus;
> _
Thanks,
tglx
next prev parent reply other threads:[~2008-06-03 13:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-26 19:17 Pavel Machek
2008-05-27 0:18 ` Yinghai Lu
2008-05-27 9:06 ` Pavel Machek
2008-06-02 22:30 ` Andrew Morton
2008-06-03 13:54 ` Thomas Gleixner [this message]
2008-06-04 10:44 ` Ingo Molnar
2008-06-04 10:48 ` Thomas Gleixner
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.1.10.0806031551330.3235@apollo.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pavel@suse.cz \
/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
all inboxes | Powered by JetHome®