]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: fix hardware PMU exception bug on PowerVM compatibility mode systems
authorDesnes A. Nunes do Rosario <desnesn@linux.ibm.com>
Thu, 27 Feb 2020 13:47:15 +0000 (10:47 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 27 Feb 2020 23:09:33 +0000 (10:09 +1100)
commitb58c38de6d280b83f2bfa87e30d26628dec9b56d
tree3d2cc770e40e05a4072d7affee44e15d12cdaa5c
parent90817d36aa782ada1e1a6ab0c39d8be6f2fbfd2c
powerpc: fix hardware PMU exception bug on PowerVM compatibility mode systems

PowerVM systems running compatibility mode on a few Power8 revisions are
still vulnerable to the hardware defect that loses PMU exceptions arriving
prior to a context switch.

The software fix for this issue is enabled through the CPU_FTR_PMAO_BUG
cpu_feature bit, nevertheless this bit also needs to be set for PowerVM
compatibility mode systems.

Fixes: 44fbefefc8df00e ("powerpc: Add a cpu feature CPU_FTR_PMAO_BUG")
Signed-off-by: Desnes A. Nunes do Rosario <desnesn@linux.ibm.com>
Reviewed-by: Leonardo Bras <leonardo@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200227134715.9715-1-desnesn@linux.ibm.com
arch/powerpc/kernel/cputable.c