From: Zou Nan hai <nanhai.zou@intel.com>
To: Martin Ebourne <martin@zepler.org>
Cc: Dave Jones <davej@redhat.com>, Andi Kleen <ak@suse.de>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Suresh Siddha <suresh.b.siddha@intel.com>,
stable@kernel.org, Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: 2.6.23 boot failures on x86-64.
Date: 31 Oct 2007 14:19:19 +0800 [thread overview]
Message-ID: <1193811559.817.36.camel@linux-znh> (raw)
In-Reply-To: <1193810651.817.14.camel@linux-znh>
On Wed, 2007-10-31 at 14:04, Zou Nan hai wrote:
> On Tue, 2007-10-30 at 05:21, Martin Ebourne wrote:
> > On Mon, 2007-10-29 at 15:43 -0400, Dave Jones wrote:
> > > On Mon, Oct 29, 2007 at 08:03:09PM +0100, Andi Kleen wrote:
> > > > > > But if allocating bootmem >4G doesn't work on these systems
> > > > > > most likely they have more problems anyways. It might be better
> > > > > > to find out what goes wrong exactly.
> > > > > Any ideas on what to instrument ?
> > > >
> > > > See what address the bootmem_alloc_high returns; check if it overlaps
> > > > with something etc.
> > > >
> > > > Fill the memory on the system and see if it can access all of its memory.
> > >
> > > Martin, as you have one of the affected systems, do you feel up to this?
> >
> > Faking a node at 0000000000000000-000000001fff0000
> > Bootmem setup node 0 0000000000000000-000000001fff0000
> > sparse_early_mem_map_alloc: returned address ffff81000070b000
> >
> > My box has 512MB of RAM.
> >
> > Cheers,
> >
> > Martin.
>
> Oops, sorry,
> seem to be a mistake of me.
> I forget to exclude the DMA range.
>
> Does the following patch fix the issue?
>
> Thanks
> Zou Nan hai
>
> --- a/arch/x86/mm/init_64.c 2007-10-31 11:24:11.000000000 +0800
> +++ b/arch/x86/mm/init_64.c 2007-10-31 12:31:02.000000000 +0800
> @@ -731,7 +731,7 @@ int in_gate_area_no_task(unsigned long a
> void * __init alloc_bootmem_high_node(pg_data_t *pgdat, unsigned long size)
> {
> return __alloc_bootmem_core(pgdat->bdata, size,
> - SMP_CACHE_BYTES, (4UL*1024*1024*1024), 0);
> + SMP_CACHE_BYTES, (4UL*1024*1024*1024), __pa(MAX_DMA_ADDRESS));
> }
>
> const char *arch_vma_name(struct vm_area_struct *vma)
>
>
>
>
Please ignore the patch, the patch is wrong.
However I think the root cause is when __alloc_bootmem_core fail to
allocate a memory above 4G it will fall back to allocate from the lowest
page.
Then happens to be allocated in DMA region sometimes...
Since this code path is dead, I am OK to revert the patch.
Suresh and I will check the CONFIG_SPARSE_VMEMMAP path.
Thanks
Zou Nan hai
next prev parent reply other threads:[~2007-10-31 6:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-29 17:50 2.6.23 boot failures on x86-64 Dave Jones
2007-10-29 18:07 ` [stable] " Greg KH
2007-10-29 18:37 ` Linus Torvalds
2007-10-29 19:51 ` Christoph Lameter
2007-10-29 19:52 ` Siddha, Suresh B
2007-10-29 20:09 ` Christoph Lameter
2007-10-29 20:23 ` Andy Whitcroft
2007-10-29 20:27 ` Martin Ebourne
2007-10-29 18:18 ` Andi Kleen
2007-10-29 18:47 ` Dave Jones
2007-10-29 19:03 ` Andi Kleen
2007-10-29 19:43 ` Dave Jones
2007-10-29 19:56 ` Andi Kleen
2007-10-29 21:21 ` Martin Ebourne
2007-10-31 6:04 ` Zou Nan hai
2007-10-31 6:19 ` Zou Nan hai [this message]
2007-10-29 20:06 ` Dave Jones
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=1193811559.817.36.camel@linux-znh \
--to=nanhai.zou@intel.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=martin@zepler.org \
--cc=stable@kernel.org \
--cc=suresh.b.siddha@intel.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.