Re: [PATCH 14/17] powerpc: crypto: nx driver code supporting nx encryption

2012-03-21 Thread Benjamin Herrenschmidt
On Wed, 2012-03-21 at 20:39 -0700, Greg KH wrote: > On Thu, Mar 22, 2012 at 01:57:30PM +1100, Benjamin Herrenschmidt wrote: > > +int __vio_register_driver(struct vio_driver *viodrv, struct module *owner, > > + const char *mod_name) > > { > > viodrv->driver.bus = &vio_bus_type

Re: [PATCH 14/17] powerpc: crypto: nx driver code supporting nx encryption

2012-03-21 Thread Greg KH
On Thu, Mar 22, 2012 at 01:57:30PM +1100, Benjamin Herrenschmidt wrote: > +int __vio_register_driver(struct vio_driver *viodrv, struct module *owner, > + const char *mod_name) > { > viodrv->driver.bus = &vio_bus_type; > + viodrv->driver.name = viodrv->name; > + vi

Re: [PATCH 14/17] powerpc: crypto: nx driver code supporting nx encryption

2012-03-21 Thread Benjamin Herrenschmidt
On Thu, 2012-03-22 at 12:50 +1100, Benjamin Herrenschmidt wrote: > On Wed, 2012-03-21 at 15:15 -0700, Greg KH wrote: > > > > Really? vio drivers are supposed to look like this with the .name and > > .owner field manually being set in the static initialization of the > > driver? That's sad, and s

Re: [PATCH 14/17] powerpc: crypto: nx driver code supporting nx encryption

2012-03-21 Thread Benjamin Herrenschmidt
On Wed, 2012-03-21 at 15:15 -0700, Greg KH wrote: > > Really? vio drivers are supposed to look like this with the .name and > .owner field manually being set in the static initialization of the > driver? That's sad, and should be fixed, the vio core should do this > type of thing for you. Yeah

Crypto Fixes for 3.4

2012-03-21 Thread Herbert Xu
Hi Linus: This push fixes a build problem where two crypto modules both try to export the same symbols (which shouldn't have been exported in the first place). Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git or master.kernel.org:/pub/scm/linux/kernel/git/h

Re: [PATCH 1/2] crypto: camellia-x86_64 - module init/exit functions should be static

2012-03-21 Thread Herbert Xu
here? > I'm still seeing build problems in linux-next 20120321. Thanks for the reminder, I'll push these through today. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send t

Re: [PATCH 1/2] crypto: camellia-x86_64 - module init/exit functions should be static

2012-03-21 Thread Randy Dunlap
On 03/15/2012 01:11 PM, Jussi Kivilinna wrote: > This caused conflict with twofish-x86_64-3way when compiled into kernel, > same function names and not static. Have these patches been merged anywhere? I'm still seeing build problems in linux-next 20120321. > Reported-by: Randy Du

Re: [PATCH 15/17] powerpc: crypto: sysfs routines and docs for the nx device driver

2012-03-21 Thread Kent Yoder
Hi Greg, On Wed, 2012-03-21 at 15:11 -0700, Greg KH wrote: > On Wed, Mar 21, 2012 at 04:41:20PM -0500, Kent Yoder wrote: > > These routines add sysfs files supporting the Power7+ in-Nest encryption > > accelerator driver. > > > > Signed-off-by: Kent Yoder > > --- > > Documentation/powerpc/pfo-n

Re: [PATCH 14/17] powerpc: crypto: nx driver code supporting nx encryption

2012-03-21 Thread Greg KH
On Wed, Mar 21, 2012 at 04:41:08PM -0500, Kent Yoder wrote: > +static int nx_register_algs(void) > +{ > + int rc = -1; > + > + if (nx_driver.of.flags != NX_OF_FLAG_MASK_READY) > + goto out; > + > + memset(&nx_driver.stats, 0, sizeof(struct nx_stats)); > + > + rc = nx_sys

Re: [PATCH 15/17] powerpc: crypto: sysfs routines and docs for the nx device driver

2012-03-21 Thread Greg KH
On Wed, Mar 21, 2012 at 04:41:20PM -0500, Kent Yoder wrote: > These routines add sysfs files supporting the Power7+ in-Nest encryption > accelerator driver. > > Signed-off-by: Kent Yoder > --- > Documentation/powerpc/pfo-nx-crypto.txt | 52 Please put sysfs file information in Documen

[PATCH 08/17] powerpc: crypto: AES-CTR mode routines for nx encryption

2012-03-21 Thread Kent Yoder
These routines add support for AES in CTR mode on the Power7+ CPU's in-Nest accelerator driver. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx-aes-ctr.c | 175 +++ 1 files changed, 175 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/crypto

[PATCH 09/17] powerpc: crypto: AES-ECB mode routines for nx encryption

2012-03-21 Thread Kent Yoder
These routines add support for AES in ECB mode on the Power7+ CPU's in-Nest accelerator driver. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx-aes-ecb.c | 133 +++ 1 files changed, 133 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/crypto

[PATCH 17/17] powerpc: crypto: enable the PFO-based encryption device

2012-03-21 Thread Kent Yoder
This patch adds the cas bits to advertise support for the Platform Facilities Option (PFO) based encryption accelerator device. The nx device driver provides support for this hardware feature. Signed-off-by: Kent Yoder --- arch/powerpc/kernel/prom_init.c |8 +++- 1 files changed, 7 inser

[PATCH 16/17] powerpc: crypto: Build files for the nx device driver

2012-03-21 Thread Kent Yoder
These files support configuring and building the nx device driver. Signed-off-by: Kent Yoder --- arch/powerpc/Makefile |1 + arch/powerpc/crypto/nx/Makefile | 11 +++ drivers/crypto/Kconfig | 18 ++ 3 files changed, 30 insertions(+), 0 deletions

[PATCH 13/17] powerpc: crypto: SHA512 hash routines for nx encryption

2012-03-21 Thread Kent Yoder
These routines add support for SHA-512 hashing on the Power7+ CPU's in-Nest accelerator driver. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx-sha512.c | 259 1 files changed, 259 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/crypto

[PATCH 15/17] powerpc: crypto: sysfs routines and docs for the nx device driver

2012-03-21 Thread Kent Yoder
These routines add sysfs files supporting the Power7+ in-Nest encryption accelerator driver. Signed-off-by: Kent Yoder --- Documentation/powerpc/pfo-nx-crypto.txt | 52 arch/powerpc/crypto/nx/nx_sysfs.c | 194 +++ 2 files changed, 246 insertions(+),

[PATCH 14/17] powerpc: crypto: nx driver code supporting nx encryption

2012-03-21 Thread Kent Yoder
These routines add the base device driver code supporting the Power7+ in-Nest encryption accelerator (nx) device. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx.c| 710 arch/powerpc/crypto/nx/nx.h| 190 ++ arch/powerpc/crypt

[PATCH 12/17] powerpc: crypto: SHA256 hash routines for nx encryption

2012-03-21 Thread Kent Yoder
These routines add support for SHA-256 hashing on the Power7+ CPU's in-Nest accelerator driver. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx-sha256.c | 240 1 files changed, 240 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/crypto

[PATCH 11/17] powerpc: crypto: AES-XCBC mode routines for nx encryption

2012-03-21 Thread Kent Yoder
These routines add support for AES in XCBC mode on the Power7+ CPU's in-Nest accelerator driver. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx-aes-xcbc.c | 230 ++ 1 files changed, 230 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/crypt

[PATCH 10/17] powerpc: crypto: AES-GCM mode routines for nx encryption

2012-03-21 Thread Kent Yoder
These routines add support for AES in GCM mode on the Power7+ CPU's in-Nest accelerator driver. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx-aes-gcm.c | 352 +++ 1 files changed, 352 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/crypto

[PATCH 07/17] powerpc: crypto: AES-CCM mode routines for nx encryption

2012-03-21 Thread Kent Yoder
These routines add support for AES in CCM mode on the Power7+ CPU's in-Nest accelerator driver. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx-aes-ccm.c | 466 +++ 1 files changed, 466 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/crypto

[PATCH 05/17] pseries: Enabled the PFO-based RNG accelerator

2012-03-21 Thread Kent Yoder
From: Robert Jennings This patch adds the cas bits to advertise support for the Platform Facilities Option (PFO) based random number generator accerator. The pseries-rng driver provides support for this hardware feature. Signed-off-by: Robert Jennings Signed-off-by: Kent Yoder --- arch/powerp

[PATCH 06/17] powerpc: crypto: AES-CBC mode routines for nx encryption

2012-03-21 Thread Kent Yoder
These routines add support for AES in CBC mode on the Power7+ CPU's in-Nest accelerator driver. Signed-off-by: Kent Yoder --- arch/powerpc/crypto/nx/nx-aes-cbc.c | 135 +++ 1 files changed, 135 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/crypto

[PATCH 04/17] hwrng: pseries - PFO-based hwrng driver

2012-03-21 Thread Kent Yoder
From: Michael Neuling Adds support for the Platform Facilities Option (PFO)-based hardware random number generator for POWER hardware. Signed-off-by: Michael Neuling Signed-off-by: Robert Jennings Signed-off-by: Kent Yoder --- drivers/char/hw_random/Kconfig | 13 + drivers/char/h

[PATCH 02/17] powerpc: Add pseries update notifier for OFDT prop changes

2012-03-21 Thread Kent Yoder
From: Robert Jennings This adds an update notifier mechanism for changes to properties in the device tree. One use of this would be a device driver that needs to act on changes to it's properties in the device tree after a live migration or a dynamic activation that is triggered by updates to of

[PATCH 03/17] powerpc: Add PFO support to the VIO bus

2012-03-21 Thread Kent Yoder
From: Robert Jennings Add support for the Platform Facilities Option (PFO) to the VIO bus. These devices have a separate root node in OpenFirmware which requires additional parsing to map into the existing VIO device structure fields. This adds the interface for PFO device drivers to make synchr

[PATCH 01/17] powerpc: Add new hvcall constants to support PFO

2012-03-21 Thread Kent Yoder
From: Robert Jennings The Platform Facilities Option (PFO) adds several new h_calls and more return codes. Signed-off-by: Robert Jennings Signed-off-by: Kent Yoder --- arch/powerpc/include/asm/hvcall.h | 25 +++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff -

[PATCH 00/17] Platform Facilities Option and crypto accelerator driver

2012-03-21 Thread Kent Yoder
This patch series adds support for a new device type, the Platform Facilities Option (PFO). PFO resources are a set of accelerators that share some system resources managed by the VIO bus. This patchset includes the basic support for the devices in the VIO bus code along with drivers for the rand

Re: [PATCH v2.2 2/7] crypto: GnuPG based MPI lib - header files (part 2)

2012-03-21 Thread Geert Uytterhoeven
Ping? On Sun, Mar 11, 2012 at 10:55, Geert Uytterhoeven wrote: > On Wed, 19 Oct 2011, Dmitry Kasatkin wrote: >> Adds the multi-precision-integer maths library which was originally taken >> from GnuPG and ported to the kernel by (among others) David Howells. >> This version is taken from Fedora ke