diff mbox series

[2/2] xen/arm: Enable CPU Errata 1165522 for Neoverse

Message ID 8680961067334f6049eb5215b3939195d3da00d8.1597740876.git.bertrand.marquis@arm.com (mailing list archive)
State New, archived
Headers show
Series Enable 1165522 Errata for Neovers | expand

Commit Message

Bertrand Marquis Aug. 18, 2020, 1:47 p.m. UTC
Enable CPU errata of Speculative AT on the Neoverse N1 processor
versions r0p0 to r2p0.
Also Fix Cortex A76 Errata string which had a wrong errata number.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
---
 xen/arch/arm/cpuerrata.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Julien Grall Aug. 18, 2020, 2:10 p.m. UTC | #1
Hi Bertrand,

There is only one. So it should be erratum :).

On 18/08/2020 14:47, Bertrand Marquis wrote:
> Enable CPU errata of Speculative AT on the Neoverse N1 processor

Ditto.

> versions r0p0 to r2p0.
> Also Fix Cortex A76 Errata string which had a wrong errata number.

Ditto.

And good catch for the typo :).

> 
> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>

All the NITs can be fixed during commit:

Acked-by: Julien Grall <jgrall@amazon.com>

Cheers,

> ---
>   xen/arch/arm/cpuerrata.c | 8 +++++++-
>   1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/xen/arch/arm/cpuerrata.c b/xen/arch/arm/cpuerrata.c
> index 0248893de0..6c09017515 100644
> --- a/xen/arch/arm/cpuerrata.c
> +++ b/xen/arch/arm/cpuerrata.c
> @@ -476,9 +476,15 @@ static const struct arm_cpu_capabilities arm_errata[] = {
>           .matches = has_ssbd_mitigation,
>       },
>   #endif
> +    {
> +        /* Neoverse r0p0 - r2p0 */
> +        .desc = "ARM erratum 1165522",
> +        .capability = ARM64_WORKAROUND_AT_SPECULATE,
> +        MIDR_RANGE(MIDR_NEOVERSE_N1, 0, 2 << MIDR_VARIANT_SHIFT),
> +    },
>       {
>           /* Cortex-A76 r0p0 - r2p0 */
> -        .desc = "ARM erratum 116522",
> +        .desc = "ARM erratum 1165522",
>           .capability = ARM64_WORKAROUND_AT_SPECULATE,
>           MIDR_RANGE(MIDR_CORTEX_A76, 0, 2 << MIDR_VARIANT_SHIFT),
>       },
>
Bertrand Marquis Aug. 18, 2020, 2:15 p.m. UTC | #2
> On 18 Aug 2020, at 15:10, Julien Grall <julien@xen.org> wrote:
> 
> Hi Bertrand,
> 
> There is only one. So it should be erratum :).

True my years of latin are quite far ;-)
Anyway grep for errata in commit logs would be defeated if we put erratum instead of errata.

> 
> On 18/08/2020 14:47, Bertrand Marquis wrote:
>> Enable CPU errata of Speculative AT on the Neoverse N1 processor
> 
> Ditto.
> 
>> versions r0p0 to r2p0.
>> Also Fix Cortex A76 Errata string which had a wrong errata number.
> 
> Ditto.
> 
> And good catch for the typo :).
> 
>> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> 
> All the NITs can be fixed during commit:
> 
> Acked-by: Julien Grall <jgrall@amazon.com>

Thanks
Bertrand

> 
> Cheers,
> 
>> ---
>>  xen/arch/arm/cpuerrata.c | 8 +++++++-
>>  1 file changed, 7 insertions(+), 1 deletion(-)
>> diff --git a/xen/arch/arm/cpuerrata.c b/xen/arch/arm/cpuerrata.c
>> index 0248893de0..6c09017515 100644
>> --- a/xen/arch/arm/cpuerrata.c
>> +++ b/xen/arch/arm/cpuerrata.c
>> @@ -476,9 +476,15 @@ static const struct arm_cpu_capabilities arm_errata[] = {
>>          .matches = has_ssbd_mitigation,
>>      },
>>  #endif
>> +    {
>> +        /* Neoverse r0p0 - r2p0 */
>> +        .desc = "ARM erratum 1165522",
>> +        .capability = ARM64_WORKAROUND_AT_SPECULATE,
>> +        MIDR_RANGE(MIDR_NEOVERSE_N1, 0, 2 << MIDR_VARIANT_SHIFT),
>> +    },
>>      {
>>          /* Cortex-A76 r0p0 - r2p0 */
>> -        .desc = "ARM erratum 116522",
>> +        .desc = "ARM erratum 1165522",
>>          .capability = ARM64_WORKAROUND_AT_SPECULATE,
>>          MIDR_RANGE(MIDR_CORTEX_A76, 0, 2 << MIDR_VARIANT_SHIFT),
>>      },
> 
> -- 
> Julien Grall
diff mbox series

Patch

diff --git a/xen/arch/arm/cpuerrata.c b/xen/arch/arm/cpuerrata.c
index 0248893de0..6c09017515 100644
--- a/xen/arch/arm/cpuerrata.c
+++ b/xen/arch/arm/cpuerrata.c
@@ -476,9 +476,15 @@  static const struct arm_cpu_capabilities arm_errata[] = {
         .matches = has_ssbd_mitigation,
     },
 #endif
+    {
+        /* Neoverse r0p0 - r2p0 */
+        .desc = "ARM erratum 1165522",
+        .capability = ARM64_WORKAROUND_AT_SPECULATE,
+        MIDR_RANGE(MIDR_NEOVERSE_N1, 0, 2 << MIDR_VARIANT_SHIFT),
+    },
     {
         /* Cortex-A76 r0p0 - r2p0 */
-        .desc = "ARM erratum 116522",
+        .desc = "ARM erratum 1165522",
         .capability = ARM64_WORKAROUND_AT_SPECULATE,
         MIDR_RANGE(MIDR_CORTEX_A76, 0, 2 << MIDR_VARIANT_SHIFT),
     },