mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 17:14:21 +00:00
fix(cpus): workaround for Cortex-A715 erratum 2561034
Cortex-A715 erratum 2561034 is a Cat B erratum that applies to revision r1p0 and is fixed in r1p1. The workaround is to set bit[26] in CPUACTLR2_EL1. Setting this bit is not expected to have a significant performance impact. SDEN documentation: https://developer.arm.com/documentation/SDEN2148827/latest Change-Id: I377f250a2994b6ced3ac7d93f947af6ceb690d49 Signed-off-by: Bipin Ravi <bipin.ravi@arm.com>
This commit is contained in:
parent
17bef2248d
commit
6a6b282378
5 changed files with 24 additions and 4 deletions
|
@ -872,6 +872,10 @@ For Cortex-A520, the following errata build flags are defined :
|
||||||
|
|
||||||
For Cortex-A715, the following errata build flags are defined :
|
For Cortex-A715, the following errata build flags are defined :
|
||||||
|
|
||||||
|
- ``ERRATA_A715_2561034``: This applies errata 2561034 workaround to
|
||||||
|
Cortex-A715 CPU. This needs to be enabled only for revision r1p0.
|
||||||
|
It is fixed in r1p1.
|
||||||
|
|
||||||
- ``ERRATA_A715_2701951``: This applies erratum 2701951 workaround to Cortex-A715
|
- ``ERRATA_A715_2701951``: This applies erratum 2701951 workaround to Cortex-A715
|
||||||
CPU and affects system configurations that do not use an ARM interconnect
|
CPU and affects system configurations that do not use an ARM interconnect
|
||||||
IP. This needs to be applied to revisions r0p0, r1p0 and r1p1. It is fixed
|
IP. This needs to be applied to revisions r0p0, r1p0 and r1p1. It is fixed
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2021-2023, Arm Limited. All rights reserved.
|
* Copyright (c) 2021-2024, Arm Limited. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -12,6 +12,11 @@
|
||||||
/* Cortex-A715 loop count for CVE-2022-23960 mitigation */
|
/* Cortex-A715 loop count for CVE-2022-23960 mitigation */
|
||||||
#define CORTEX_A715_BHB_LOOP_COUNT U(38)
|
#define CORTEX_A715_BHB_LOOP_COUNT U(38)
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
* CPU Auxiliary Control register 2 specific definitions.
|
||||||
|
******************************************************************************/
|
||||||
|
#define CORTEX_A715_CPUACTLR2_EL1 S3_0_C15_C1_1
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* CPU Extended Control register specific definitions
|
* CPU Extended Control register specific definitions
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2021-2023, Arm Limited. All rights reserved.
|
* Copyright (c) 2021-2024, Arm Limited. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -26,6 +26,12 @@
|
||||||
wa_cve_2022_23960_bhb_vector_table CORTEX_A715_BHB_LOOP_COUNT, cortex_a715
|
wa_cve_2022_23960_bhb_vector_table CORTEX_A715_BHB_LOOP_COUNT, cortex_a715
|
||||||
#endif /* WORKAROUND_CVE_2022_23960 */
|
#endif /* WORKAROUND_CVE_2022_23960 */
|
||||||
|
|
||||||
|
workaround_runtime_start cortex_a715, ERRATUM(2561034), ERRATA_A715_2561034
|
||||||
|
sysreg_bit_set CORTEX_A715_CPUACTLR2_EL1, BIT(26)
|
||||||
|
workaround_runtime_end cortex_a715, ERRATUM(2561034), NO_ISB
|
||||||
|
|
||||||
|
check_erratum_range cortex_a715, ERRATUM(2561034), CPU_REV(1, 0), CPU_REV(1, 0)
|
||||||
|
|
||||||
workaround_reset_start cortex_a715, CVE(2022, 23960), WORKAROUND_CVE_2022_23960
|
workaround_reset_start cortex_a715, CVE(2022, 23960), WORKAROUND_CVE_2022_23960
|
||||||
#if IMAGE_BL31
|
#if IMAGE_BL31
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -903,6 +903,10 @@ CPU_FLAG_LIST += ERRATA_V2_2779510
|
||||||
# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
|
# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
|
||||||
CPU_FLAG_LIST += ERRATA_V2_2801372
|
CPU_FLAG_LIST += ERRATA_V2_2801372
|
||||||
|
|
||||||
|
# Flag to apply erratum 2561034 workaround during reset. This erratum applies
|
||||||
|
# only to revision r1p0. It is fixed in r1p1.
|
||||||
|
CPU_FLAG_LIST += ERRATA_A715_2561034
|
||||||
|
|
||||||
# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
|
# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
|
||||||
# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
|
# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
|
||||||
CPU_FLAG_LIST += ERRATA_A715_2701951
|
CPU_FLAG_LIST += ERRATA_A715_2701951
|
||||||
|
|
|
@ -435,9 +435,10 @@ struct em_cpu_list cpu_list[] = {
|
||||||
{
|
{
|
||||||
.cpu_partnumber = CORTEX_A715_MIDR,
|
.cpu_partnumber = CORTEX_A715_MIDR,
|
||||||
.cpu_errata_list = {
|
.cpu_errata_list = {
|
||||||
[0] = {2701951, 0x00, 0x11, ERRATA_A715_2701951, \
|
[0] = {2561034, 0x10, 0x10, ERRATA_A715_2561034},
|
||||||
|
[1] = {2701951, 0x00, 0x11, ERRATA_A715_2701951, \
|
||||||
ERRATA_NON_ARM_INTERCONNECT},
|
ERRATA_NON_ARM_INTERCONNECT},
|
||||||
[1 ... ERRATA_LIST_END] = UNDEF_ERRATA,
|
[2 ... ERRATA_LIST_END] = UNDEF_ERRATA,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
#endif /* CORTEX_A715_H_INC */
|
#endif /* CORTEX_A715_H_INC */
|
||||||
|
|
Loading…
Add table
Reference in a new issue