login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
21
Re: Suspected regression in "x86: extend e820 ealy_res support 32bit"
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Johannes Weiner
Subject:
Re: Suspected regression in "x86: extend e820 ealy_res support 32bit"
Date: Wednesday, May 21, 2008 - 4:14 pm
Hi, "Yinghai Lu" <yhlu.kernel@gmail.com> writes:
quoted text
> On Wed, May 21, 2008 at 11:19 AM, Jeremy Fitzhardinge <jeremy@goop.org> wrote: >> I'm seeing a crash in current x86.git tip/auto-latest when booting under >> Xen. The crash is rather early, but it's in __alloc_bootmem_core() in the >> final memset clear. Apparently the allocator is returning a bad page. >> >> This points to changes in the setup of the bootmem allocator, and the >> changes "x86: extend e820 ealy_res support 32bit" make to >> arch/x86/kernel/setup_32.c:setup_bootmem_allocator() looks like the most >> likely suspect. Unfortunately its a rather large patch which is not easy to >> revert, so I haven't actually confirmed this yet. > > > thanks. please check the attached patch > > YH > > [PATCH] x86: bootmap size fix for 32 bit > > Jeremy Fitzhardinge found > x86: extend e820 ealy_res support 32bit > cause regression... > > in setup_bootmem_allocator > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> > > diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c > index f38d840..938c7b3 100644 > --- a/arch/x86/kernel/setup_32.c > +++ b/arch/x86/kernel/setup_32.c > @@ -566,17 +566,22 @@ static void __init relocate_initrd(void) > > void __init setup_bootmem_allocator(void) > { > + unsigned long bootmap_pages; > unsigned long bootmap_size, bootmap; > /* > * Initialize the boot-time allocator (with low memory only): > */ > - bootmap_size = bootmem_bootmap_pages(max_low_pfn)<<PAGE_SHIFT; > + bootmap_pages = bootmem_bootmap_pages(max_low_pfn)<<PAGE_SHIFT;
Forgot to remove the shift?
quoted text
> bootmap = find_e820_area(min_low_pfn<<PAGE_SHIFT, > - max_low_pfn<<PAGE_SHIFT, bootmap_size, > + max_low_pfn<<PAGE_SHIFT, > + bootmap_pages<<PAGE_SHIFT,
Because this value is hardly sane anymore.
quoted text
> PAGE_SIZE); > if (bootmap == -1L) > panic("Cannot find bootmem map of size %ld\n", bootmap_size); > bootmap_size = init_bootmem(bootmap >> PAGE_SHIFT, max_low_pfn); > + printk(KERN_INFO " bootmap [%016lx - %016lx] pages %lx\n", > + bootmap, bootmap + bootmap_size - 1, > + bootmap_pages); > register_bootmem_low_pages(max_low_pfn); > early_res_to_bootmem(0, max_low_pfn<<PAGE_SHIFT); > reserve_bootmem(bootmap, bootmap_size, BOOTMEM_DEFAULT);
Besides, what did you want to accomplish? Hannes --
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: Suspected regression in "x86: extend e820 ealy_res sup ...
, Yinghai Lu
, (Wed May 21, 1:35 pm)
Re: Suspected regression in "x86: extend e820 ealy_res sup ...
, Jeremy Fitzhardinge
, (Wed May 21, 3:01 pm)
Re: Suspected regression in "x86: extend e820 ealy_res sup ...
, Yinghai Lu
, (Wed May 21, 3:40 pm)
Re: Suspected regression in "x86: extend e820 ealy_res sup ...
, Johannes Weiner
, (Wed May 21, 4:14 pm)
Re: Suspected regression in "x86: extend e820 ealy_res sup ...
, Yinghai Lu
, (Wed May 21, 4:23 pm)
Re: Suspected regression in "x86: extend e820 ealy_res sup ...
, Jeremy Fitzhardinge
, (Wed May 21, 4:23 pm)
Re: Suspected regression in "x86: extend e820 ealy_res sup ...
, Yinghai Lu
, (Wed May 21, 6:43 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Frederic Weisbecker
[PATCH v2] struct sort_entry has a callback named snprintf that turns an entry int...
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Jens Axboe
Re: [BUG] Linux 2.6.25-rc2 - Regression from 2.6.24-rc1-git1 softlockup while bo...
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
Ingo Molnar
Re: [GIT PULL] time.c - respin
git
:
Junio C Hamano
Re: git-svnimport
Michal Sojka
[PATCHv5 1/2] filter-branch: Fix to allow replacing submodules with another content
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
Junio C Hamano
Re: Fwd: git status options feature suggestion
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
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
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
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...
git-commits-head
:
Linux Kernel Mailing List
ARM: S3C64XX: DMA: Callback with correct buffer pointer
Linux Kernel Mailing List
sata_mv: drop unncessary EH callback resetting
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Rene Maroufi
smtpd: Aliases only work with for local alias aliases
Stephen J. Bevan
GRE over IPsec
Christophe Rioux
Implementation example of snmp
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate