From: Ian Campbell Subject: Re: XEN[ARM] Master not working on Allwinner A20 Date: Tue, 7 Jan 2014 13:58:18 +0000 Message-ID: <1389103098.12612.21.camel@kazak.uk.xensource.com> References: <1387188577.20076.44.camel@kazak.uk.xensource.com> <1387199654.10247.30.camel@kazak.uk.xensource.com> <52B05913.2080300@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "karim.allah.ahmed@gmail.com" Cc: Julien Grall , peter , Julien Grall , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Sun, 2014-01-05 at 16:48 +0000, karim.allah.ahmed@gmail.com wrote: > If you still can't boot with any memory bigger than 128M, as a fast > workaround you can apply this patch. I wonder if it might be possible to work around this by more carefully selecting the load addresses for Xen+Linux+DTB+initrd, such that they are packed into the top end of RAM, leaving a larger contiguous chunk available at the beginning. e.g. if sizeof(Xen)=X and sizeof(Linux)=L and sizeof(DTB)=D (all rounded up to 2M boundary) then load things at: MEMMAX-X: Leave free for high relocation of hypervisor MEMMAX-X-L: Load Linux here MEMMAX-X-L-D: Load DTB here MEMMAX-X-L-D-X: Load initial Xen image here Ultimately this is because allocations need to be aligned to their size, so on a 1GB system there are only two possible 512MB allocations, if even one page is allocated in each half then it isn't possible to satisfy things. I don't think the core allocator gives us the option to do non-aligned allocations. Disabling the 1:1 mapping workaround allocates the region a page at a time so it doesn't suffer from this. We are probably mostly stuck with this for 4.4. As Julien says for 4.5 we should probably look into giving dom0 multiple banks where necessary. Ian.