Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
adeecf92
Commit
adeecf92
authored
8 years ago
by
Sandrine Bailleux
Browse files
Options
Download
Email Patches
Plain Diff
Add support for Cortex-A57 erratum 833471 workaround
Change-Id: I86ac81ffd7cd094ce68c4cceb01c16563671a063
parent
07288865
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.4
v1.4-rc0
v1.3
v1.3_rc2
v1.3_rc1
v1.3-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/cpu-specific-build-macros.md
+3
-0
docs/cpu-specific-build-macros.md
include/lib/cpus/aarch64/cortex_a57.h
+1
-0
include/lib/cpus/aarch64/cortex_a57.h
lib/cpus/aarch64/cortex_a57.S
+31
-0
lib/cpus/aarch64/cortex_a57.S
lib/cpus/cpu-ops.mk
+8
-0
lib/cpus/cpu-ops.mk
with
43 additions
and
0 deletions
+43
-0
docs/cpu-specific-build-macros.md
View file @
adeecf92
...
...
@@ -72,6 +72,9 @@ For Cortex-A57, following errata build flags are defined :
*
`ERRATA_A57_829520`
: This applies errata 829520 workaround to Cortex-A57
CPU. This needs to be enabled only for revision <= r1p2 of the CPU.
*
`ERRATA_A57_833471`
: This applies errata 833471 workaround to Cortex-A57
CPU. This needs to be enabled only for revision <= r1p2 of the CPU.
3.
CPU Specific optimizations
------------------------------
...
...
This diff is collapsed.
Click to expand it.
include/lib/cpus/aarch64/cortex_a57.h
View file @
adeecf92
...
...
@@ -66,6 +66,7 @@
#define CPUACTLR_DIS_OVERREAD (1 << 52)
#define CPUACTLR_NO_ALLOC_WBWA (1 << 49)
#define CPUACTLR_DCC_AS_DCCI (1 << 44)
#define CPUACTLR_FORCE_FPSCR_FLUSH (1 << 38)
#define CPUACTLR_DIS_STREAMING (3 << 27)
#define CPUACTLR_DIS_L1_STREAMING (3 << 25)
#define CPUACTLR_DIS_INDIRECT_PREDICTOR (1 << 4)
...
...
This diff is collapsed.
Click to expand it.
lib/cpus/aarch64/cortex_a57.S
View file @
adeecf92
...
...
@@ -277,6 +277,32 @@ apply_829520:
ret
endfunc
errata_a57_829520_wa
/
*
---------------------------------------------------
*
Errata
Workaround
for
Cortex
A57
Errata
#
833471
.
*
This
applies
only
to
revision
<=
r1p2
of
Cortex
A57
.
*
Inputs
:
*
x0
:
variant
[
4
:
7
]
and
revision
[
0
:
3
]
of
current
cpu
.
*
Clobbers
:
x0
-
x5
*
---------------------------------------------------
*/
func
errata_a57_833471_wa
/
*
*
Compare
x0
against
revision
r1p2
*/
cmp
x0
,
#
0x12
b.ls
apply_833471
#if LOG_LEVEL >= LOG_LEVEL_VERBOSE
b
print_revision_warning
#else
ret
#endif
apply_833471
:
mrs
x1
,
CPUACTLR_EL1
orr
x1
,
x1
,
#
CPUACTLR_FORCE_FPSCR_FLUSH
msr
CPUACTLR_EL1
,
x1
ret
endfunc
errata_a57_833471_wa
/
*
-------------------------------------------------
*
The
CPU
Ops
reset
function
for
Cortex
-
A57
.
*
Clobbers
:
x0
-
x5
,
x15
,
x19
,
x30
...
...
@@ -330,6 +356,11 @@ func cortex_a57_reset_func
bl
errata_a57_829520_wa
#endif
#if ERRATA_A57_833471
mov
x0
,
x15
bl
errata_a57_833471_wa
#endif
/
*
---------------------------------------------
*
Enable
the
SMP
bit
.
*
---------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
lib/cpus/cpu-ops.mk
View file @
adeecf92
...
...
@@ -90,6 +90,10 @@ ERRATA_A57_828024 ?=0
# only to revision <= r1p2 of the Cortex A57 cpu.
ERRATA_A57_829520
?=
0
# Flag to apply erratum 833471 workaround during reset. This erratum applies
# only to revision <= r1p2 of the Cortex A57 cpu.
ERRATA_A57_833471
?=
0
# Process ERRATA_A53_826319 flag
$(eval
$(call
assert_boolean,ERRATA_A53_826319))
$(eval
$(call
add_define,ERRATA_A53_826319))
...
...
@@ -121,3 +125,7 @@ $(eval $(call add_define,ERRATA_A57_828024))
# Process ERRATA_A57_829520 flag
$(eval
$(call
assert_boolean,ERRATA_A57_829520))
$(eval
$(call
add_define,ERRATA_A57_829520))
# Process ERRATA_A57_833471 flag
$(eval
$(call
assert_boolean,ERRATA_A57_833471))
$(eval
$(call
add_define,ERRATA_A57_833471))
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help