[PATCH] powerpc/configs: Enable VMX crypto

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3672d

2 messages, 2 authors, 2016-07-14 · open the first message on its own page

[PATCH] powerpc/configs: Enable VMX crypto

From: Anton Blanchard <hidden>
Date: 2016-07-11 23:44:10

From: Anton Blanchard <redacted>

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

Signed-off-by: Anton Blanchard <redacted>
---
 arch/powerpc/configs/powernv_defconfig | 2 ++
 arch/powerpc/configs/ppc64_defconfig   | 2 ++
 arch/powerpc/configs/pseries_defconfig | 2 ++
 3 files changed, 6 insertions(+)
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
-- 
2.7.4

Re: [PATCH] powerpc/configs: Enable VMX crypto

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-07-14 10:13:37

Anton Blanchard [off-list ref] writes:
From: Anton Blanchard <redacted>

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help