mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
Merge "fix(errata): workaround for Cortex-A710 erratum 2058056" into integration
This commit is contained in:
commit
de278f333b
4 changed files with 55 additions and 1 deletions
|
@ -401,6 +401,10 @@ For Cortex-A710, the following errata build flags are defined :
|
|||
Cortex-A710 CPU. This needs to be enabled for revision r2p0 of the CPU and
|
||||
is still open.
|
||||
|
||||
- ``ERRATA_A710_2058056``: This applies errata 2058056 workaround to
|
||||
Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
|
||||
of the CPU and is still open.
|
||||
|
||||
For Neoverse N2, the following errata build flags are defined :
|
||||
|
||||
- ``ERRATA_N2_2067956``: This applies errata 2067956 workaround to Neoverse-N2
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
* CPU Auxiliary Control register specific definitions.
|
||||
******************************************************************************/
|
||||
#define CORTEX_A710_CPUACTLR_EL1 S3_0_C15_C1_0
|
||||
#define CORTEX_A710_CPUACTLR_EL1_BIT_46 (ULL(1) << 46)
|
||||
#define CORTEX_A710_CPUACTLR_EL1_BIT_46 (ULL(1) << 46)
|
||||
|
||||
/*******************************************************************************
|
||||
* CPU Auxiliary Control register specific definitions.
|
||||
|
@ -33,4 +33,12 @@
|
|||
#define CORTEX_A710_CPUACTLR5_EL1 S3_0_C15_C8_0
|
||||
#define CORTEX_A710_CPUACTLR5_EL1_BIT_13 (ULL(1) << 13)
|
||||
|
||||
/*******************************************************************************
|
||||
* CPU Auxiliary Control register specific definitions.
|
||||
******************************************************************************/
|
||||
#define CORTEX_A710_CPUECTLR2_EL1 S3_0_C15_C1_5
|
||||
#define CORTEX_A710_CPUECTLR2_EL1_PF_MODE_CNSRV ULL(9)
|
||||
#define CPUECTLR2_EL1_PF_MODE_LSB U(11)
|
||||
#define CPUECTLR2_EL1_PF_MODE_WIDTH U(4)
|
||||
|
||||
#endif /* CORTEX_A710_H */
|
||||
|
|
|
@ -188,6 +188,34 @@ func check_errata_2083908
|
|||
b cpu_rev_var_range
|
||||
endfunc check_errata_2083908
|
||||
|
||||
/* ---------------------------------------------------------------------
|
||||
* Errata Workaround for Cortex-A710 Erratum 2058056.
|
||||
* This applies to revisions r0p0, r1p0 and r2p0 of Cortex-A710 and is still
|
||||
* open.
|
||||
* Inputs:
|
||||
* x0: variant[4:7] and revision[0:3] of current cpu.
|
||||
* Shall clobber: x0-x17
|
||||
* ---------------------------------------------------------------------
|
||||
*/
|
||||
func errata_a710_2058056_wa
|
||||
/* Compare x0 against revision r2p0 */
|
||||
mov x17, x30
|
||||
bl check_errata_2058056
|
||||
cbz x0, 1f
|
||||
mrs x1, CORTEX_A710_CPUECTLR2_EL1
|
||||
mov x0, #CORTEX_A710_CPUECTLR2_EL1_PF_MODE_CNSRV
|
||||
bfi x1, x0, #CPUECTLR2_EL1_PF_MODE_LSB, #CPUECTLR2_EL1_PF_MODE_WIDTH
|
||||
msr CORTEX_A710_CPUECTLR2_EL1, x1
|
||||
1:
|
||||
ret x17
|
||||
endfunc errata_a710_2058056_wa
|
||||
|
||||
func check_errata_2058056
|
||||
/* Applies to r0p0, r1p0 and r2p0 */
|
||||
mov x1, #0x20
|
||||
b cpu_rev_var_ls
|
||||
endfunc check_errata_2058056
|
||||
|
||||
/* ----------------------------------------------------
|
||||
* HW will do the cache maintenance while powering down
|
||||
* ----------------------------------------------------
|
||||
|
@ -223,6 +251,7 @@ func cortex_a710_errata_report
|
|||
report_errata ERRATA_A710_2055002, cortex_a710, 2055002
|
||||
report_errata ERRATA_A710_2017096, cortex_a710, 2017096
|
||||
report_errata ERRATA_A710_2083908, cortex_a710, 2083908
|
||||
report_errata ERRATA_A710_2058056, cortex_a710, 2058056
|
||||
|
||||
ldp x8, x30, [sp], #16
|
||||
ret
|
||||
|
@ -262,6 +291,11 @@ func cortex_a710_reset_func
|
|||
mov x0, x18
|
||||
bl errata_a710_2083908_wa
|
||||
#endif
|
||||
|
||||
#if ERRATA_A710_2058056
|
||||
mov x0, x18
|
||||
bl errata_a710_2058056_wa
|
||||
#endif
|
||||
isb
|
||||
ret x19
|
||||
endfunc cortex_a710_reset_func
|
||||
|
|
|
@ -437,6 +437,10 @@ ERRATA_A710_2081180 ?=0
|
|||
# to revision r2p0 of the Cortex-A710 cpu and is still open.
|
||||
ERRATA_A710_2083908 ?=0
|
||||
|
||||
# Flag to apply erratum 2058056 workaround during reset. This erratum applies
|
||||
# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
|
||||
ERRATA_A710_2058056 ?=0
|
||||
|
||||
# Flag to apply erratum 2067956 workaround during reset. This erratum applies
|
||||
# to revision r0p0 of the Neoverse N2 cpu and is still open.
|
||||
ERRATA_N2_2067956 ?=0
|
||||
|
@ -834,6 +838,10 @@ $(eval $(call add_define,ERRATA_A710_2081180))
|
|||
$(eval $(call assert_boolean,ERRATA_A710_2083908))
|
||||
$(eval $(call add_define,ERRATA_A710_2083908))
|
||||
|
||||
# Process ERRATA_A710_2058056 flag
|
||||
$(eval $(call assert_boolean,ERRATA_A710_2058056))
|
||||
$(eval $(call add_define,ERRATA_A710_2058056))
|
||||
|
||||
# Process ERRATA_N2_2067956 flag
|
||||
$(eval $(call assert_boolean,ERRATA_N2_2067956))
|
||||
$(eval $(call add_define,ERRATA_N2_2067956))
|
||||
|
|
Loading…
Add table
Reference in a new issue