[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/arm: Document the erratum #853709 related to Cortex A72


  • To: Michal Orzel <Michal.Orzel@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Wed, 14 Oct 2020 11:01:33 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v81OGU/oYynWnpyl4yVM4oQHFkexGrHYGKU0kzcxm3Q=; b=ZIK3Zp9faqs3fRO9c7FtEEfAYyqPU1vQTHE1/NCR/8IOSv2Y04REtqj2WzIjoKRcg3gHsP2tDURcOJJoY3c78KSXg8LwgF0Kf02YDwELTx6B7KijLzLzl5UMa2pxqadhaw2imy0riOvb2NiMEAX+DieR+1DsgBmMIIWQiPTj4sPEHtW6J7LiSrojXO9WmgVUkkkl8S955dago7scEIRSp28ruilQ92sjwaK5FyR3h3s0SRccob0N/uj7j5C8nqFZoeRWpqDkOLvh4DxvfS66ba80x1WtufPWj04Wgk6lHvsqh85+gwXo5N9p6yiuMCr78AD0FoUu4PeBbLlqm8Ogtg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=njqmeoFZnQxHI2ayxPSKtrWUYRQ6iy0AA1MKxSPd961H9RtFKry5k1H5DmqJOOKCNcK0m58pMD3iUGVOuzACTe6PoO2JiEebP0kEMppZA8ov0Jb9cPU2J1+5/9EWbVGrw+FUrWGoIlwpEVXH5WnV2M38ESzmvicGnzjmTMkoM7AAWhEjwJNRLq8HfjnOC/RAAFdcojJbaTCVyw7XxBo+PSdvi4+MeoB4XlKgg3Fa74DIRJEmuWj5BhbWKCHgGtoIyMfJKdAMeA1+LPaoIqm/PCAHUh9amICP663hqvNeapkKYgHIxgTFvSxG9tn0L2Ycd84eTP1oEU1LfFAGXFoyhQ==
  • Authentication-results-original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 14 Oct 2020 11:01:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHWohGs6LiftGVtsEyTPb4Ao6iKoqmW7pwA
  • Thread-topic: [PATCH] xen/arm: Document the erratum #853709 related to Cortex A72

Hi,

> On 14 Oct 2020, at 11:05, Michal Orzel <Michal.Orzel@xxxxxxx> wrote:
> 
> Workaround for Cortex-A57 erratum #852523 is already
> in Xen but Cortex-A72 erratum #853709 is not although
> it applies to the same issue.
> 
> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>

Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

Change in commit message suggested by Julien is quite right and
should be added.

Bertrand

> ---
> docs/misc/arm/silicon-errata.txt | 1 +
> xen/arch/arm/domain.c            | 6 ++++--
> 2 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/docs/misc/arm/silicon-errata.txt 
> b/docs/misc/arm/silicon-errata.txt
> index e15d0923e9..1f18a9df58 100644
> --- a/docs/misc/arm/silicon-errata.txt
> +++ b/docs/misc/arm/silicon-errata.txt
> @@ -50,6 +50,7 @@ stable hypervisors.
> | ARM            | Cortex-A57      | #834220         | ARM64_ERRATUM_834220   
>  |
> | ARM            | Cortex-A57      | #1319537        | N/A                    
>  |
> | ARM            | Cortex-A72      | #1319367        | N/A                    
>  |
> +| ARM            | Cortex-A72      | #853709         | N/A                   
>   |
> | ARM            | Cortex-A76      | #1165522        | N/A                    
>  |
> | ARM            | Neoverse-N1     | #1165522        | N/A
> | ARM            | MMU-500         | #842869         | N/A                    
>  |
> diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c
> index 3b37f899b9..18cafcdda7 100644
> --- a/xen/arch/arm/domain.c
> +++ b/xen/arch/arm/domain.c
> @@ -216,7 +216,8 @@ static void ctxt_switch_to(struct vcpu *n)
>     WRITE_SYSREG64(n->arch.ttbr1, TTBR1_EL1);
> 
>     /*
> -     * Erratum #852523: DACR32_EL2 must be restored before one of the
> +     * Erratum #852523 (Cortex-A57) or erratum #853709 (Cortex-A72):
> +     * DACR32_EL2 must be restored before one of the
>      * following sysregs: SCTLR_EL1, TCR_EL1, TTBR0_EL1, TTBR1_EL1 or
>      * CONTEXTIDR_EL1.
>      */
> @@ -245,7 +246,8 @@ static void ctxt_switch_to(struct vcpu *n)
> 
>     /*
>      * This write to sysreg CONTEXTIDR_EL1 ensures we don't hit erratum
> -     * #852523. I.e DACR32_EL2 is not correctly synchronized.
> +     * #852523 (Cortex-A57) or #853709 (Cortex-A72).
> +     * I.e DACR32_EL2 is not correctly synchronized.
>      */
>     WRITE_SYSREG(n->arch.contextidr, CONTEXTIDR_EL1);
>     WRITE_SYSREG(n->arch.tpidr_el0, TPIDR_EL0);
> -- 
> 2.28.0
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.