From patchwork Thu Jun 6 12:06:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 17595 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f200.google.com (mail-gg0-f200.google.com [209.85.161.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B7D5B25DEA for ; Thu, 6 Jun 2013 12:07:09 +0000 (UTC) Received: by mail-gg0-f200.google.com with SMTP id k5sf2613668ggd.11 for ; Thu, 06 Jun 2013 05:07:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=9T6cXWT6G+MLWmkTFlLHS1V3InaUs1NY9+eTNH0orZA=; b=V/6lJPCyJBpXvOG4bE1dNruW7PWkpk+eZ554afV9q/96w1IkjNM/v/XvWqlojre6rl eqpHdyoL/weh7HU6ihW5Zpl4ik/JLZR8fepWNCL7B+/IAJa6j1XCJpyj9zO9XVTEO+X1 9T0hZgQFn5wPGa0hJIf9iU3EvISfELGaZTfax0VrQoHAz9P1PUDOp/eUZ/0pBi8/IdYA 51ZuPHkIr35az1fL+CpnJmNd9r7dM7dxtQJb6KuEociD1gV9DVJAYMoEZ1fZr6wvVpbj qiS6fdMfC0wOaelqPqwVspLuQg9dT7T6cfykJHnrvQeqpSuEXMrTbwhbPZmWWIwWLYaP sGUQ== X-Received: by 10.224.59.205 with SMTP id m13mr21125976qah.7.1370520429188; Thu, 06 Jun 2013 05:07:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.76.65 with SMTP id i1ls1309619qew.2.gmail; Thu, 06 Jun 2013 05:07:08 -0700 (PDT) X-Received: by 10.220.19.74 with SMTP id z10mr19222808vca.45.1370520428471; Thu, 06 Jun 2013 05:07:08 -0700 (PDT) Received: from mail-ve0-x22c.google.com (mail-ve0-x22c.google.com [2607:f8b0:400c:c01::22c]) by mx.google.com with ESMTPS id i3si621090vdw.113.2013.06.06.05.07.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 05:07:08 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22c; Received: by mail-ve0-f172.google.com with SMTP id jz10so2108562veb.17 for ; Thu, 06 Jun 2013 05:07:08 -0700 (PDT) X-Received: by 10.221.4.131 with SMTP id oc3mr21752260vcb.49.1370520428350; Thu, 06 Jun 2013 05:07:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp63972vcb; Thu, 6 Jun 2013 05:07:07 -0700 (PDT) X-Received: by 10.180.11.206 with SMTP id s14mr9430863wib.40.1370520427452; Thu, 06 Jun 2013 05:07:07 -0700 (PDT) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [2a00:1450:400c:c05::235]) by mx.google.com with ESMTPS id ck3si28057535wjc.164.2013.06.06.05.07.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 05:07:07 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::235 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c05::235; Received: by mail-wi0-f181.google.com with SMTP id hi5so274257wib.2 for ; Thu, 06 Jun 2013 05:07:06 -0700 (PDT) X-Received: by 10.194.80.39 with SMTP id o7mr718724wjx.94.1370520426867; Thu, 06 Jun 2013 05:07:06 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id b11sm15318559wiv.10.2013.06.06.05.07.03 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 05:07:06 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: stefano.stabellini@citrix.com, ian.campbell@citrix.com, patches@linaro.org, Julien Grall Subject: [PATCH] xen/arm: Update VTCR to use region size of 2^40 bytes instead of 2^39 Date: Thu, 6 Jun 2013 13:06:55 +0100 Message-Id: <1370520415-5598-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQnSceEDsgb9plKSHCdqhH9VAnJxe112L2JDTTo7UzRIERz9SQ6l7Vsul4HIraRQw8IMpB/8 X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , According to the ARM manual, T0SZ is a 4-bit signed integer. The current value of T0SZ = b1000 which is equal to -7. This is result to a size of 2^39 bytes instead of the desired value 2^40. Signed-off-by: Julien Grall --- xen/arch/arm/mm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index d1290cd..7d4e186 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -315,9 +315,9 @@ void __cpuinit setup_virt_paging(void) /* Setup Stage 2 address translation */ /* SH0=00, ORGN0=IRGN0=01 * SL0=01 (Level-1) - * T0SZ=(1)1000 = -8 (40 bit physical addresses) + * T0SZ=(1)1111 = -8 (40 bit physical addresses) */ - WRITE_SYSREG32(0x80002558, VTCR_EL2); isb(); + WRITE_SYSREG32(0x8000255f, VTCR_EL2); isb(); } /* This needs to be a macro to stop the compiler spilling to the stack