Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1397190
| From | Andre Przywara <andre.przywara@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/6] arm64: include alternative handling in dcache_by_line_op |
| Date | 2016-05-09 19:00 +0200 |
| Message-ID | <rwWHg-16Q-21@gated-at.bofh.it> (permalink) |
| References | <rwWxA-11Z-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The newly introduced dcache_by_line_op macro is used at least in one occassion at the moment to issue a "dc cvau" instruction, which is affected by ARM errata 819472, 826319, 827319 and 824069. Change the macro to allow for alternative patching in there to protect affected Cortex-A53 cores. Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- arch/arm64/mm/proc-macros.S | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/mm/proc-macros.S b/arch/arm64/mm/proc-macros.S index e6a30e1..5786017 100644 --- a/arch/arm64/mm/proc-macros.S +++ b/arch/arm64/mm/proc-macros.S @@ -78,7 +78,14 @@ add \size, \kaddr, \size sub \tmp2, \tmp1, #1 bic \kaddr, \kaddr, \tmp2 -9998: dc \op, \kaddr +9998: + alternative_if_not ARM64_WORKAROUND_CLEAN_CACHE, (\op == cvau || \op == cvac) + dc \op, \kaddr + .if (\op == cvau || \op == cvac) + alternative_else + dc civac, \kaddr + alternative_endif + .endif add \kaddr, \kaddr, \tmp1 cmp \kaddr, \size b.lo 9998b -- 2.7.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] arm64: Extend Cortex-A53 errata workaround Andre Przywara <andre.przywara@arm.com> - 2016-05-09 18:50 +0200 [PATCH 1/6] arm64: alternatives: drop enable parameter from _else and _endif macro Andre Przywara <andre.przywara@arm.com> - 2016-05-09 19:00 +0200 [PATCH 3/6] arm64: include alternative handling in dcache_by_line_op Andre Przywara <andre.przywara@arm.com> - 2016-05-09 19:00 +0200 [PATCH 4/6] arm64: errata: Calling enable functions for CPU errata too Andre Przywara <andre.przywara@arm.com> - 2016-05-09 19:00 +0200
csiph-web