]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Relax ARM_SMCCC_ARCH_WORKAROUND_1 discovery
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Mar 2018 15:40:50 +0000 (15:40 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 Mar 2018 17:52:07 +0000 (17:52 +0000)
commitfe4ba0c0b437cc9074b51cd30a5e6b18f3c42deb
treee306067d92c50954a3685832c16b221fce32d9b1
parentb8596671769b29e9f2aa33ca476919e28ea2e182
arm64: Relax ARM_SMCCC_ARCH_WORKAROUND_1 discovery

A recent update to the ARM SMCCC ARCH_WORKAROUND_1 specification
allows firmware to return a non zero, positive value to describe
that although the mitigation is implemented at the higher exception
level, the CPU on which the call is made is not affected.

Let's relax the check on the return value from ARCH_WORKAROUND_1
so that we only error out if the returned value is negative.

Fixes: df8348303def ("arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support")
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpu_errata.c