Skip to content

Commit

Permalink
xen/arm: Enable workaround for Cortex-A53 erratum #1530924
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Julien Grall <[email protected]>
  • Loading branch information
AndreiCherechesu-NXP authored and jgrall committed Sep 16, 2024
1 parent 4e1a333 commit 6279b9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/misc/arm/silicon-errata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
6 changes: 6 additions & 0 deletions xen/arch/arm/cpuerrata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
{},
};

Expand Down

0 comments on commit 6279b9a

Please sign in to comment.