From: Ian Campbell Subject: Re: [PATCH] xen: arm: load FDT below 0.5G Date: Wed, 24 Jul 2013 15:37:50 +0100 Message-ID: <1374676670.6623.180.camel@hastur.hellion.org.uk> References: <1374599528-4250-1-git-send-email-ijc@hellion.org.uk> <51EFDA28.6050301@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51EFDA28.6050301@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-07-24 at 14:44 +0100, Julien Grall wrote: > On 07/23/2013 06:12 PM, Ian Campbell wrote: > > From: Ian Campbell > > > > The 32-bit Linux kernel uses its lowmem direct mapping to access the FDT. The > > lowmem mapping is around 3/4GiB but varies depending on the kernel's .config. > > Use a limit of 1/2G to be safe. > > > > Signed-off-by: Ian Campbell > > I'm curious, how did you find this value? I can't easily find a specific > range for the lowmem direct mapping. There isn't one... With a standard 3:1 user:kernel split there is ~1G of kernel address space, but some of that is taken up by vmalloc areas, fixmap areas etc. My experience is that there is generally around 700-800M of actual 1:1 mapping of RAM, but the precise value depends on the kernel .config (e.g. how many fixmaps are implied by the settings etc). 512MB is therefore just a conservative guess... BTW I asked for confirmation on linux-arm-kernel but I don't see that in my l-a-k folder or the archives -- did you get the copy I CCd to you? Subject is "Requirements for FDT load address on ARM". Ian.