]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: vmx - Adding enable_kernel_vsx() to access VSX instructions
authorLeonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com>
Mon, 13 Jul 2015 16:51:39 +0000 (13:51 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:33:24 +0000 (19:33 +0200)
commit8a23f65f5aacc0467428fe888087ebdad164ead1
treef5cb1ec731bd39a5585587257260a19430cdee44
parent86661c0b4279b3b5fa2f543a6024a4f3cf05e8a2
crypto: vmx - Adding enable_kernel_vsx() to access VSX instructions

commit 2d6f0600b2cd755959527230ef5a6fba97bb762a upstream.

vmx-crypto driver make use of some VSX instructions which are
only available if VSX is enabled. Running in cases where VSX
are not enabled vmx-crypto fails in a VSX exception.

In order to fix this enable_kernel_vsx() was added to turn on
VSX instructions for vmx-crypto.

Signed-off-by: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/vmx/aes.c
drivers/crypto/vmx/aes_cbc.c
drivers/crypto/vmx/aes_ctr.c
drivers/crypto/vmx/ghash.c