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

Re: [Xen-devel] [PATCH for-4.13] xen/arm: Implement workaround for Cortex A-57 and Cortex A72 AT speculate


  • To: Julien Grall <julien.grall@xxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Tue, 24 Sep 2019 14:06:10 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=lsUwyl6sWwpc+noh1WbXBzCk5wF43YCVajQSUvRiRbE=; b=aMjdwTXDlmxr2eKclO7/zk7Im2qL6Ns1o/II2KSUam6i+QQGuQCNAtLsEMhCDeINGiq2VREh3CrbNMPRYlKzIBXdgAPkijoev6qCTZhq46feRABwcdXi3HSBXTD6b2VzBGMfpDOEIyXpPV92RPAbN430MmHJ6Mh4lLefj1rbWmfz3ikOXCEn28nWWXViKjY6NDJVW8suFtC1nCXo4v37OfR2UnF5PDK43iHhXV3dSy6QMsNVTGdwlcHq4KnBbuLxjE/H0Efaq3MO7NPAAmfGC6Pqq0piavamtSY8aLkCOEZ0KGHWBpfpM9WLx7NMStgFpWSLh+iNeY5LoN/37vEL9w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K2XC3riKIIinWnaVMrHpyty/LMWVA02R8jDAGHziObOy+X61/yTEyM+o6mHyacaTxZZMZ4cyzy16LNIQpj5XMBBe/6iH3WBVbDaBMojjsFMqihjrRZG1QUQd4FVgSEC9QfGrxsFkdgaTW2L0lLMxeD2b3sXdmjiI2XNnWIGv93lMKqz5pS6Myj12ofsHYp8ku7dX59A+z9s8ZwfrsIBHvAY/RrtaK+oQIWqcLYlzyJrTClIZWL4kLD118ofuiX4t0p5pRKMcITqEqsMqLu/BtCbcmklUpSMpxmci7fg6GlbvUhFHRDpsmmX66k+PDCD+UVvjdMm53TDuJ4tl0+j64w==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@xxxxxxxx;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 24 Sep 2019 14:06:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVcshSxoPdo79l10O4lpLJvULUNqc63N4A
  • Thread-topic: [PATCH for-4.13] xen/arm: Implement workaround for Cortex A-57 and Cortex A72 AT speculate


Julien Grall writes:

> Both Cortex-A57 (erratum 1319537) and Cortex-A72 (erratum 1319367) can
> end with corrupt TLBs if they speculate an AT instruction while S1/S2
> system registers in inconsistent state.
>
> The workaround is the same as for Cortex A-76 implemented by commit
> a18be06aca "xen/arm: Implement workaround for Cortex-A76 erratum 1165522",
> so it is only necessary to plumb in the cpuerrata framework.
>
> Signed-off-by: Julien Grall <julien.grall@xxxxxxx>
With a few nits:

Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>

> ---
>  docs/misc/arm/silicon-errata.txt |  2 ++
>  xen/arch/arm/cpuerrata.c         | 10 ++++++++++
>  2 files changed, 12 insertions(+)
>
> diff --git a/docs/misc/arm/silicon-errata.txt 
> b/docs/misc/arm/silicon-errata.txt
> index 6cd1366f15..cf193a6d4d 100644
> --- a/docs/misc/arm/silicon-errata.txt
> +++ b/docs/misc/arm/silicon-errata.txt
> @@ -48,5 +48,7 @@ stable hypervisors.
>  | ARM            | Cortex-A57      | #852523         | N/A                   
>   |
>  | ARM            | Cortex-A57      | #832075         | ARM64_ERRATUM_832075  
>   |
>  | ARM            | Cortex-A57      | #834220         | ARM64_ERRATUM_834220  
>   |
> +| ARM            | Cortex-A57      | #1319537        | N/A
> +| ARM            | Cortex-A72      | #1319367        | N/A
Looks like you missed the last |.

Also, is this "ARM" or "Arm"? I believe you asked me to user the latter.

>  | ARM            | Cortex-A76      | #1165522        | N/A                   
>   |
>  | ARM            | MMU-500         | #842869         | N/A                   
>   |
> diff --git a/xen/arch/arm/cpuerrata.c b/xen/arch/arm/cpuerrata.c
> index 6f483b2d8d..da72b02442 100644
> --- a/xen/arch/arm/cpuerrata.c
> +++ b/xen/arch/arm/cpuerrata.c
> @@ -481,6 +481,16 @@ static const struct arm_cpu_capabilities arm_errata[] = {
>          .capability = ARM64_WORKAROUND_AT_SPECULATE,
>          MIDR_RANGE(MIDR_CORTEX_A76, 0, 2 << MIDR_VARIANT_SHIFT),
>      },
> +    {
> +        .desc = "ARM erratum 1319537",
> +        .capability = ARM64_WORKAROUND_AT_SPECULATE,
> +        MIDR_ALL_VERSIONS(MIDR_CORTEX_A72),
> +    },
> +    {
> +        .desc = "ARM erratum 1319367",
> +        .capability = ARM64_WORKAROUND_AT_SPECULATE,
> +        MIDR_ALL_VERSIONS(MIDR_CORTEX_A57),
> +    },
>      {},
>  };


-- 
Volodymyr Babchuk at EPAM
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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