From: Ian Campbell Subject: Re: [PATCH v2] xen/dts: Don't translate invalid address Date: Tue, 7 Jan 2014 13:54:54 +0000 Message-ID: <1389102894.12612.17.camel@kazak.uk.xensource.com> References: <1389026178-8792-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W0X7T-00024o-9s for xen-devel@lists.xenproject.org; Tue, 07 Jan 2014 13:54:59 +0000 In-Reply-To: <1389026178-8792-1-git-send-email-julien.grall@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: xen-devel@lists.xenproject.org, stefano.stabellini@eu.citrix.com, tim@xen.org, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-01-06 at 16:36 +0000, Julien Grall wrote: > ePAR specifies that if the property "ranges" doesn't exist in a bus node: > > "it is assumed that no mapping exists between children of node and the parent > address space". > > Modify dt_number_of_address to check if the list of ranges are valid. Return > 0 (ie there is zero range) if the list is not valid. > > This patch has been tested on the Arndale where the bug can occur with the > '/hdmi' node. > > Reported-by: > Signed-off-by: Julien Grall Acked-by: Ian Campbell > This patch is a bug fix for Xen 4.4. Without it, Xen can't boot on the Arndale > because it's unable to translate a wrong address. RM hat: Arndale is one of our main platforms today, so not working out of the box is a pretty serious issue. The risk of course is that we break things on some other platform. I think we know that none of the other platforms have this problem, since otherwise Xen wouldn't boot on them. Given the ePAPR specification trying to translate these addresses is totally meaningless so it seems unlikely that stopping trying to translate them would cause an issue. So I think this is OK. Applied.