]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Check for errata before evaluating cpu features
authorDirk Mueller <dmueller@suse.com>
Wed, 25 Jul 2018 11:10:28 +0000 (13:10 +0200)
committerWill Deacon <will.deacon@arm.com>
Wed, 25 Jul 2018 12:30:04 +0000 (13:30 +0100)
commit02015b3bc68a9f8532749f593e6f0182907cc0a6
tree174058c852b242e815e9082183e9122811abec5f
parentf3138ce0ec44ccd7d96f55387002e19cfd8d39de
arm64: Check for errata before evaluating cpu features

Since commit 03e67b9dffbf68 ("arm64: capabilities: Restrict KPTI
detection to boot-time CPUs") we rely on errata flags being already
populated during feature enumeration. The order of errata and
features was flipped as part of commit b3aa7606327d ("arm64:
capabilities: Group handling of features and errata workarounds").

Return to the orginal order of errata and feature evaluation to
ensure errata flags are present during feature evaluation.

Fixes: b3aa7606327d ("arm64: capabilities: Group handling of
    features and errata workarounds")
CC: Suzuki K Poulose <suzuki.poulose@arm.com>
CC: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Dirk Mueller <dmueller@suse.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/cpufeature.c