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-X3 erratum 2372204
Cortex-X3 erratum 2372204 is a Cat B erratum that applies to revisions r0p0 and r1p0. It is fixed in r1p1. The workaround is to set bit[40] of CPUACTLR2_EL1 to disable folding of demand requests into older prefetches with L2 miss requests outstanding. SDEN can be found here: https://developer.arm.com/documentation/SDEN2055130/latest Change-Id: Iad28f8625c84186fbd8049406d139d4f15c6e069 Signed-off-by: Bipin Ravi <biprav01@u203721.austin.arm.com>
This commit is contained in:
parent
df21d41b77
commit
7f69a40697
4 changed files with 22 additions and 6 deletions
|
@ -787,6 +787,10 @@ For Cortex-X3, the following errata build flags are defined :
|
|||
Cortex-X3 CPU. This needs to be enabled only for revisions r0p0 and r1p0
|
||||
of the CPU, it is fixed in r1p1.
|
||||
|
||||
- ``ERRATA_X3_2372204``: This applies errata 2372204 workaround to
|
||||
Cortex-X3 CPU. This needs to be enabled only for revisions r0p0 and r1p0
|
||||
of the CPU, it is fixed in r1p1.
|
||||
|
||||
- ``ERRATA_X3_2615812``: This applies errata 2615812 workaround to Cortex-X3
|
||||
CPU. This needs to be enabled only for revisions r0p0, r1p0 and r1p1 of the
|
||||
CPU, it is still open.
|
||||
|
|
|
@ -51,6 +51,13 @@ workaround_runtime_end cortex_x3, ERRATUM(2313909), NO_ISB
|
|||
|
||||
check_erratum_ls cortex_x3, ERRATUM(2313909), CPU_REV(1, 0)
|
||||
|
||||
workaround_reset_start cortex_x3, ERRATUM(2372204), ERRATA_X3_2372204
|
||||
/* Set bit 40 in CPUACTLR2_EL1 */
|
||||
sysreg_bit_set CORTEX_X3_CPUACTLR2_EL1, BIT(40)
|
||||
workaround_reset_end cortex_x3, ERRATUM(2372204)
|
||||
|
||||
check_erratum_ls cortex_x3, ERRATUM(2372204), CPU_REV(1, 0)
|
||||
|
||||
workaround_reset_start cortex_x3, ERRATUM(2615812), ERRATA_X3_2615812
|
||||
/* Disable retention control for WFI and WFE. */
|
||||
mrs x0, CORTEX_X3_CPUPWRCTLR_EL1
|
||||
|
|
|
@ -790,6 +790,10 @@ CPU_FLAG_LIST += ERRATA_X3_2302506
|
|||
# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
|
||||
CPU_FLAG_LIST += ERRATA_X3_2313909
|
||||
|
||||
# Flag to apply erratum 2372204 workaround during reset. This erratum applies
|
||||
# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
|
||||
CPU_FLAG_LIST += ERRATA_X3_2372204
|
||||
|
||||
# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
|
||||
# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is still open.
|
||||
CPU_FLAG_LIST += ERRATA_X3_2615812
|
||||
|
|
|
@ -451,12 +451,13 @@ struct em_cpu_list cpu_list[] = {
|
|||
[1] = {2266875, 0x00, 0x10, ERRATA_X3_2266875},
|
||||
[2] = {2302506, 0x00, 0x11, ERRATA_X3_2302506},
|
||||
[3] = {2313909, 0x00, 0x10, ERRATA_X3_2313909},
|
||||
[4] = {2615812, 0x00, 0x11, ERRATA_X3_2615812},
|
||||
[5] = {2641945, 0x00, 0x10, ERRATA_X3_2641945},
|
||||
[6] = {2742421, 0x00, 0x11, ERRATA_X3_2742421},
|
||||
[7] = {2743088, 0x00, 0x11, ERRATA_X3_2743088},
|
||||
[8] = {2779509, 0x00, 0x11, ERRATA_X3_2779509},
|
||||
[9 ... ERRATA_LIST_END] = UNDEF_ERRATA,
|
||||
[4] = {2372204, 0x00, 0x10, ERRATA_X3_2372204},
|
||||
[5] = {2615812, 0x00, 0x11, ERRATA_X3_2615812},
|
||||
[6] = {2641945, 0x00, 0x10, ERRATA_X3_2641945},
|
||||
[7] = {2742421, 0x00, 0x11, ERRATA_X3_2742421},
|
||||
[8] = {2743088, 0x00, 0x11, ERRATA_X3_2743088},
|
||||
[9] = {2779509, 0x00, 0x11, ERRATA_X3_2779509},
|
||||
[10 ... ERRATA_LIST_END] = UNDEF_ERRATA,
|
||||
}
|
||||
},
|
||||
#endif /* CORTEX_X3_H_INC */
|
||||
|
|
Loading…
Add table
Reference in a new issue