crypto: vmx - Improved AES/XTS performance of 6-way unrolling for ppc
authorDanny Tsen <dtsen@linux.ibm.com>
Wed, 30 Aug 2023 13:49:11 +0000 (09:49 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Sep 2023 10:29:45 +0000 (18:29 +0800)
commit6b36dafedd53276a8fb7d7a12ee549560e48b8ee
tree2b887e8e4d737c43fbec521de5d68541782731da
parent65029eec5ceba7d847f27171cdddb046bdc3a069
crypto: vmx - Improved AES/XTS performance of 6-way unrolling for ppc

Improve AES/XTS performance of 6-way unrolling for PowerPC up
to 17% with tcrypt.  This is done by using one instruction,
vpermxor, to replace xor and vsldoi.

The same changes were applied to OpenSSL code and a pull request was
submitted.

This patch has been tested with the kernel crypto module tcrypt.ko and
has passed the selftest.  The patch is also tested with
CONFIG_CRYPTO_MANAGER_EXTRA_TESTS enabled.

Signed-off-by: Danny Tsen <dtsen@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/vmx/aesp8-ppc.pl