From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 8/8] xen: arm: allocate more than one bank for 1:1 domain 0 if needed Date: Tue, 17 Jun 2014 18:58:36 +0100 Message-ID: <53A081CC.2090808@linaro.org> References: <1402504640.16332.50.camel@kazak.uk.xensource.com> <1402504804-29173-8-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1402504804-29173-8-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , xen-devel@lists.xen.org Cc: tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Hi Ian, On 06/11/2014 05:40 PM, Ian Campbell wrote: > + /* > + * First try and allocate the largest thing we can as low as > + * possible to be bank 0. > + */ > + while ( order > min_low_order ) > + { > + for ( bits = order ; bits < (lowmem ? 32 : PADDR_BITS); bits++ ) > + { > + pg = alloc_domheap_pages(d, order, MEMF_bits(bits)); > + if ( pg != NULL ) > + goto got_bank0; > + } > + order--; > + } > + > + panic("Unable to allocate first memory bank"); I gave a try to this patch in stand-alone on the versatile express and I hit this panic. Xen is trying to allocate 128Mb for the first bank. It was working without this patch. Regards, -- Julien Grall