All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Automatically load the vmx_crypto module if supported
@ 2016-07-13  5:47 alastair
  2016-07-13  5:47 ` [PATCH 1/2] Allow drivers to be autoloaded alastair
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: alastair @ 2016-07-13  5:47 UTC (permalink / raw)
  To: mpe
  Cc: benh, paulus, herbert, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

From: Alastair D'Silva <alastair@d-silva.org>

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [PATCH 1/2] Allow drivers to be autoloaded.
  2016-07-13  5:47 [PATCH 0/2] Automatically load the vmx_crypto module if supported alastair
@ 2016-07-13  5:47 ` alastair
  2016-07-13  5:47 ` [PATCH 1/2] powerpc: Add module autoloading based on CPU features alastair
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 19+ messages in thread
From: alastair @ 2016-07-13  5:47 UTC (permalink / raw)
  To: mpe
  Cc: benh, paulus, herbert, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

From: Alastair D'Silva <alastair@d-silva.org>

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 <alastair@d-silva.org>
---
 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

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 0a9d439..a6e49db 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -164,6 +164,7 @@ config PPC
 	select ARCH_HAS_UBSAN_SANITIZE_ALL
 	select ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
 	select HAVE_LIVEPATCH if HAVE_DYNAMIC_FTRACE_WITH_REGS
+	select GENERIC_CPU_AUTOPROBE
 
 config GENERIC_CSUM
 	def_bool CPU_LITTLE_ENDIAN
diff --git a/arch/powerpc/include/asm/cpufeature.h b/arch/powerpc/include/asm/cpufeature.h
new file mode 100644
index 0000000..6d52527
--- /dev/null
+++ b/arch/powerpc/include/asm/cpufeature.h
@@ -0,0 +1,68 @@
+/*
+ * Copyright 2016 Alastair D'Silva, IBM Corporation.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#ifndef __ASM_CPUFEATURE_H
+#define __ASM_CPUFEATURE_H
+
+#include <asm/cputable.h>
+
+/* Keep these in step with powerpc/include/asm/cputable.h */
+#define MAX_CPU_FEATURES (2 * 32)
+
+#define PPC_MODULE_FEATURE_32				(ilog2(PPC_FEATURE_32))
+#define PPC_MODULE_FEATURE_64				(ilog2(PPC_FEATURE_64))
+#define PPC_MODULE_FEATURE_601_INSTR			(ilog2(PPC_FEATURE_601_INSTR))
+#define PPC_MODULE_FEATURE_HAS_ALTIVEC			(ilog2(PPC_FEATURE_HAS_ALTIVEC))
+#define PPC_MODULE_FEATURE_HAS_FPU			(ilog2(PPC_FEATURE_HAS_FPU))
+#define PPC_MODULE_FEATURE_HAS_MMU			(ilog2(PPC_FEATURE_HAS_MMU))
+#define PPC_MODULE_FEATURE_HAS_4xxMAC			(ilog2(PPC_FEATURE_HAS_4xxMAC))
+#define PPC_MODULE_FEATURE_UNIFIED_CACHE		ilog2(PPC_FEATURE_UNIFIED_CACHE))
+#define PPC_MODULE_FEATURE_HAS_SPE			(ilog2(PPC_FEATURE_HAS_SPE))
+#define PPC_MODULE_FEATURE_HAS_EFP_SINGLE		(ilog2(PPC_FEATURE_HAS_EFP_SINGLE))
+#define PPC_MODULE_FEATURE_HAS_EFP_DOUBLE		(ilog2(PPC_FEATURE_HAS_EFP_DOUBLE))
+#define PPC_MODULE_FEATURE_NO_TB			(ilog2(PPC_FEATURE_NO_TB))
+#define PPC_MODULE_FEATURE_POWER4			(ilog2(PPC_FEATURE_POWER4))
+#define PPC_MODULE_FEATURE_POWER5			(ilog2(PPC_FEATURE_POWER5))
+#define PPC_MODULE_FEATURE_POWER5_PLUS			(ilog2(PPC_FEATURE_POWER5_PLUS))
+#define PPC_MODULE_FEATURE_CELL				(ilog2(PPC_FEATURE_CELL))
+#define PPC_MODULE_FEATURE_BOOKE			(ilog2(PPC_FEATURE_BOOKE))
+#define PPC_MODULE_FEATURE_SMT				(ilog2(PPC_FEATURE_SMT))
+#define PPC_MODULE_FEATURE_ICACHE_SNOOP			(ilog2(PPC_FEATURE_ICACHE_SNOOP))
+#define PPC_MODULE_FEATURE_ARCH_2_05			(ilog2(PPC_FEATURE_ARCH_2_05))
+#define PPC_MODULE_FEATURE_PA6T				(ilog2(PPC_FEATURE_PA6T))
+#define PPC_MODULE_FEATURE_HAS_DFP			(ilog2(PPC_FEATURE_HAS_DFP))
+#define PPC_MODULE_FEATURE_POWER6_EXT			(ilog2(PPC_FEATURE_POWER6_EXT))
+#define PPC_MODULE_FEATURE_ARCH_2_06			(ilog2(PPC_FEATURE_ARCH_2_06))
+#define PPC_MODULE_FEATURE_HAS_VSX			(ilog2(PPC_FEATURE_HAS_VSX))
+#define PPC_MODULE_FEATURE_PSERIES_PERFMON_COMPAT	(ilog2(PPC_FEATURE_PSERIES_PERFMON_COMPAT))
+#define PPC_MODULE_FEATURE_TRUE_LE			(ilog2(PPC_FEATURE_TRUE_LE))
+#define PPC_MODULE_FEATURE_PPC_LE			(ilog2(PPC_FEATURE_PPC_LE))
+
+#define PPC_MODULE_FEATURE_ARCH_2_07			(32 + ilog2(PPC_FEATURE2_ARCH_2_07))
+#define PPC_MODULE_FEATURE_HTM				(32 + ilog2(PPC_FEATURE2_HTM))
+#define PPC_MODULE_FEATURE_DSCR				(32 + ilog2(PPC_FEATURE2_DSCR))
+#define PPC_MODULE_FEATURE_EBB				(32 + ilog2(PPC_FEATURE2_EBB))
+#define PPC_MODULE_FEATURE_ISEL				(32 + ilog2(PPC_FEATURE2_ISEL))
+#define PPC_MODULE_FEATURE_TAR				(32 + ilog2(PPC_FEATURE2_TAR))
+#define PPC_MODULE_FEATURE_VEC_CRYPTO			(32 + ilog2(PPC_FEATURE2_VEC_CRYPTO))
+#define PPC_MODULE_FEATURE_HTM_NOSC			(32 + ilog2(PPC_FEATURE2_HTM_NOSC))
+#define PPC_MODULE_FEATURE_ARCH_3_00			(32 + ilog2(PPC_FEATURE2_ARCH_3_00))
+#define PPC_MODULE_FEATURE_HAS_IEEE128			(32 + ilog2(PPC_FEATURE2_HAS_IEEE128))
+
+#define cpu_feature(x)		(x)
+
+static inline bool cpu_have_feature(unsigned int num)
+{
+	if (num < 32)
+		return !!(cur_cpu_spec->cpu_user_features & 1UL << num);
+	else
+		return !!(cur_cpu_spec->cpu_user_features2 & 1UL << (num - 32));
+}
+
+#endif
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 1/2] powerpc: Add module autoloading based on CPU features
  2016-07-13  5:47 [PATCH 0/2] Automatically load the vmx_crypto module if supported alastair
  2016-07-13  5:47 ` [PATCH 1/2] Allow drivers to be autoloaded alastair
@ 2016-07-13  5:47 ` alastair
  2016-07-19  1:04   ` Michael Ellerman
                     ` (2 more replies)
  2016-07-13  5:47 ` [PATCH 2/2] Automatically load the vmx_crypto module if supported alastair
                   ` (3 subsequent siblings)
  5 siblings, 3 replies; 19+ messages in thread
From: alastair @ 2016-07-13  5:47 UTC (permalink / raw)
  To: mpe
  Cc: benh, paulus, herbert, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

From: Alastair D'Silva <alastair@d-silva.org>

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 <alastair@d-silva.org>
---
 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

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 0a9d439..a6e49db 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -164,6 +164,7 @@ config PPC
 	select ARCH_HAS_UBSAN_SANITIZE_ALL
 	select ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
 	select HAVE_LIVEPATCH if HAVE_DYNAMIC_FTRACE_WITH_REGS
+	select GENERIC_CPU_AUTOPROBE
 
 config GENERIC_CSUM
 	def_bool CPU_LITTLE_ENDIAN
diff --git a/arch/powerpc/include/asm/cpufeature.h b/arch/powerpc/include/asm/cpufeature.h
new file mode 100644
index 0000000..df31627
--- /dev/null
+++ b/arch/powerpc/include/asm/cpufeature.h
@@ -0,0 +1,70 @@
+/* CPU feature definitions for module loading, used by
+ * module_cpu_feature_match(), see asm/cputable.h for powerpc CPU features
+ *
+ * Copyright 2016 Alastair D'Silva, IBM Corporation.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#ifndef __ASM_CPUFEATURE_H
+#define __ASM_POWERPC_CPUFEATURE_H
+
+#include <asm/cputable.h>
+
+/* Keep these in step with powerpc/include/asm/cputable.h */
+#define MAX_CPU_FEATURES (2 * 32)
+
+#define PPC_MODULE_FEATURE_32				(ilog2(PPC_FEATURE_32))
+#define PPC_MODULE_FEATURE_64				(ilog2(PPC_FEATURE_64))
+#define PPC_MODULE_FEATURE_601_INSTR			(ilog2(PPC_FEATURE_601_INSTR))
+#define PPC_MODULE_FEATURE_HAS_ALTIVEC			(ilog2(PPC_FEATURE_HAS_ALTIVEC))
+#define PPC_MODULE_FEATURE_HAS_FPU			(ilog2(PPC_FEATURE_HAS_FPU))
+#define PPC_MODULE_FEATURE_HAS_MMU			(ilog2(PPC_FEATURE_HAS_MMU))
+#define PPC_MODULE_FEATURE_HAS_4xxMAC			(ilog2(PPC_FEATURE_HAS_4xxMAC))
+#define PPC_MODULE_FEATURE_UNIFIED_CACHE		ilog2(PPC_FEATURE_UNIFIED_CACHE))
+#define PPC_MODULE_FEATURE_HAS_SPE			(ilog2(PPC_FEATURE_HAS_SPE))
+#define PPC_MODULE_FEATURE_HAS_EFP_SINGLE		(ilog2(PPC_FEATURE_HAS_EFP_SINGLE))
+#define PPC_MODULE_FEATURE_HAS_EFP_DOUBLE		(ilog2(PPC_FEATURE_HAS_EFP_DOUBLE))
+#define PPC_MODULE_FEATURE_NO_TB			(ilog2(PPC_FEATURE_NO_TB))
+#define PPC_MODULE_FEATURE_POWER4			(ilog2(PPC_FEATURE_POWER4))
+#define PPC_MODULE_FEATURE_POWER5			(ilog2(PPC_FEATURE_POWER5))
+#define PPC_MODULE_FEATURE_POWER5_PLUS			(ilog2(PPC_FEATURE_POWER5_PLUS))
+#define PPC_MODULE_FEATURE_CELL				(ilog2(PPC_FEATURE_CELL))
+#define PPC_MODULE_FEATURE_BOOKE			(ilog2(PPC_FEATURE_BOOKE))
+#define PPC_MODULE_FEATURE_SMT				(ilog2(PPC_FEATURE_SMT))
+#define PPC_MODULE_FEATURE_ICACHE_SNOOP			(ilog2(PPC_FEATURE_ICACHE_SNOOP))
+#define PPC_MODULE_FEATURE_ARCH_2_05			(ilog2(PPC_FEATURE_ARCH_2_05))
+#define PPC_MODULE_FEATURE_PA6T				(ilog2(PPC_FEATURE_PA6T))
+#define PPC_MODULE_FEATURE_HAS_DFP			(ilog2(PPC_FEATURE_HAS_DFP))
+#define PPC_MODULE_FEATURE_POWER6_EXT			(ilog2(PPC_FEATURE_POWER6_EXT))
+#define PPC_MODULE_FEATURE_ARCH_2_06			(ilog2(PPC_FEATURE_ARCH_2_06))
+#define PPC_MODULE_FEATURE_HAS_VSX			(ilog2(PPC_FEATURE_HAS_VSX))
+#define PPC_MODULE_FEATURE_PSERIES_PERFMON_COMPAT	(ilog2(PPC_FEATURE_PSERIES_PERFMON_COMPAT))
+#define PPC_MODULE_FEATURE_TRUE_LE			(ilog2(PPC_FEATURE_TRUE_LE))
+#define PPC_MODULE_FEATURE_PPC_LE			(ilog2(PPC_FEATURE_PPC_LE))
+
+#define PPC_MODULE_FEATURE_ARCH_2_07			(32 + ilog2(PPC_FEATURE2_ARCH_2_07))
+#define PPC_MODULE_FEATURE_HTM				(32 + ilog2(PPC_FEATURE2_HTM))
+#define PPC_MODULE_FEATURE_DSCR				(32 + ilog2(PPC_FEATURE2_DSCR))
+#define PPC_MODULE_FEATURE_EBB				(32 + ilog2(PPC_FEATURE2_EBB))
+#define PPC_MODULE_FEATURE_ISEL				(32 + ilog2(PPC_FEATURE2_ISEL))
+#define PPC_MODULE_FEATURE_TAR				(32 + ilog2(PPC_FEATURE2_TAR))
+#define PPC_MODULE_FEATURE_VEC_CRYPTO			(32 + ilog2(PPC_FEATURE2_VEC_CRYPTO))
+#define PPC_MODULE_FEATURE_HTM_NOSC			(32 + ilog2(PPC_FEATURE2_HTM_NOSC))
+#define PPC_MODULE_FEATURE_ARCH_3_00			(32 + ilog2(PPC_FEATURE2_ARCH_3_00))
+#define PPC_MODULE_FEATURE_HAS_IEEE128			(32 + ilog2(PPC_FEATURE2_HAS_IEEE128))
+
+#define cpu_feature(x)		(x)
+
+static inline bool cpu_have_feature(unsigned int num)
+{
+	if (num < 32)
+		return !!(cur_cpu_spec->cpu_user_features & 1UL << num);
+	else
+		return !!(cur_cpu_spec->cpu_user_features2 & 1UL << (num - 32));
+}
+
+#endif /* __ASM_POWERPC_CPUFEATURE_H */
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 2/2] Automatically load the vmx_crypto module if supported.
  2016-07-13  5:47 [PATCH 0/2] Automatically load the vmx_crypto module if supported alastair
  2016-07-13  5:47 ` [PATCH 1/2] Allow drivers to be autoloaded alastair
  2016-07-13  5:47 ` [PATCH 1/2] powerpc: Add module autoloading based on CPU features alastair
@ 2016-07-13  5:47 ` alastair
  2016-07-13  5:47 ` [PATCH 2/2] crypto: vmx - Convert to CPU feature based module autoloading alastair
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 19+ messages in thread
From: alastair @ 2016-07-13  5:47 UTC (permalink / raw)
  To: mpe
  Cc: benh, paulus, herbert, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

From: Alastair D'Silva <alastair@d-silva.org>

This patch utilises the GENERIC_CPU_AUTOPROBE infrastructure
to automatically load the vmx_crypto module if the CPU supports
it.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
---
 drivers/crypto/vmx/Kconfig | 2 +-
 drivers/crypto/vmx/vmx.c   | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/crypto/vmx/Kconfig b/drivers/crypto/vmx/Kconfig
index 89d8208..a83ead1 100644
--- a/drivers/crypto/vmx/Kconfig
+++ b/drivers/crypto/vmx/Kconfig
@@ -1,7 +1,7 @@
 config CRYPTO_DEV_VMX_ENCRYPT
 	tristate "Encryption acceleration support on P8 CPU"
 	depends on CRYPTO_DEV_VMX
-	default y
+	default m
 	help
 	  Support for VMX cryptographic acceleration instructions on Power8 CPU.
 	  This module supports acceleration for AES and GHASH in hardware. If you
diff --git a/drivers/crypto/vmx/vmx.c b/drivers/crypto/vmx/vmx.c
index e163d57..5a40f2f 100644
--- a/drivers/crypto/vmx/vmx.c
+++ b/drivers/crypto/vmx/vmx.c
@@ -23,6 +23,7 @@
 #include <linux/moduleparam.h>
 #include <linux/types.h>
 #include <linux/err.h>
+#include <linux/cpufeature.h>
 #include <linux/crypto.h>
 #include <asm/cputable.h>
 #include <crypto/internal/hash.h>
@@ -43,9 +44,6 @@ int __init p8_init(void)
 	int ret = 0;
 	struct crypto_alg **alg_it;
 
-	if (!(cur_cpu_spec->cpu_user_features2 & PPC_FEATURE2_VEC_CRYPTO))
-		return -ENODEV;
-
 	for (alg_it = algs; *alg_it; alg_it++) {
 		ret = crypto_register_alg(*alg_it);
 		printk(KERN_INFO "crypto_register_alg '%s' = %d\n",
@@ -78,7 +76,7 @@ void __exit p8_exit(void)
 	crypto_unregister_shash(&p8_ghash_alg);
 }
 
-module_init(p8_init);
+module_cpu_feature_match(PPC_MODULE_FEATURE_VEC_CRYPTO, p8_init);
 module_exit(p8_exit);
 
 MODULE_AUTHOR("Marcelo Cerri<mhcerri@br.ibm.com>");
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 2/2] crypto: vmx - Convert to CPU feature based module autoloading
  2016-07-13  5:47 [PATCH 0/2] Automatically load the vmx_crypto module if supported alastair
                   ` (2 preceding siblings ...)
  2016-07-13  5:47 ` [PATCH 2/2] Automatically load the vmx_crypto module if supported alastair
@ 2016-07-13  5:47 ` alastair
  2016-07-13  5:54 ` [PATCH 0/2] Automatically load the vmx_crypto module if supported Alastair D'Silva
  2016-07-18 10:22 ` Herbert Xu
  5 siblings, 0 replies; 19+ messages in thread
From: alastair @ 2016-07-13  5:47 UTC (permalink / raw)
  To: mpe
  Cc: benh, paulus, herbert, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

From: Alastair D'Silva <alastair@d-silva.org>

This patch utilises the GENERIC_CPU_AUTOPROBE infrastructure
to automatically load the vmx_crypto module if the CPU supports
it.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
---
 drivers/crypto/vmx/Kconfig | 2 +-
 drivers/crypto/vmx/vmx.c   | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/crypto/vmx/Kconfig b/drivers/crypto/vmx/Kconfig
index 89d8208..a83ead1 100644
--- a/drivers/crypto/vmx/Kconfig
+++ b/drivers/crypto/vmx/Kconfig
@@ -1,7 +1,7 @@
 config CRYPTO_DEV_VMX_ENCRYPT
 	tristate "Encryption acceleration support on P8 CPU"
 	depends on CRYPTO_DEV_VMX
-	default y
+	default m
 	help
 	  Support for VMX cryptographic acceleration instructions on Power8 CPU.
 	  This module supports acceleration for AES and GHASH in hardware. If you
diff --git a/drivers/crypto/vmx/vmx.c b/drivers/crypto/vmx/vmx.c
index e163d57..5a40f2f 100644
--- a/drivers/crypto/vmx/vmx.c
+++ b/drivers/crypto/vmx/vmx.c
@@ -23,6 +23,7 @@
 #include <linux/moduleparam.h>
 #include <linux/types.h>
 #include <linux/err.h>
+#include <linux/cpufeature.h>
 #include <linux/crypto.h>
 #include <asm/cputable.h>
 #include <crypto/internal/hash.h>
@@ -43,9 +44,6 @@ int __init p8_init(void)
 	int ret = 0;
 	struct crypto_alg **alg_it;
 
-	if (!(cur_cpu_spec->cpu_user_features2 & PPC_FEATURE2_VEC_CRYPTO))
-		return -ENODEV;
-
 	for (alg_it = algs; *alg_it; alg_it++) {
 		ret = crypto_register_alg(*alg_it);
 		printk(KERN_INFO "crypto_register_alg '%s' = %d\n",
@@ -78,7 +76,7 @@ void __exit p8_exit(void)
 	crypto_unregister_shash(&p8_ghash_alg);
 }
 
-module_init(p8_init);
+module_cpu_feature_match(PPC_MODULE_FEATURE_VEC_CRYPTO, p8_init);
 module_exit(p8_exit);
 
 MODULE_AUTHOR("Marcelo Cerri<mhcerri@br.ibm.com>");
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-13  5:47 [PATCH 0/2] Automatically load the vmx_crypto module if supported alastair
                   ` (3 preceding siblings ...)
  2016-07-13  5:47 ` [PATCH 2/2] crypto: vmx - Convert to CPU feature based module autoloading alastair
@ 2016-07-13  5:54 ` Alastair D'Silva
  2016-07-14  3:34   ` Balbir Singh
  2016-07-18 10:22 ` Herbert Xu
  5 siblings, 1 reply; 19+ messages in thread
From: Alastair D'Silva @ 2016-07-13  5:54 UTC (permalink / raw)
  To: mpe
  Cc: benh, paulus, herbert, davem, linuxppc-dev, linux-crypto, linux-kernel

On Wed, 2016-07-13 at 15:47 +1000, alastair@au1.ibm.com wrote:
> From: Alastair D'Silva <alastair@d-silva.org>
> > 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

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-13  5:54 ` [PATCH 0/2] Automatically load the vmx_crypto module if supported Alastair D'Silva
@ 2016-07-14  3:34   ` Balbir Singh
  0 siblings, 0 replies; 19+ messages in thread
From: Balbir Singh @ 2016-07-14  3:34 UTC (permalink / raw)
  To: Alastair D'Silva
  Cc: mpe, benh, paulus, herbert, davem, linuxppc-dev, linux-crypto,
	linux-kernel

On Wed, Jul 13, 2016 at 03:54:59PM +1000, Alastair D'Silva wrote:
> On Wed, 2016-07-13 at 15:47 +1000, alastair@au1.ibm.com wrote:
> > From: Alastair D'Silva <alastair@d-silva.org>
> > > 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
> 
> Please ignore the following:
>   [PATCH 1/2] Allow drivers to be autoloaded.
>   [PATCH 2/2] Automatically load the vmx_crypto module if supported.
>

Do you want to repost the series?

Balbir 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-13  5:47 [PATCH 0/2] Automatically load the vmx_crypto module if supported alastair
                   ` (4 preceding siblings ...)
  2016-07-13  5:54 ` [PATCH 0/2] Automatically load the vmx_crypto module if supported Alastair D'Silva
@ 2016-07-18 10:22 ` Herbert Xu
  2016-07-19  1:01   ` Michael Ellerman
                     ` (2 more replies)
  5 siblings, 3 replies; 19+ messages in thread
From: Herbert Xu @ 2016-07-18 10:22 UTC (permalink / raw)
  To: alastair
  Cc: mpe, benh, paulus, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

On Wed, Jul 13, 2016 at 03:47:16PM +1000, alastair@au1.ibm.com wrote:
> From: Alastair D'Silva <alastair@d-silva.org>
> 
> 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.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-18 10:22 ` Herbert Xu
  2016-07-19  1:01   ` Michael Ellerman
  2016-07-19  1:01   ` Michael Ellerman
@ 2016-07-19  1:01   ` Michael Ellerman
  2 siblings, 0 replies; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  1:01 UTC (permalink / raw)
  To: Herbert Xu, alastair
  Cc: linux-kernel, paulus, linux-crypto, Alastair D'Silva,
	linuxppc-dev, davem

Herbert Xu <herbert@gondor.apana.org.au> writes:

> On Wed, Jul 13, 2016 at 03:47:16PM +1000, alastair@au1.ibm.com wrote:
>> From: Alastair D'Silva <alastair@d-silva.org>
>> 
>> 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
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-18 10:22 ` Herbert Xu
  2016-07-19  1:01   ` Michael Ellerman
@ 2016-07-19  1:01   ` Michael Ellerman
  2016-07-19  1:01   ` Michael Ellerman
  2 siblings, 0 replies; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  1:01 UTC (permalink / raw)
  To: Herbert Xu, alastair
  Cc: linux-kernel, paulus, linux-crypto, Alastair D'Silva,
	linuxppc-dev, davem

Herbert Xu <herbert@gondor.apana.org.au> writes:

> On Wed, Jul 13, 2016 at 03:47:16PM +1000, alastair@au1.ibm.com wrote:
>> From: Alastair D'Silva <alastair@d-silva.org>
>> 
>> 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
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-18 10:22 ` Herbert Xu
@ 2016-07-19  1:01   ` Michael Ellerman
  2016-07-19  3:59     ` Herbert Xu
  2016-07-19  1:01   ` Michael Ellerman
  2016-07-19  1:01   ` Michael Ellerman
  2 siblings, 1 reply; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  1:01 UTC (permalink / raw)
  To: Herbert Xu, alastair
  Cc: benh, paulus, davem, linuxppc-dev, linux-crypto, linux-kernel,
	Alastair D'Silva

Herbert Xu <herbert@gondor.apana.org.au> writes:

> On Wed, Jul 13, 2016 at 03:47:16PM +1000, alastair@au1.ibm.com wrote:
>> From: Alastair D'Silva <alastair@d-silva.org>
>> 
>> 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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 1/2] powerpc: Add module autoloading based on CPU features
  2016-07-13  5:47 ` [PATCH 1/2] powerpc: Add module autoloading based on CPU features alastair
  2016-07-19  1:04   ` Michael Ellerman
  2016-07-19  1:04   ` Michael Ellerman
@ 2016-07-19  1:04   ` Michael Ellerman
  2 siblings, 0 replies; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  1:04 UTC (permalink / raw)
  To: alastair
  Cc: herbert, linux-kernel, paulus, linux-crypto,
	Alastair D'Silva, linuxppc-dev, davem

alastair@au1.ibm.com writes:

> diff --git a/arch/powerpc/include/asm/cpufeature.h b/arch/powerpc/include/asm/cpufeature.h
> new file mode 100644
> index 0000000..df31627
> --- /dev/null
> +++ b/arch/powerpc/include/asm/cpufeature.h
> @@ -0,0 +1,70 @@
> +/* CPU feature definitions for module loading, used by
> + * module_cpu_feature_match(), see asm/cputable.h for powerpc CPU features
> + *
> + * Copyright 2016 Alastair D'Silva, IBM Corporation.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License
> + * as published by the Free Software Foundation; either version
> + * 2 of the License, or (at your option) any later version.
> + */
> +
> +#ifndef __ASM_CPUFEATURE_H
> +#define __ASM_POWERPC_CPUFEATURE_H

Those should match. The latter is preferred.

cheers
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 1/2] powerpc: Add module autoloading based on CPU features
  2016-07-13  5:47 ` [PATCH 1/2] powerpc: Add module autoloading based on CPU features alastair
  2016-07-19  1:04   ` Michael Ellerman
@ 2016-07-19  1:04   ` Michael Ellerman
  2016-07-19  1:04   ` Michael Ellerman
  2 siblings, 0 replies; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  1:04 UTC (permalink / raw)
  To: alastair
  Cc: herbert, linux-kernel, paulus, linux-crypto,
	Alastair D'Silva, linuxppc-dev, davem

alastair@au1.ibm.com writes:

> diff --git a/arch/powerpc/include/asm/cpufeature.h b/arch/powerpc/include/asm/cpufeature.h
> new file mode 100644
> index 0000000..df31627
> --- /dev/null
> +++ b/arch/powerpc/include/asm/cpufeature.h
> @@ -0,0 +1,70 @@
> +/* CPU feature definitions for module loading, used by
> + * module_cpu_feature_match(), see asm/cputable.h for powerpc CPU features
> + *
> + * Copyright 2016 Alastair D'Silva, IBM Corporation.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License
> + * as published by the Free Software Foundation; either version
> + * 2 of the License, or (at your option) any later version.
> + */
> +
> +#ifndef __ASM_CPUFEATURE_H
> +#define __ASM_POWERPC_CPUFEATURE_H

Those should match. The latter is preferred.

cheers
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 1/2] powerpc: Add module autoloading based on CPU features
  2016-07-13  5:47 ` [PATCH 1/2] powerpc: Add module autoloading based on CPU features alastair
@ 2016-07-19  1:04   ` Michael Ellerman
  2016-07-19  1:04   ` Michael Ellerman
  2016-07-19  1:04   ` Michael Ellerman
  2 siblings, 0 replies; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  1:04 UTC (permalink / raw)
  To: alastair
  Cc: benh, paulus, herbert, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

alastair@au1.ibm.com writes:

> diff --git a/arch/powerpc/include/asm/cpufeature.h b/arch/powerpc/include/asm/cpufeature.h
> new file mode 100644
> index 0000000..df31627
> --- /dev/null
> +++ b/arch/powerpc/include/asm/cpufeature.h
> @@ -0,0 +1,70 @@
> +/* CPU feature definitions for module loading, used by
> + * module_cpu_feature_match(), see asm/cputable.h for powerpc CPU features
> + *
> + * Copyright 2016 Alastair D'Silva, IBM Corporation.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License
> + * as published by the Free Software Foundation; either version
> + * 2 of the License, or (at your option) any later version.
> + */
> +
> +#ifndef __ASM_CPUFEATURE_H
> +#define __ASM_POWERPC_CPUFEATURE_H

Those should match. The latter is preferred.

cheers

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-19  1:01   ` Michael Ellerman
@ 2016-07-19  3:59     ` Herbert Xu
  2016-07-19  9:13       ` Michael Ellerman
                         ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Herbert Xu @ 2016-07-19  3:59 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: alastair, benh, paulus, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

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.

Sorry, I'll delete them from the crypto tree.

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-19  3:59     ` Herbert Xu
@ 2016-07-19  9:13       ` Michael Ellerman
  2016-07-19  9:13       ` Michael Ellerman
  2016-07-19  9:13       ` Michael Ellerman
  2 siblings, 0 replies; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  9:13 UTC (permalink / raw)
  To: Herbert Xu
  Cc: alastair, linux-kernel, paulus, linux-crypto,
	Alastair D'Silva, linuxppc-dev, davem

Herbert Xu <herbert@gondor.apana.org.au> writes:

> 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.
>
> Sorry, I'll delete them from the crypto tree.

Thanks.

I'll assume patch 2 has your ack :)

cheers
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-19  3:59     ` Herbert Xu
  2016-07-19  9:13       ` Michael Ellerman
  2016-07-19  9:13       ` Michael Ellerman
@ 2016-07-19  9:13       ` Michael Ellerman
  2 siblings, 0 replies; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  9:13 UTC (permalink / raw)
  To: Herbert Xu
  Cc: alastair, linux-kernel, paulus, linux-crypto,
	Alastair D'Silva, linuxppc-dev, davem

Herbert Xu <herbert@gondor.apana.org.au> writes:

> 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.
>
> Sorry, I'll delete them from the crypto tree.

Thanks.

I'll assume patch 2 has your ack :)

cheers
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-19  3:59     ` Herbert Xu
  2016-07-19  9:13       ` Michael Ellerman
@ 2016-07-19  9:13       ` Michael Ellerman
  2016-07-19  9:52         ` Herbert Xu
  2016-07-19  9:13       ` Michael Ellerman
  2 siblings, 1 reply; 19+ messages in thread
From: Michael Ellerman @ 2016-07-19  9:13 UTC (permalink / raw)
  To: Herbert Xu
  Cc: alastair, benh, paulus, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

Herbert Xu <herbert@gondor.apana.org.au> writes:

> 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.
>
> Sorry, I'll delete them from the crypto tree.

Thanks.

I'll assume patch 2 has your ack :)

cheers

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported
  2016-07-19  9:13       ` Michael Ellerman
@ 2016-07-19  9:52         ` Herbert Xu
  0 siblings, 0 replies; 19+ messages in thread
From: Herbert Xu @ 2016-07-19  9:52 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: alastair, benh, paulus, davem, linuxppc-dev, linux-crypto,
	linux-kernel, Alastair D'Silva

On Tue, Jul 19, 2016 at 07:13:24PM +1000, Michael Ellerman wrote:
>
> I'll assume patch 2 has your ack :)

Sure,

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-07-19  9:53 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-13  5:47 [PATCH 0/2] Automatically load the vmx_crypto module if supported alastair
2016-07-13  5:47 ` [PATCH 1/2] Allow drivers to be autoloaded alastair
2016-07-13  5:47 ` [PATCH 1/2] powerpc: Add module autoloading based on CPU features alastair
2016-07-19  1:04   ` Michael Ellerman
2016-07-19  1:04   ` Michael Ellerman
2016-07-19  1:04   ` Michael Ellerman
2016-07-13  5:47 ` [PATCH 2/2] Automatically load the vmx_crypto module if supported alastair
2016-07-13  5:47 ` [PATCH 2/2] crypto: vmx - Convert to CPU feature based module autoloading alastair
2016-07-13  5:54 ` [PATCH 0/2] Automatically load the vmx_crypto module if supported Alastair D'Silva
2016-07-14  3:34   ` Balbir Singh
2016-07-18 10:22 ` Herbert Xu
2016-07-19  1:01   ` Michael Ellerman
2016-07-19  3:59     ` Herbert Xu
2016-07-19  9:13       ` Michael Ellerman
2016-07-19  9:13       ` Michael Ellerman
2016-07-19  9:52         ` Herbert Xu
2016-07-19  9:13       ` Michael Ellerman
2016-07-19  1:01   ` Michael Ellerman
2016-07-19  1:01   ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.