]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] mm: use symbolic names instead of indices for zone initialisation
authorMel Gorman <mel@csn.ul.ie>
Wed, 11 Oct 2006 08:20:39 +0000 (01:20 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 11 Oct 2006 18:14:14 +0000 (11:14 -0700)
commit6391af174ad75f72e92043c1dd8302660a2fec58
tree43dfb9a1acfbdabb820180834d4e8efdcfcbe46e
parent4e0fadfcf62e252d2b14de0e0927eb2830c0c28c
[PATCH] mm: use symbolic names instead of indices for zone initialisation

Arch-independent zone-sizing is using indices instead of symbolic names to
offset within an array related to zones (max_zone_pfns).  The unintended
impact is that ZONE_DMA and ZONE_NORMAL is initialised on powerpc instead
of ZONE_DMA and ZONE_HIGHMEM when CONFIG_HIGHMEM is set.  As a result, the
the machine fails to boot but will boot with CONFIG_HIGHMEM turned off.

The following patch properly initialises the max_zone_pfns[] array and uses
symbolic names instead of indices in each architecture using
arch-independent zone-sizing.  Two users have successfully booted their
powerpcs with it (one an ibook G4).  It has also been boot tested on x86,
x86_64, ppc64 and ia64.  Please merge for 2.6.19-rc2.

Credit to Benjamin Herrenschmidt for identifying the bug and rolling the
first fix.  Additional credit to Johannes Berg and Andreas Schwab for
reporting the problem and testing on powerpc.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/setup.c
arch/i386/mm/discontig.c
arch/ia64/mm/contig.c
arch/ia64/mm/discontig.c
arch/powerpc/mm/mem.c
arch/powerpc/mm/numa.c
arch/ppc/mm/init.c
arch/x86_64/mm/init.c
arch/x86_64/mm/numa.c