]> git.karo-electronics.de Git - karo-tx-linux.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)
commit4705e02498d6d5a7ab98dfee9595cd5e91db2017
tree28f8ea578da3a51f8008e92d011da3da6323424b
parentbeff82374b259d726e2625ec6c518a5f2613f0ae
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