kernel-fxtec-pro1x/arch/powerpc
David Gibson eb6de28637 [POWERPC] Allow duplicate lmb_reserve() calls
At present calling lmb_reserve() (and hence lmb_add_region()) twice
for exactly the same memory region will cause strange behaviour.

This makes life difficult when booting from a flat device tree with
memory reserve map.  Which regions are automatically reserved by the
kernel has changed over time, so it's quite possible a newer kernel
could attempt to auto-reserve a region which is also explicitly listed
in the device tree's reserve map, leading to trouble.

This patch avoids the problem by making lmb_reserve() ignore a call to
reserve a previously reserved region.  It also removes a now redundant
test designed to avoid one specific case of the problem noted above.

At present, this patch deals only with duplicate reservations of an
identical region.  Attempting to reserve two different, but
overlapping regions will still cause problems.  I might post another
patch later dealing with this case, but I'm avoiding it now since it
is substantially more complicated to deal with, less likely to occur
and more likely to indicate a genuine bug elsewhere if it does occur.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-03-08 15:43:28 +11:00
..
boot Merge branch '86xx' into for_paulus 2007-02-18 08:34:33 -06:00
configs Merge branch '85xx' into for_paulus 2007-02-17 16:32:46 -06:00
kernel [POWERPC] Allow duplicate lmb_reserve() calls 2007-03-08 15:43:28 +11:00
lib [POWERPC] Use ARRAY_SIZE macro when appropriate 2007-02-08 16:08:18 +11:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Allow duplicate lmb_reserve() calls 2007-03-08 15:43:28 +11:00
oprofile [POWERPC] cell: pm_rtas_activat_signals routine cleanup 2007-02-13 22:03:07 +01:00
platforms [POWERPC] Fix warning in powermac pci.c 2007-03-08 04:09:34 +11:00
sysdev [POWERPC] QE: clean up ucc_slow.c and ucc_fast.c 2007-02-17 16:12:54 -06:00
xmon [POWERPC] Add missing newline in xmon help output 2007-03-08 04:09:33 +11:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] Add PMI driver for cell blade 2007-02-16 14:00:19 +11:00
Kconfig.debug [POWERPC] pasemi: UART udbg support 2007-02-07 14:03:22 +11:00
Makefile [POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot 2006-09-28 14:30:02 +10:00