From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH] xen/arm: Rework the way to compute dom0 DTB base address Date: Tue, 28 May 2013 12:24:28 +0100 Message-ID: <51A493EC.2010805@linaro.org> References: <1369662637-21449-1-git-send-email-julien.grall@linaro.org> <1369731838.3469.29.camel@zakaz.uk.xensource.com> <51A490E7.7030006@linaro.org> <1369739941.3469.60.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1369739941.3469.60.camel@zakaz.uk.xensource.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 Cc: Stefano.Stabellini@eu.citrix.com, patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 05/28/2013 12:19 PM, Ian Campbell wrote: >>>> if ( ret < 0 ) >>>> goto err; >>>> >>>> - /* >>>> - * Put the device tree at the beginning of the first bank. It >>>> - * must be below 4 GiB. >>>> - */ >>>> - kinfo->dtb_paddr = kinfo->mem.bank[0].start + 0x100; >>>> if ( kinfo->dtb_paddr + fdt_totalsize(kinfo->fdt) > (1ull << 32) ) >>> >>> Isn't this check now misplaced? >> >> >> Right. I think we can remove kinfo->dtb_paddr and just check the DTB >> size is less than 4GiB. > > Is it easy to check for overlap with the kernel and provide a useful > message in that case? It's possible :). I will add it in the next version. -- Julien