From: Alastair D'Silva <redacted>
This series allows the vmx_crypto module to be detected and automatically
loaded via UDEV if the CPU supports the vector crypto feature.
Alastair D'Silva (2):
powerpc: Add module autoloading based on CPU features
crypto: vmx - Convert to CPU feature based module autoloading
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/cpufeature.h | 70 +++++++++++++++++++++++++++++++++++
drivers/crypto/vmx/Kconfig | 2 +-
drivers/crypto/vmx/vmx.c | 6 +--
4 files changed, 74 insertions(+), 5 deletions(-)
create mode 100644 arch/powerpc/include/asm/cpufeature.h
--
2.7.4
@@ -1,7 +1,7 @@configCRYPTO_DEV_VMX_ENCRYPTtristate"Encryption acceleration support on P8 CPU"depends onCRYPTO_DEV_VMX-defaulty+defaultmhelpSupportforVMXcryptographicaccelerationinstructionsonPower8CPU.ThismodulesupportsaccelerationforAESandGHASHinhardware.Ifyou
From: Alastair D'Silva <redacted>
This patch provides the necessary infrastructure to allow drivers
to be automatically loaded via UDEV. It implements the minimum
required to be able to use module_cpu_feature_match to trigger
the GENERIC_CPU_AUTOPROBE mechanisms.
The features exposed are a mirror of the cpu_user_features
(converted to an offset from a mask). This decision was made to
ensure that the behavior between features for module loading and
userspace are consistent.
Signed-off-by: Alastair D'Silva <redacted>
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/cpufeature.h | 68 +++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+)
create mode 100644 arch/powerpc/include/asm/cpufeature.h
From: Alastair D'Silva <redacted>
This patch provides the necessary infrastructure to allow drivers
to be automatically loaded via UDEV. It implements the minimum
required to be able to use module_cpu_feature_match to trigger
the GENERIC_CPU_AUTOPROBE mechanisms.
The features exposed are a mirror of the cpu_user_features
(converted to an offset from a mask). This decision was made to
ensure that the behavior between features for module loading and
userspace are consistent.
Signed-off-by: Alastair D'Silva <redacted>
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/cpufeature.h | 70 +++++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
create mode 100644 arch/powerpc/include/asm/cpufeature.h
@@ -1,7 +1,7 @@configCRYPTO_DEV_VMX_ENCRYPTtristate"Encryption acceleration support on P8 CPU"depends onCRYPTO_DEV_VMX-defaulty+defaultmhelpSupportforVMXcryptographicaccelerationinstructionsonPower8CPU.ThismodulesupportsaccelerationforAESandGHASHinhardware.Ifyou
Please ignore the following:
[PATCH 1/2] Allow drivers to be autoloaded.
[PATCH 2/2] Automatically load the vmx_crypto module if supported.
-- Alastair D'Silva
Open Source Developer
Linux Technology Centre, IBM Australia
mob: 0423 762 819
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2016-07-18 10:23:40
On Wed, Jul 13, 2016 at 03:47:16PM +1000, alastair@au1.ibm.com wrote:
From: Alastair D'Silva <redacted>
This series allows the vmx_crypto module to be detected and automatically
loaded via UDEV if the CPU supports the vector crypto feature.
Alastair D'Silva (2):
powerpc: Add module autoloading based on CPU features
crypto: vmx - Convert to CPU feature based module autoloading
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2016-07-19 01:01:56
Herbert Xu [off-list ref] writes:
On Wed, Jul 13, 2016 at 03:47:16PM +1000, alastair@au1.ibm.com wrote:
quoted
From: Alastair D'Silva <redacted>
This series allows the vmx_crypto module to be detected and automatically
loaded via UDEV if the CPU supports the vector crypto feature.
Alastair D'Silva (2):
powerpc: Add module autoloading based on CPU features
crypto: vmx - Convert to CPU feature based module autoloading
Both patches applied. Thanks.
Hi Herbert,
Can you please ask for an ack before merging arch patches?
That's a 70 line powerpc patch and a 6 line crypto patch. It has no
reviews and no acks. I would have preferred it if we could take it via
the powerpc tree.
cheers
@@ -0,0 +1,70 @@+/* CPU feature definitions for module loading, used by+*module_cpu_feature_match(),seeasm/cputable.hforpowerpcCPUfeatures+*+*Copyright2016AlastairD'Silva,IBMCorporation.+*+*Thisprogramisfreesoftware;youcanredistributeitand/or+*modifyitunderthetermsoftheGNUGeneralPublicLicense+*aspublishedbytheFreeSoftwareFoundation;eitherversion+*2oftheLicense,or(atyouroption)anylaterversion.+*/++#ifndef __ASM_CPUFEATURE_H+#define __ASM_POWERPC_CPUFEATURE_H
Those should match. The latter is preferred.
cheers
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2016-07-19 04:00:30
On Tue, Jul 19, 2016 at 11:01:55AM +1000, Michael Ellerman wrote:
Can you please ask for an ack before merging arch patches?
That's a 70 line powerpc patch and a 6 line crypto patch. It has no
reviews and no acks. I would have preferred it if we could take it via
the powerpc tree.
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2016-07-19 09:13:28
Herbert Xu [off-list ref] writes:
On Tue, Jul 19, 2016 at 11:01:55AM +1000, Michael Ellerman wrote:
quoted
Can you please ask for an ack before merging arch patches?
That's a 70 line powerpc patch and a 6 line crypto patch. It has no
reviews and no acks. I would have preferred it if we could take it via
the powerpc tree.
Sorry, I'll delete them from the crypto tree.
Thanks.
I'll assume patch 2 has your ack :)
cheers