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

[xen staging] xen/arm: Enable workaround for Cortex-A53 erratum #1530924



commit 6279b9a3be35f3f2aa8322d58018bd94150415f1
Author:     Andrei Cherechesu <andrei.cherechesu@xxxxxxx>
AuthorDate: Tue Sep 10 17:34:11 2024 +0300
Commit:     Julien Grall <julien@xxxxxxx>
CommitDate: Mon Sep 16 22:00:45 2024 +0100

    xen/arm: Enable workaround for Cortex-A53 erratum #1530924
    
    All versions of Cortex-A53 cores are affected by the speculative
    AT instruction erratum, as mentioned in the Cortex-A53 Revision r0
    SDEN v21 documentation.
    
    Enabled ARM64_WORKAROUND_AT_SPECULATE for all versions of Cortex-A53
    cores, to avoid corrupting the TLB if performing a speculative AT
    instruction during a guest context switch.
    
    Signed-off-by: Andrei Cherechesu <andrei.cherechesu@xxxxxxx>
    Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
---
 docs/misc/arm/silicon-errata.txt | 1 +
 xen/arch/arm/cpuerrata.c         | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/docs/misc/arm/silicon-errata.txt b/docs/misc/arm/silicon-errata.txt
index fffca09656..853e06aec1 100644
--- a/docs/misc/arm/silicon-errata.txt
+++ b/docs/misc/arm/silicon-errata.txt
@@ -46,6 +46,7 @@ stable hypervisors.
 | ARM            | Cortex-A53      | #824069         | ARM64_ERRATUM_824069    
|
 | ARM            | Cortex-A53      | #819472         | ARM64_ERRATUM_819472    
|
 | ARM            | Cortex-A53      | #843419         | ARM64_ERRATUM_843419    
|
+| ARM            | Cortex-A53      | #1530924        | N/A                     
|
 | ARM            | Cortex-A55      | #1530923        | N/A                     
|
 | ARM            | Cortex-A57      | #852523         | N/A                     
|
 | ARM            | Cortex-A57      | #832075         | ARM64_ERRATUM_832075    
|
diff --git a/xen/arch/arm/cpuerrata.c b/xen/arch/arm/cpuerrata.c
index 2b7101ea25..afd0605922 100644
--- a/xen/arch/arm/cpuerrata.c
+++ b/xen/arch/arm/cpuerrata.c
@@ -683,6 +683,12 @@ static const struct arm_cpu_capabilities arm_errata[] = {
         .capability = ARM64_WORKAROUND_AT_SPECULATE,
         MIDR_ALL_VERSIONS(MIDR_CORTEX_A55),
     },
+    {
+        /* Cortex-A53 (All versions) */
+        .desc = "ARM erratum 1530924",
+        .capability = ARM64_WORKAROUND_AT_SPECULATE,
+        MIDR_ALL_VERSIONS(MIDR_CORTEX_A53),
+    },
     {},
 };
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

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