diff mbox

powerpc/configs: Enable VMX crypto

Message ID 1468280637-11013-1-git-send-email-anton@ozlabs.org (mailing list archive)
State Changes Requested
Headers show

Commit Message

Anton Blanchard July 11, 2016, 11:43 p.m. UTC
From: Anton Blanchard <anton@samba.org>

We see big improvements with the VMX crypto functions (often 10x or more),
so enable it as a module.

Signed-off-by: Anton Blanchard <anton@samba.org>
---
 arch/powerpc/configs/powernv_defconfig | 2 ++
 arch/powerpc/configs/ppc64_defconfig   | 2 ++
 arch/powerpc/configs/pseries_defconfig | 2 ++
 3 files changed, 6 insertions(+)

Comments

Michael Ellerman July 14, 2016, 10:13 a.m. UTC | #1
Anton Blanchard <anton@ozlabs.org> writes:

> From: Anton Blanchard <anton@samba.org>
>
> We see big improvements with the VMX crypto functions (often 10x or more),
> so enable it as a module.

I can't build pseries_defconfig with this applied:

  /tmp/ccsjEdNB.s: Assembler messages:
  /tmp/ccsjEdNB.s: Error: .size expression for aes_p8_set_encrypt_key does not evaluate to a constant
  /tmp/ccsjEdNB.s: Error: .size expression for aes_p8_set_decrypt_key does not evaluate to a constant
  /tmp/ccsjEdNB.s: Error: .size expression for aes_p8_encrypt does not evaluate to a constant
  /tmp/ccsjEdNB.s: Error: .size expression for aes_p8_decrypt does not evaluate to a constant
  /tmp/ccsjEdNB.s: Error: .size expression for aes_p8_cbc_encrypt does not evaluate to a constant
  /tmp/ccsjEdNB.s: Error: .size expression for aes_p8_ctr32_encrypt_blocks does not evaluate to a constant

That's with GCC 6.1.0 / binutils 2.26.

Haven't debugged it any further.

cheers
diff mbox

Patch

diff --git a/arch/powerpc/configs/powernv_defconfig b/arch/powerpc/configs/powernv_defconfig
index dce352e..3f6226b 100644
--- a/arch/powerpc/configs/powernv_defconfig
+++ b/arch/powerpc/configs/powernv_defconfig
@@ -310,6 +310,8 @@  CONFIG_CRYPTO_TEA=m
 CONFIG_CRYPTO_TWOFISH=m
 CONFIG_CRYPTO_LZO=m
 CONFIG_CRYPTO_DEV_NX=y
+CONFIG_CRYPTO_DEV_VMX=y
+CONFIG_CRYPTO_DEV_VMX_ENCRYPT=m
 CONFIG_VIRTUALIZATION=y
 CONFIG_KVM_BOOK3S_64=m
 CONFIG_KVM_BOOK3S_64_HV=m
diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig
index 0a8d250..861471d 100644
--- a/arch/powerpc/configs/ppc64_defconfig
+++ b/arch/powerpc/configs/ppc64_defconfig
@@ -347,6 +347,8 @@  CONFIG_CRYPTO_LZO=m
 # CONFIG_CRYPTO_ANSI_CPRNG is not set
 CONFIG_CRYPTO_DEV_NX=y
 CONFIG_CRYPTO_DEV_NX_ENCRYPT=m
+CONFIG_CRYPTO_DEV_VMX=y
+CONFIG_CRYPTO_DEV_VMX_ENCRYPT=m
 CONFIG_VIRTUALIZATION=y
 CONFIG_KVM_BOOK3S_64=m
 CONFIG_KVM_BOOK3S_64_HV=m
diff --git a/arch/powerpc/configs/pseries_defconfig b/arch/powerpc/configs/pseries_defconfig
index 99dec9d..1d7eea2 100644
--- a/arch/powerpc/configs/pseries_defconfig
+++ b/arch/powerpc/configs/pseries_defconfig
@@ -313,6 +313,8 @@  CONFIG_CRYPTO_LZO=m
 # CONFIG_CRYPTO_ANSI_CPRNG is not set
 CONFIG_CRYPTO_DEV_NX=y
 CONFIG_CRYPTO_DEV_NX_ENCRYPT=m
+CONFIG_CRYPTO_DEV_VMX=y
+CONFIG_CRYPTO_DEV_VMX_ENCRYPT=m
 CONFIG_VIRTUALIZATION=y
 CONFIG_KVM_BOOK3S_64=m
 CONFIG_KVM_BOOK3S_64_HV=m