arm64: Enable workaround for Cavium TX2 erratum 219 when running SMT
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 9 Apr 2019 15:26:21 +0000 (16:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:20:01 +0000 (09:20 +0100)
commit4292745536d22a2320fe262fa181cb88ec9ba94a
treeefc1a360c33d387c10b4694ae8e087c831bcfaa9
parentd97e4a6d2b2f7c0895bbf0ea90be4fcd46df910c
arm64: Enable workaround for Cavium TX2 erratum 219 when running SMT

commit 93916beb70143c46bf1d2bacf814be3a124b253b upstream.

It appears that the only case where we need to apply the TX2_219_TVM
mitigation is when the core is in SMT mode. So let's condition the
enabling on detecting a CPU whose MPIDR_EL1.Aff0 is non-zero.

Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/cpu_errata.c