]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:49:03 +0000 (14:49 -0700)
commit11372ae1ccbfee91d85e59cb1d6d4ff3b55b5659
tree7c29c79387278c73abfda87bc6c35902f5fbe614
parent3a14513f75e01d9b7a4a264014f0947a05ffbb00
powerpc: Update TM user feature bits in scan_features()

commit 4705e02498d6d5a7ab98dfee9595cd5e91db2017 upstream.

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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/prom.c