]> www.infradead.org Git - users/jedix/linux-maple.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:26:05 +0000 (19:26 +0200)
commit98747a5651a63b7e9246880909013753c7b633eb
tree1b9fc0362e55da3f6f2e930ecfe5a8717f03ca8e
parentb40924367be91f86c882a6a023a50fbfd7f9c430
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