From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: In-Reply-To: <1175473220.3144.1.camel@concordia.ozlabs.ibm.com> References: <1175208237.3122.78.camel@pmac.infradead.org> <26babf7b7398794f08e7417377b3facc@kernel.crashing.org> <1175473220.3144.1.camel@concordia.ozlabs.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <432af8a0f928491e7d376923829f40a0@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [Cbe-oss-dev] [PATCH] Ignore memory listed in PS3 device tree Date: Mon, 2 Apr 2007 19:36:40 +0200 To: michael@ellerman.id.au Cc: linuxppc-dev@ozlabs.org, David Woodhouse , cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >>> 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. >> >> Surely when you are booted you already have some >> memory plugged for you -- shouldn't that memory be >> in the device tree? > > See ps3_mm_init(), called from _probe_. Yes sure, the hypervisor has given you some memory already, and it tells you about it. My question remains: shouldn't Linux get that information from the device tree, instead? The bootwrapper or bootloader can put it there. Segher