[PATCH] crypto:caam - Configuration for platforms with virtualization enabled in CAAM

2014-06-22 Thread Ruchika Gupta
For platforms with virtualization enabled 1. The job ring registers can be written to only is the job ring has been started i.e STARTR bit in JRSTART register is 1 2. For DECO's under direct software control, with virtualization enabled PL, BMT, ICID and SDID values need to

[PATCH][v4] crypto: caam - Correct definition of registers in memory map

2014-06-22 Thread Ruchika Gupta
Some registers like SECVID, CHAVID, CHA Revision Number, CTPR were defined as 64 bit resgisters. The IP provides a DWT bit(Double word Transpose) to transpose the two words when a double word register is accessed. However setting this bit would also affect the operation of job descriptors as well

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

2014-06-22 Thread Marek Vasut
On Sunday, June 22, 2014 at 02:33:35 PM, Russell King - ARM Linux wrote: > On Sun, Jun 22, 2014 at 02:23:15PM +0200, Marek Vasut wrote: > > On Sunday, June 22, 2014 at 01:58:08 PM, Corentin LABBE wrote: > > [...] > > > > > >> + * This program is free software; you can redistribute it and/or > > >

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

2014-06-22 Thread Russell King - ARM Linux
On Tue, Jun 10, 2014 at 02:43:14PM +0200, LABBE Corentin wrote: > +int sunxi_aes_poll(struct ablkcipher_request *areq) > +{ ... > + if (areq->src == NULL || areq->dst == NULL) { > + dev_err(ss->dev, "ERROR: Some SGs are NULL %u\n", areq->nbytes); > + return -1; You retu

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

2014-06-22 Thread Russell King - ARM Linux
On Sun, Jun 22, 2014 at 02:23:15PM +0200, Marek Vasut wrote: > On Sunday, June 22, 2014 at 01:58:08 PM, Corentin LABBE wrote: > [...] > > >> + * 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 > > >

Re: [PATCH v3 2/4] crypto: Update makefile and Kconfig for Security System

2014-06-22 Thread Marek Vasut
On Sunday, June 22, 2014 at 01:58:38 PM, Corentin LABBE wrote: > Le 14/06/2014 21:01, Marek Vasut a écrit : > > On Tuesday, June 10, 2014 at 02:43:15 PM, LABBE Corentin wrote: > >> Add necessary changes for configuring and compiling the Security System > >> driver. > >> > >> Signed-off-by: LABBE C

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

2014-06-22 Thread Marek Vasut
On Sunday, June 22, 2014 at 01:58:08 PM, Corentin LABBE wrote: [...] > >> + * 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 version 2 of the License > > > > Th

Re: [PATCH v3 2/4] crypto: Update makefile and Kconfig for Security System

2014-06-22 Thread Corentin LABBE
Le 14/06/2014 21:01, Marek Vasut a écrit : > On Tuesday, June 10, 2014 at 02:43:15 PM, LABBE Corentin wrote: >> Add necessary changes for configuring and compiling the Security System >> driver. >> >> Signed-off-by: LABBE Corentin >> --- >> drivers/crypto/Kconfig | 91 >>

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

2014-06-22 Thread Corentin LABBE
Le 14/06/2014 21:01, Marek Vasut a écrit : > On Tuesday, June 10, 2014 at 02:43:14 PM, LABBE Corentin wrote: >> Add support for the Security System included in Allwinner SoC A20. >> The Security System is a hardware cryptographic accelerator that support >> AES/MD5/SHA1/DES/3DES/PRNG algorithms. >>