]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: cpufeature: Fix CPU_OUT_OF_SPEC taint for uniform systems
authorWill Deacon <will.deacon@arm.com>
Mon, 5 Jun 2017 10:40:23 +0000 (11:40 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 5 Jun 2017 10:40:23 +0000 (11:40 +0100)
commite5577beb335b2b07fe0bbe9ff5ee8c4ab658aa48
tree4433eaf6241c70a08e09a8f9d766f67d3867acb5
parentf919f627f183da889d71c059ecf4117719748afb
arm64: cpufeature: Fix CPU_OUT_OF_SPEC taint for uniform systems

Commit 9f0a635d660a ("arm64: cpufeature: Don't dump useless backtrace on
CPU_OUT_OF_SPEC") changed the cpufeature detection code to use add_taint
instead of WARN_TAINT_ONCE when detecting a heterogeneous system with
mismatched feature support. Unfortunately, this resulted in all systems
getting the taint, regardless of any feature mismatch.

This patch fixes the problem by conditionalising the taint on detecting
a feature mismatch.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/cpufeature.c