From: Andrew Morton <akpm@osdl.org>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org, torvalds@osdl.org,
Jesse Barnes <jbarnes@sgi.com>
Subject: Re: Bootmem broke ARM
Date: Sun, 16 Nov 2003 12:11:31 -0800 [thread overview]
Message-ID: <20031116121131.0796cf01.akpm@osdl.org> (raw)
In-Reply-To: <20031116101535.A592@flint.arm.linux.org.uk>
Russell King <rmk+lkml@arm.linux.org.uk> wrote:
>
> Andrew & others,
>
> 2.6 contains a change to init_bootmem_core() which now sorts the nodes
> according to their start pfn. This change occurred in revision 1.20 of
> bootmem.c. Unfortunately, this active sorting broke ARM discontig memory
> support.
>
> With previous kernels, the nodes are added to the list in reverse order,
> so architecture code knew we had to add the highest PFN first and the
> lowest PFN node last.
>
> However, we now sort the nodes using node_start_pfn, which, at this point,
> will be uninitialised - the responsibility for initialising this field
> is with the generic code - in free_area_init_node() which occurs well
> after bootmem has been initialised.
>
> The result of this change is that we now add nodes to the tail of the
> pgdat list, which is the opposite way to 2.4.
>
> This causes problems for ARM because we need to use bootmem to initialise
> the kernels page tables, and we can only allocate these from node 0 - none
> of the other nodes are mapped into memory at this point.
>
> I, therefore, believe this change is bogus. Can it be reverted please?
>
It looks to be bogus on ia64 as well, for which the patch was written.
Or maybe ia64 _does_ arrange for the node_start_pfn to be initialised
before init_bootmem_core(), but I cannot see where. So the attempt to sort
the pgdat list in there doesn't actually sort it at all - it simply
reverses it by accident.
Jesse, it looks like this needs to be revisited please.
next prev parent reply other threads:[~2003-11-16 20:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-16 10:15 Russell King
2003-11-16 20:11 ` Andrew Morton [this message]
2003-11-17 18:04 ` Jesse Barnes
2003-11-18 9:42 ` Russell King
2003-11-18 9:57 ` Russell King
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=20031116121131.0796cf01.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=jbarnes@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+lkml@arm.linux.org.uk \
--cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome