OpenCloudOS-Kernel/arch/ppc
Mel Gorman 6391af174a [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>
2006-10-11 11:14:14 -07:00
..
4xx_io [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
8xx_io [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
8260_io [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
amiga Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
boot fix file specification in comments 2006-10-03 23:01:26 +02:00
configs [POWERPC] update prep_defconfig 2006-09-13 18:30:08 +10:00
kernel [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
lib Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mm [PATCH] mm: use symbolic names instead of indices for zone initialisation 2006-10-11 11:14:14 -07:00
platforms [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
syslib [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
xmon [POWERPC] PPC: Fix xmon stack frame address in backtrace 2006-09-21 22:55:06 +10:00
Kconfig Attack of "the the"s in arch 2006-10-03 22:21:02 +02:00
Kconfig.debug ppc: Remove CHRP, POWER3 and POWER4 support from arch/ppc 2006-03-28 10:22:10 +11:00
Makefile Merge branch '85xx' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc 2006-03-28 17:03:19 +11:00