login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
27
Re: aperture_64.c: corner case wrong
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai Lu
Subject:
Re: aperture_64.c: corner case wrong
Date: Monday, May 26, 2008 - 5:18 pm
On Mon, May 26, 2008 at 12:17 PM, Pavel Machek <pavel@suse.cz> wrote:
quoted text
> > If > > fix == 0, aper_enabled == 1, gart_fix_e820 == 0 > > if (!fix && !aper_enabled) > return; > > if (gart_fix_e820 && !fix && aper_enabled) { > if (e820_any_mapped(aper_base, aper_base + aper_size, > E820_RAM)) { > /* 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; > } > > /* different nodes have different setting, disable them all atfirst*/ > > we'll fall back here and disable all the settings, even when they were > all consistent. > > What about this? (I hope it compiles...) > > Signed-off-by: Pavel Machek <pavel@suse.cz> > > > 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; >
good catch. Acked-by: Yinghai Lu <yhlu.kernel@gmail.com> YH --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [REGRESSION][BISECTED][X86] next-20080526 hangs on boot
, Sitsofe Wheeler
, (Mon May 26, 12:11 pm)
aperture_64.c: corner case wrong
, Pavel Machek
, (Mon May 26, 12:17 pm)
Re: aperture_64.c: corner case wrong
, Yinghai Lu
, (Mon May 26, 5:18 pm)
Re: aperture_64.c: corner case wrong
, Pavel Machek
, (Tue May 27, 2:06 am)
Re: aperture_64.c: corner case wrong
, Andrew Morton
, (Mon Jun 2, 3:30 pm)
Re: aperture_64.c: corner case wrong
, Thomas Gleixner
, (Tue Jun 3, 6:54 am)
Re: aperture_64.c: corner case wrong
, Ingo Molnar
, (Wed Jun 4, 3:44 am)
Re: aperture_64.c: corner case wrong
, Thomas Gleixner
, (Wed Jun 4, 3:48 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Benjamin Herrenschmidt
[git pull] Please pull powerpc.git merge branch
Ingo Molnar
Re: [GIT PULL] time.c - respin
Alexander van Heukelum
Re: [PATCH] bitops: simplify generic bit finding functions
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
staging: android: binder: Fix use of euid
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
KURS ENGLESKOG JEZIKA NA 10 CD-a
AUDIO-VIZUELNA METODA UCENJA ENGLESKOG JEZIKA na 10 CD-a
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Colocation donated by:
Syndicate