From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4616BA1A.3090309@am.sony.com> Date: Fri, 06 Apr 2007 14:22:34 -0700 From: Geoff Levand MIME-Version: 1.0 To: David Woodhouse Subject: Re: [Cbe-oss-dev] [PATCH] Ignore memory listed in PS3 device tree References: <1175208237.3122.78.camel@pmac.infradead.org> In-Reply-To: <1175208237.3122.78.camel@pmac.infradead.org> Content-Type: text/plain; charset=UTF-8 Cc: linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , David Woodhouse wrote: > The old 2.6.16 kernel handled memory statically and it was shown in the > device tree. The current kernel deals with the hypervisor and hotplugs > the memory, so we should just ignore anything that's reported in the > device-tree. This enables the current kernel to be booted from 2.6.16 > without evil hacks in head_64.S to override the device-tree. > > Signed-off-by: David Woodhouse > > diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c > index 08bd255..dd38408 100644 > --- a/arch/powerpc/kernel/prom.c > +++ b/arch/powerpc/kernel/prom.c > @@ -52,6 +52,7 @@ > #include > #include > #include > +#include > > #ifdef DEBUG > #define DBG(fmt...) printk(KERN_ERR fmt) > @@ -862,6 +863,9 @@ static int __init early_init_dt_scan_memory(unsigned long node, > cell_t *reg, *endp; > unsigned long l; > > + if (firmware_has_feature(FW_FEATURE_PS3_LV1)) > + return 0; > + > /* Look for the ibm,dynamic-reconfiguration-memory node */ > if (depth == 1 && > strcmp(uname, "ibm,dynamic-reconfiguration-memory") == 0) > I committed a change that pulls the command line out of the incompatible DT and merges it with the built-in DT. http://git.kernel.org/?p=linux/kernel/git/geoff/ps3-linux-patches.git;a=blob;f=ps3-hacks/ps3-no-bootwrapper-hack.diff -Geoff