xen/arm: Add workaround for Cortex-A55 erratum #1530923
authorBertrand Marquis <bertrand.marquis@arm.com>
Tue, 24 Nov 2020 11:12:15 +0000 (11:12 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 19 Mar 2021 19:33:12 +0000 (12:33 -0700)
commit8d6755fb4466a0c9af6c8953392327022ec61428
treebc875693a0af61d5cd7db3506f77f70e9cac4308
parent2c46385e5ac44276cdb5d17da3e8ede6cd1f50f1
xen/arm: Add workaround for Cortex-A55 erratum #1530923

On the Cortex A55, TLB entries can be allocated by a speculative AT
instruction. If this is happening during a guest context switch with an
inconsistent page table state in the guest, TLBs with wrong values might
be allocated.
The ARM64_WORKAROUND_AT_SPECULATE workaround is used as for erratum
1165522 on Cortex A76 or Neoverse N1.

This change is also introducing the MIDR identifier for the Cortex-A55.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Julien Grall <jgrall@amazon.com>
(cherry picked from commit fd7479b9aec25885cc17d33b326b9babae59faee)
docs/misc/arm/silicon-errata.txt
xen/arch/arm/cpuerrata.c
xen/include/asm-arm/processor.h