]> asedeno.scripts.mit.edu Git - linux.git/commit
arm64/errata: add REVIDR handling to framework
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 6 Mar 2018 17:15:34 +0000 (17:15 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Mar 2018 13:23:08 +0000 (13:23 +0000)
commite8002e02abf052c07bb87b867789034bc79aac10
treedc8c80d2d0f704cde4b20a9c6e0fb3cc270bc406
parenta257e02579e42703de1b7825cbd56cd7191f97b0
arm64/errata: add REVIDR handling to framework

In some cases, core variants that are affected by a certain erratum
also exist in versions that have the erratum fixed, and this fact is
recorded in a dedicated bit in system register REVIDR_EL1.

Since the architecture does not require that a certain bit retains
its meaning across different variants of the same model, each such
REVIDR bit is tightly coupled to a certain revision/variant value,
and so we need a list of revidr_mask/midr pairs to carry this
information.

So add the struct member and the associated macros and handling to
allow REVIDR fixes to be taken into account.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpu_errata.c