OSDN Git Service

arm64: add Cortex-A53 cache errata workaround
authorAndre Przywara <andre.przywara@arm.com>
Fri, 14 Nov 2014 15:54:10 +0000 (15:54 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 25 Nov 2014 15:56:21 +0000 (15:56 +0000)
commit301bcfac42897dbd1b0b3c1be49f24654a1bc49e
treebd42ce2fcf06bc99fb2b553969cdc2dba3cb1c0b
parente116a375423393cdb94714e90a96857005d58428
arm64: add Cortex-A53 cache errata workaround

The ARM errata 819472, 826319, 827319 and 824069 define the same
workaround for these hardware issues in certain Cortex-A53 parts.
Use the new alternatives framework and the CPU MIDR detection to
patch "cache clean" into "cache clean and invalidate" instructions if
an affected CPU is detected at runtime.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
[will: add __maybe_unused to squash gcc warning]
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/alternative-asm.h
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/cputype.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/mm/cache.S