]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Update TM user feature bits in scan_features()
authorAnton Blanchard <anton@samba.org>
Fri, 15 Apr 2016 02:08:19 +0000 (12:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Apr 2016 10:10:45 +0000 (20:10 +1000)
commit4b7482eead6b13291a4267859b1ed53be484d2f5
tree28f8ea578da3a51f8008e92d011da3da6323424b
parenta802512ec53b95a75f94bd0ce24b086aa15dc457
powerpc: Update TM user feature bits in scan_features()

We need to update the user TM feature bits (PPC_FEATURE2_HTM and
PPC_FEATURE2_HTM) to mirror what we do with the kernel TM feature
bit.

At the moment, if firmware reports TM is not available we turn off
the kernel TM feature bit but leave the userspace ones on. Userspace
thinks it can execute TM instructions and it dies trying.

This (together with a QEMU patch) fixes PR KVM, which doesn't currently
support TM.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: stable@vger.kernel.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom.c