[PATCH RESEND 1/4] hwrng: atmel: use clk_prepapre_enable/_disable_unprepare

2014-11-19 Thread Boris Brezillon
Use clk_prepare_enable/_disable_unprepare instead of clk_enable/disable to work properly with the CCF. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Acked-by: Peter Korsgaard pe...@korsgaard.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/char/hw_random/atmel

[PATCH RESEND 2/4] hwrng: atmel: add DT support

2014-11-19 Thread Boris Brezillon
Add DT support. Make the driver depend on CONFIG_OF as at91sam9g45 was the only SoC making use of the TRNG block and this SoC is now fully migrated to DT. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/char/hw_random

[PATCH RESEND 0/4] ARM: at91: remove at91sam9g45/9m10 legacy board support

2014-11-19 Thread Boris Brezillon
Hello, This series adds DT support for the TRNG (True Random Generator) block and adds missing trng nodes to dtsi files. Best Regards, Boris Boris Brezillon (4): hwrng: atmel: use clk_prepapre_enable/_disable_unprepare hwrng: atmel: add DT support hwrng: atmel: Add TRNG DT binding doc

[PATCH RESEND 3/4] hwrng: atmel: Add TRNG DT binding doc

2014-11-19 Thread Boris Brezillon
Document DT bindings of Atmel's TRNG (True Random Number Generator) IP. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- Documentation/devicetree/bindings/hwrng/atmel-trng.txt | 16 1 file changed, 16

[PATCH RESEND 4/4] ARM: at91/dt: add trng node

2014-11-19 Thread Boris Brezillon
Add a DT node for the TRNG (True Random Number Generator) block. Keep this block enabled as it does not depend on any external connection, and thus should be available on all boards. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

Re: [PATCH RESEND 0/4] hrng: atmel: add DT support

2014-11-19 Thread Boris Brezillon
On Wed, 19 Nov 2014 17:15:47 +0100 Nicolas Ferre nicolas.fe...@atmel.com wrote: On 19/11/2014 17:07, Boris Brezillon : Hello, This series adds DT support for the TRNG (True Random Generator) block and adds missing trng nodes to dtsi files. Nitpicking: subject of this cover letter

Re: [PATCH RESEND 0/4] hrng: atmel: add DT support

2014-11-19 Thread Boris Brezillon
On Wed, 19 Nov 2014 18:35:56 +0100 Nicolas Ferre nicolas.fe...@atmel.com wrote: On 19/11/2014 17:18, Boris Brezillon : On Wed, 19 Nov 2014 17:15:47 +0100 Nicolas Ferre nicolas.fe...@atmel.com wrote: On 19/11/2014 17:07, Boris Brezillon : Hello, This series adds DT support

Re: [PATCH v6 4/4] crypto: Add Allwinner Security System crypto accelerator

2015-03-26 Thread Boris Brezillon
/scatterlist.c#L621 -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-crypto in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 0/2] crypto: add new driver for Marvell CESA

2015-04-28 Thread Boris Brezillon
, the tasklet approach provide slightly performances (I don't recall the exact numbers, but Arnaud did some tests). On Thu, 9 Apr 2015 16:58:41 +0200 Boris Brezillon boris.brezil...@free-electrons.com wrote: Hello, This is an attempt to replace the mv_cesa driver by a new one to address some

Re: [PATCH v9 4/4] crypto: Add Allwinner Security System crypto accelerator

2015-05-18 Thread Boris Brezillon
Hi Herbert, On Mon, 18 May 2015 08:41:21 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Sun, May 17, 2015 at 12:48:11PM +0200, Boris Brezillon wrote: Yep, but then they shouldn't be declared with CRYPTO_ALG_ASYNC

Re: [PATCH 0/2] crypto: add new driver for Marvell CESA

2015-04-17 Thread Boris Brezillon
compatible strings for the kirkwood, dove and orion platforms, and I'm sure sure this is a good idea. Do you have any ideas ? Regards, Boris -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- To unsubscribe from this list: send the line

Re: [PATCH 0/2] crypto: add new driver for Marvell CESA

2015-04-17 Thread Boris Brezillon
On Fri, 17 Apr 2015 10:33:56 +0200 Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Jason, On Mon, 13 Apr 2015 20:11:46 + Jason Cooper ja...@lakedaemon.net wrote: I'd appreciate if we'd look into it. I understand from on-list and off-list discussion

Re: [PATCH 0/2] crypto: add new driver for Marvell CESA

2015-04-17 Thread Boris Brezillon
Hi Gregory, On Fri, 17 Apr 2015 15:01:01 +0200 Gregory CLEMENT gregory.clem...@free-electrons.com wrote: Hi Boris, On 17/04/2015 10:39, Boris Brezillon wrote: On Fri, 17 Apr 2015 10:33:56 +0200 Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Jason, On Mon, 13 Apr

[PATCH 0/2] crypto: add new driver for Marvell CESA

2015-04-09 Thread Boris Brezillon
crypto algorithms, provided support for armada-370 and tested the driver on different platforms, hence the SoB and dual MODULE_AUTHOR in the driver code. Best Regards, Boris Boris Brezillon (2): crypto: add new driver for Marvell CESA crypto: marvell/CESA: update DT bindings documentation

[PATCH 2/2] crypto: marvell/CESA: update DT bindings documentation

2015-04-09 Thread Boris Brezillon
Document new compatible strings, document the new method to reference the crypto SRAM and deprecate the old one and document the the 'clocks' and 'clock-names' properties. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/mv_cesa.txt

[PATCH v7 02/14] crypto: mv_cesa: use gen_pool to reserve the SRAM memory region

2015-06-18 Thread Boris Brezillon
. Also note that the old way of retrieving the SRAM memory region is still supported, or in other words, backward compatibility is preserved. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/mv_cesa.txt | 24 ++--- drivers/crypto

[PATCH v7 03/14] crypto: mv_cesa: explicitly define kirkwood and dove compatible strings

2015-06-18 Thread Boris Brezillon
their crypto engine device to this driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 5 - drivers/crypto/mv_cesa.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff

[PATCH v7 14/14] crypto: marvell/CESA: add DT bindings documentation

2015-06-18 Thread Boris Brezillon
Add DT bindings documentation for the new marvell-cesa driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/marvell-cesa.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v7 05/14] crypto: marvell/CESA: add TDMA support

2015-06-18 Thread Boris Brezillon
on a per platform basis. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/Kconfig | 1 + drivers/crypto/marvell/Makefile | 2 +- drivers/crypto/marvell/cesa.c | 68 +++ drivers/crypto/marvell/cesa.h

[PATCH v7 07/14] crypto: marvell/CESA: add Triple-DES support

2015-06-18 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for Triple-DES operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto

[PATCH v7 04/14] crypto: add a new driver for Marvell's CESA

2015-06-18 Thread Boris Brezillon
. This commit introduce the base infrastructure allowing us to add support for DMA optimization. It also includes support for one hash (SHA1) and one cipher (AES) algorithm, and enable those features on the Armada 370 SoC. Other algorithms and platforms will be added later on. Signed-off-by: Boris Brezillon

[PATCH v7 08/14] crypto: marvell/CESA: add MD5 support

2015-06-18 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for MD5 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[PATCH v7 01/14] crypto: mv_cesa: document the clocks property

2015-06-18 Thread Boris Brezillon
On Dove platforms, the crypto engine requires a clock. Document this clocks property in the mv_cesa bindings doc. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v7 00/14] crypto: add a new driver for Marvell's CESA

2015-06-18 Thread Boris Brezillon
crypto: marvell/CESA: add SHA256 support crypto: marvell/CESA: add support for Kirkwood and Dove SoCs Boris Brezillon (10): crypto: mv_cesa: document the clocks property crypto: mv_cesa: use gen_pool to reserve the SRAM memory region crypto: mv_cesa: explicitly define kirkwood and dove

[PATCH v7 12/14] crypto: marvell/CESA: add support for Orion SoCs

2015-06-18 Thread Boris Brezillon
it is explicitly requested to do so). Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 42 +++--- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto

[PATCH v7 10/14] crypto: marvell/CESA: add support for all armada SoCs

2015-06-18 Thread Boris Brezillon
Add CESA IP description for all the missing armada SoCs (XP, 375 and 38x). Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell

[PATCH v7 06/14] crypto: marvell/CESA: add DES support

2015-06-18 Thread Boris Brezillon
Add support for DES operations. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/cipher.c | 150

[PATCH v7 09/14] crypto: marvell/CESA: add SHA256 support

2015-06-18 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for SHA256 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

Re: [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA

2015-06-21 Thread Boris Brezillon
Hi Herbert, On Sun, 21 Jun 2015 16:27:17 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Sun, Jun 21, 2015 at 10:24:18AM +0200, Boris Brezillon wrote: Indeed. Here is a patch fixing that. I think you should just kill COMPILE_TEST instead of adding ARM. Okay, I guess I should

Re: [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA

2015-06-22 Thread Boris Brezillon
Hi Herbert, On Sun, 21 Jun 2015 16:27:17 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Sun, Jun 21, 2015 at 10:24:18AM +0200, Boris Brezillon wrote: Indeed. Here is a patch fixing that. I think you should just kill COMPILE_TEST instead of adding ARM. The following patch

Re: [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA

2015-06-21 Thread Boris Brezillon
:16PM +0200, Boris Brezillon wrote: Hello, This patch series adds a new driver supporting Marvell's CESA IP. This driver addresses some limitations of the existing one. From a performance and CPU load point of view the most important limitation in the existing driver is the lack of DMA

[PATCH v4 13/13] crypto: marvell/CESA: add DT bindings documentation

2015-06-11 Thread Boris Brezillon
Add DT bindings documentation for the new marvell-cesa driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/marvell-cesa.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v4 14/14] crypto: marvell/CESA: add DT bindings documentation

2015-06-11 Thread Boris Brezillon
Add DT bindings documentation for the new marvell-cesa driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/marvell-cesa.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v4 11/13] crypto: marvell/CESA: add support for Orion SoCs

2015-06-11 Thread Boris Brezillon
it is explicitly requested to do so). Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 42 +++--- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto

[PATCH v4 12/13] crypto: marvell/CESA: add support for Kirkwood and Dove SoCs

2015-06-11 Thread Boris Brezillon
-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index bd54973..3546ee7 100644 --- a/drivers/crypto/marvell

[PATCH v4 11/14] crypto: marvell/CESA: add allhwsupport module parameter

2015-06-11 Thread Boris Brezillon
is stable/secure enough. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 087370e..c7e25a0 100644 --- a/drivers/crypto

[PATCH v4 07/13] crypto: marvell/CESA: add MD5 support

2015-06-11 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for MD5 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[PATCH v4 12/14] crypto: marvell/CESA: add support for Orion SoCs

2015-06-11 Thread Boris Brezillon
it is explicitly requested to do so). Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 42 +++--- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto

[PATCH v4 13/14] crypto: marvell/CESA: add support for Kirkwood and Dove SoCs

2015-06-11 Thread Boris Brezillon
-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index bd54973..3546ee7 100644 --- a/drivers/crypto/marvell

[PATCH v4 10/14] crypto: marvell/CESA: add support for all armada SoCs

2015-06-11 Thread Boris Brezillon
Add CESA IP description for all the missing armada SoCs (XP, 375 and 38x). Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell

[PATCH v4 10/13] crypto: marvell/CESA: add allhwsupport module parameter

2015-06-11 Thread Boris Brezillon
is stable/secure enough. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 087370e..c7e25a0 100644 --- a/drivers/crypto

[PATCH v4 09/13] crypto: marvell/CESA: add support for all armada SoCs

2015-06-11 Thread Boris Brezillon
Add CESA IP description for all the missing armada SoCs (XP, 375 and 38x). Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell

[PATCH v4 08/13] crypto: marvell/CESA: add SHA256 support

2015-06-11 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for SHA256 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[PATCH v4 08/14] crypto: marvell/CESA: add MD5 support

2015-06-11 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for MD5 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[PATCH v4 05/14] crypto: marvell/CESA: add TDMA support

2015-06-11 Thread Boris Brezillon
on a per platform basis. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/Kconfig | 1 + drivers/crypto/marvell/Makefile | 2 +- drivers/crypto/marvell/cesa.c | 68 +++ drivers/crypto/marvell/cesa.h

[PATCH v4 04/13] crypto: marvell/CESA: add TDMA support

2015-06-11 Thread Boris Brezillon
on a per platform basis. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/Kconfig | 1 + drivers/crypto/marvell/Makefile | 2 +- drivers/crypto/marvell/cesa.c | 68 +++ drivers/crypto/marvell/cesa.h

[PATCH v4 07/14] crypto: marvell/CESA: add Triple-DES support

2015-06-11 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for Triple-DES operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto

[PATCH v4 06/13] crypto: marvell/CESA: add Triple-DES support

2015-06-11 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for Triple-DES operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto

[PATCH v4 09/14] crypto: marvell/CESA: add SHA256 support

2015-06-11 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for SHA256 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[PATCH v4 06/14] crypto: marvell/CESA: add DES support

2015-06-11 Thread Boris Brezillon
Add support for DES operations. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/cipher.c | 150

[PATCH v4 00/14] crypto: add a new driver for Marvell's CESA

2015-06-11 Thread Boris Brezillon
MD5 support crypto: marvell/CESA: add SHA256 support crypto: marvell/CESA: add support for Kirkwood and Dove SoCs Boris Brezillon (10): crypto: mv_cesa: document the clocks property crypto: mv_cesa: use gen_pool to reserve the SRAM memory region crypto: mv_cesa: explicitly define kirkwood

[PATCH v4 01/14] crypto: mv_cesa: document the clocks property

2015-06-11 Thread Boris Brezillon
On Dove platforms, the crypto engine requires a clock. Document this clocks property in the mv_cesa bindings doc. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v4 02/13] crypto: mv_cesa: explicitly define kirkwood and dove compatible strings

2015-06-11 Thread Boris Brezillon
their crypto engine device to this driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 5 - drivers/crypto/mv_cesa.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff

[PATCH v4 02/14] crypto: mv_cesa: use gen_pool to reserve the SRAM memory region

2015-06-11 Thread Boris Brezillon
. Also note that the old way of retrieving the SRAM memory region is still supported, or in other words, backward compatibility is preserved. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/mv_cesa.txt | 24 ++--- drivers/crypto

[PATCH v4 04/14] crypto: add a new driver for Marvell's CESA

2015-06-11 Thread Boris Brezillon
. This commit introduce the base infrastructure allowing us to add support for DMA optimization. It also includes support for one hash (SHA1) and one cipher (AES) algorithm, and enable those features on the Armada 370 SoC. Other algorithms and platforms will be added later on. Signed-off-by: Boris Brezillon

[PATCH v4 01/13] crypto: mv_cesa: use gen_pool to reserve the SRAM memory region

2015-06-11 Thread Boris Brezillon
. Also note that the old way of retrieving the SRAM memory region is still supported, or in other words, backward compatibility is preserved. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/mv_cesa.txt | 24 ++--- drivers/crypto

[PATCH v4 03/13] crypto: add a new driver for Marvell's CESA

2015-06-11 Thread Boris Brezillon
. This commit introduce the base infrastructure allowing us to add support for DMA optimization. It also includes support for one hash (SHA1) and one cipher (AES) algorithm, and enable those features on the Armada 370 SoC. Other algorithms and platforms will be added later on. Signed-off-by: Boris Brezillon

Re: [PATCH v4 00/14] crypto: add a new driver for Marvell's CESA

2015-06-11 Thread Boris Brezillon
Sorry for the noise: apparently I forgot to remove existing patches when regenerating the series with format-patch. I'll resend the series tomorrow. On Thu, 11 Jun 2015 19:36:19 +0200 Boris Brezillon boris.brezil...@free-electrons.com wrote: Hello, This patch series adds a new driver

Re: [RESEND PATCH v4 04/14] crypto: add a new driver for Marvell's CESA

2015-06-15 Thread Boris Brezillon
On Mon, 15 Jun 2015 17:54:21 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Fri, Jun 12, 2015 at 09:15:56AM +0200, Boris Brezillon wrote: +static int mv_cesa_cbc_aes_op(struct ablkcipher_request *req, + struct mv_cesa_op_ctx *tmpl

Re: [RESEND PATCH v4 04/14] crypto: add a new driver for Marvell's CESA

2015-06-15 Thread Boris Brezillon
On Mon, 15 Jun 2015 17:59:44 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Fri, Jun 12, 2015 at 09:15:56AM +0200, Boris Brezillon wrote: +struct ahash_alg mv_ahmac_sha1_alg = { + .init = mv_cesa_ahmac_sha1_init, + .update = mv_cesa_ahash_update, + .final

Re: [RESEND PATCH v4 04/14] crypto: add a new driver for Marvell's CESA

2015-06-15 Thread Boris Brezillon
On Mon, 15 Jun 2015 17:48:27 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Fri, Jun 12, 2015 at 09:15:56AM +0200, Boris Brezillon wrote: +static void mv_cesa_dequeue_req_unlocked(struct mv_cesa_engine *engine) +{ + struct crypto_async_request *req; + struct mv_cesa_ctx

Re: [RESEND PATCH v4 05/14] crypto: marvell/CESA: add TDMA support

2015-06-15 Thread Boris Brezillon
Hi Herbert, On Mon, 15 Jun 2015 18:09:20 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Fri, Jun 12, 2015 at 09:15:57AM +0200, Boris Brezillon wrote: + ret = dma_map_sg(cesa_dev-dev, req-src, creq-src_nents, +DMA_TO_DEVICE); + if (ret 0) This function

[RESEND PATCH v4 00/14] crypto: add a new driver for Marvell's CESA

2015-06-12 Thread Boris Brezillon
): crypto: marvell/CESA: add Triple-DES support crypto: marvell/CESA: add MD5 support crypto: marvell/CESA: add SHA256 support crypto: marvell/CESA: add support for Kirkwood and Dove SoCs Boris Brezillon (10): crypto: mv_cesa: document the clocks property crypto: mv_cesa: use gen_pool

[RESEND PATCH v4 09/14] crypto: marvell/CESA: add SHA256 support

2015-06-12 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for SHA256 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[RESEND PATCH v4 05/14] crypto: marvell/CESA: add TDMA support

2015-06-12 Thread Boris Brezillon
on a per platform basis. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/Kconfig | 1 + drivers/crypto/marvell/Makefile | 2 +- drivers/crypto/marvell/cesa.c | 68 +++ drivers/crypto/marvell/cesa.h

[RESEND PATCH v4 03/14] crypto: mv_cesa: explicitly define kirkwood and dove compatible strings

2015-06-12 Thread Boris Brezillon
their crypto engine device to this driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 5 - drivers/crypto/mv_cesa.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff

[RESEND PATCH v4 13/14] crypto: marvell/CESA: add support for Kirkwood and Dove SoCs

2015-06-12 Thread Boris Brezillon
-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index bd54973..3546ee7 100644 --- a/drivers/crypto/marvell

[RESEND PATCH v4 07/14] crypto: marvell/CESA: add Triple-DES support

2015-06-12 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for Triple-DES operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto

[RESEND PATCH v4 14/14] crypto: marvell/CESA: add DT bindings documentation

2015-06-12 Thread Boris Brezillon
Add DT bindings documentation for the new marvell-cesa driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/marvell-cesa.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree

[RESEND PATCH v4 12/14] crypto: marvell/CESA: add support for Orion SoCs

2015-06-12 Thread Boris Brezillon
it is explicitly requested to do so). Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 42 +++--- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto

[RESEND PATCH v4 11/14] crypto: marvell/CESA: add allhwsupport module parameter

2015-06-12 Thread Boris Brezillon
is stable/secure enough. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 087370e..c7e25a0 100644 --- a/drivers/crypto

[RESEND PATCH v4 06/14] crypto: marvell/CESA: add DES support

2015-06-12 Thread Boris Brezillon
Add support for DES operations. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/cipher.c | 150

[RESEND PATCH v4 08/14] crypto: marvell/CESA: add MD5 support

2015-06-12 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for MD5 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[RESEND PATCH v4 01/14] crypto: mv_cesa: document the clocks property

2015-06-12 Thread Boris Brezillon
On Dove platforms, the crypto engine requires a clock. Document this clocks property in the mv_cesa bindings doc. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v6 06/14] crypto: marvell/CESA: add DES support

2015-06-18 Thread Boris Brezillon
Hi Herbert, On Wed, 17 Jun 2015 09:45:34 +0200 Boris Brezillon boris.brezil...@free-electrons.com wrote: Add support for DES operations. The addition of DES support seems controversial. At first I thought it would be good to support all the algorithms supported by the CESA engine, but I think

Re: [PATCH v5 04/14] crypto: add a new driver for Marvell's CESA

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 13:58:24 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Tue, Jun 16, 2015 at 11:58:58AM +0200, Boris Brezillon wrote: +config CRYPTO_DEV_MARVELL_CESA + tristate New Marvell's Cryptographic Engine driver + depends on (PLAT_ORION || ARCH_MVEBU

[PATCH v6 08/14] crypto: marvell/CESA: add MD5 support

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for MD5 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[PATCH v6 04/14] crypto: add a new driver for Marvell's CESA

2015-06-17 Thread Boris Brezillon
. This commit introduce the base infrastructure allowing us to add support for DMA optimization. It also includes support for one hash (SHA1) and one cipher (AES) algorithm, and enable those features on the Armada 370 SoC. Other algorithms and platforms will be added later on. Signed-off-by: Boris Brezillon

[PATCH v6 06/14] crypto: marvell/CESA: add DES support

2015-06-17 Thread Boris Brezillon
Add support for DES operations. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/cipher.c | 150

[PATCH v6 09/14] crypto: marvell/CESA: add SHA256 support

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for SHA256 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

Re: [PATCH v6 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 17:50:01 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote: + ret = dma_map_sg(cesa_dev-dev, req-src, creq-src_nents, +DMA_TO_DEVICE); + if (!ret) + return -ENOMEM

Re: [PATCH v5 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 15:18:29 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Wed, Jun 17, 2015 at 09:15:03AM +0200, Boris Brezillon wrote: Anyway, now I'm doing the following test: if (creq-src_nents !ret) return -ENOMEM; Best not call dma_map_sg at all

[PATCH v6 00/14] crypto: add a new driver for Marvell's CESA

2015-06-17 Thread Boris Brezillon
DT changes to the series Arnaud Ebalard (4): crypto: marvell/CESA: add Triple-DES support crypto: marvell/CESA: add MD5 support crypto: marvell/CESA: add SHA256 support crypto: marvell/CESA: add support for Kirkwood and Dove SoCs Boris Brezillon (10): crypto: mv_cesa: document the clocks

[PATCH v6 12/14] crypto: marvell/CESA: add support for Orion SoCs

2015-06-17 Thread Boris Brezillon
it is explicitly requested to do so). Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 42 +++--- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto

[PATCH v6 01/14] crypto: mv_cesa: document the clocks property

2015-06-17 Thread Boris Brezillon
On Dove platforms, the crypto engine requires a clock. Document this clocks property in the mv_cesa bindings doc. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v6 03/14] crypto: mv_cesa: explicitly define kirkwood and dove compatible strings

2015-06-17 Thread Boris Brezillon
their crypto engine device to this driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 5 - drivers/crypto/mv_cesa.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff

[PATCH v6 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
on a per platform basis. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/Kconfig | 1 + drivers/crypto/marvell/Makefile | 2 +- drivers/crypto/marvell/cesa.c | 68 +++ drivers/crypto/marvell/cesa.h

[PATCH v7 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
on a per platform basis. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- Hi Herbert, I send you this patch alone so that you can verify I'm now properly manipulating the SG list. Once I have your confirmation I'll send the whole

[PATCH v6 13/14] crypto: marvell/CESA: add support for Kirkwood and Dove SoCs

2015-06-17 Thread Boris Brezillon
-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 8e5ea72..a432633 100644 --- a/drivers/crypto/marvell

[PATCH v6 14/14] crypto: marvell/CESA: add DT bindings documentation

2015-06-17 Thread Boris Brezillon
Add DT bindings documentation for the new marvell-cesa driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/crypto/marvell-cesa.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v6 11/14] crypto: marvell/CESA: add allhwsupport module parameter

2015-06-17 Thread Boris Brezillon
is stable/secure enough. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index af590bf..a05b5cb 100644 --- a/drivers/crypto

Re: [PATCH v7 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 23:08:08 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Wed, Jun 17, 2015 at 03:32:02PM +0200, Boris Brezillon wrote: Hi Herbert, I send you this patch alone so that you can verify I'm now properly manipulating the SG list. Once I have your confirmation

[PATCH 0/2] crypto: testmgr: test IV value after a cipher operation

2015-06-16 Thread Boris Brezillon
the CBC test vectors. Other cipher modes (LRW, CTR, ...) should be updated too. Best Regards, Boris Boris Brezillon (2): crypto: testmgr: test IV value after a cipher operation crypto: testmgr: add iv_out information for all CBC testvec crypto/testmgr.c | 12 - crypto/testmgr.h | 82

[PATCH 1/2] crypto: testmgr: test IV value after a cipher operation

2015-06-16 Thread Boris Brezillon
The crypto drivers are supposed to update the IV passed to the crypto request before calling the completion callback. Test for the IV value before considering the test as successful. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- crypto/testmgr.c | 12 +++- crypto

[PATCH 2/2] crypto: testmgr: add iv_out information for all CBC testvec

2015-06-16 Thread Boris Brezillon
Add iv_out information to all CBC testvec so that the testmgr can verify the IV value after each cipher request. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- crypto/testmgr.h | 81 1 file changed, 81 insertions

[PATCH v5 03/14] crypto: mv_cesa: explicitly define kirkwood and dove compatible strings

2015-06-16 Thread Boris Brezillon
their crypto engine device to this driver. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 5 - drivers/crypto/mv_cesa.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff

[PATCH v5 11/14] crypto: marvell/CESA: add allhwsupport module parameter

2015-06-16 Thread Boris Brezillon
is stable/secure enough. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index af590bf..a05b5cb 100644 --- a/drivers/crypto

[PATCH v5 09/14] crypto: marvell/CESA: add SHA256 support

2015-06-16 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for SHA256 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell

[PATCH v5 13/14] crypto: marvell/CESA: add support for Kirkwood and Dove SoCs

2015-06-16 Thread Boris Brezillon
-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 8e5ea72..a432633 100644 --- a/drivers/crypto/marvell

[PATCH v5 04/14] crypto: add a new driver for Marvell's CESA

2015-06-16 Thread Boris Brezillon
. This commit introduce the base infrastructure allowing us to add support for DMA optimization. It also includes support for one hash (SHA1) and one cipher (AES) algorithm, and enable those features on the Armada 370 SoC. Other algorithms and platforms will be added later on. Signed-off-by: Boris Brezillon

  1   2   3   >