RE: [PATCH] crypto: caam - fix DECO RSR polling

2014-07-23 Thread Ruchika Gupta
:- Ruchika Gupta Tested on P4080DS. Ported and tested on LS1 platform also (This platform has the virtualization enabled). Thanks, Ruchika > -Original Message- > From: Horia Geanta [mailto:horia.gea...@freescale.com] > Sent: Monday, July 21, 2014 6:33 PM > To: Herbe

[PATCH][v2] crypto: caam - Check for CAAM block presence before registering with crypto layer

2014-07-06 Thread Ruchika Gupta
The layer which registers with the crypto API should check for the presence of the CAAM device it is going to use. If the platform's device tree doesn't have the required CAAM node, the layer should return an error and not register the algorithms with crypto API layer. Signed-off-b

[PATCH][v2] crypto: caam - Check for CAAM block presence before registering with crypto layer

2014-07-06 Thread Ruchika Gupta
The layer which registers with the crypto API should check for the presence of the CAAM device it is going to use. If the platform's device tree doesn't have the required CAAM node, the layer should return an error and not register the algorithms with crypto API layer. Signed-off-b

[PATCH] crypto: caam - Check for CAAM block presence before registering with crypto layer

2014-07-03 Thread Ruchika Gupta
The layer which registers with the crypto API should check for the presence of the CAAM device it is going to use. If the platform's device tree doesn't have the required CAAM node, the layer should return an error and not register the algorithms with crypto API layer. Signed-off-b

[PATCH] crypto:caam - Correct the dma mapping for sg table

2014-06-23 Thread Ruchika Gupta
it is populated by the driver, making it read-only as per the DMA API's requirement. Signed-off-by: Ruchika Gupta --- drivers/crypto/caam/caamalg.c | 8 drivers/crypto/caam/caamhash.c | 40 +++- 2 files changed, 27 insertions(+), 21 dele

[PATCH] crypto: caam - Add definition of rd/wr_reg64 for little endian platform

2014-06-23 Thread Ruchika Gupta
CAAM IP has certain 64 bit registers . 32 bit architectures cannot force atomic-64 operations. This patch adds definition of these atomic-64 operations for little endian platforms. The definitions which existed previously were for big endian platforms. Signed-off-by: Ruchika Gupta --- Tested on

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

2014-06-22 Thread Ruchika Gupta
ed to be provided. These are provided by selecting a Job ring in start mode whose parameters would be used for the DECO access programming. Signed-off-by: Ruchika Gupta --- The current patch used the 32 bit register comp_params_ms defined in another patch. The link of patch thsi

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

2014-06-22 Thread Ruchika Gupta
as other registers which are truly double word in nature. So, for the IP to work correctly on big-endian as well as little-endian SoC's, change is required to access all 32 bit registers as 32 bit quantities. Signed-off-by: Ruchika Gupta --- drivers/crypto/caam/ctrl.c | 14 + dr

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

2014-06-19 Thread Ruchika Gupta
as other registers which are truly double word in nature. So, for the IP to work correctly on big-endian as well as little-endian SoC's, change is required to access all 32 bit registers as 32 bit quantities. Signed-off-by: Ruchika Gupta --- drivers/crypto/caam/ctrl.c | 14 + dr

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

2014-06-12 Thread Ruchika Gupta
as other registers which are truly double word in nature. So, for the IP to work correctly on big-endian as well as little-endian SoC's, change is required to access all 32 bit registers as 32 bit quantities. Signed-off-by: Ruchika Gupta --- Changed in v2: 1. Review comments incorpora

RE: [PATCH] crypto:caam - Modify width of few read only registers

2014-06-12 Thread Ruchika Gupta
h of few read only registers > > On Tue, 29 Apr 2014 15:34:37 +0530 > Ruchika Gupta wrote: > > > Few read only registers like CHAVID, CTPR etc were wrongly defined as > > 64 bit registers. This functioned properly on the powerpc platforms. > > However ARM SoC'

RE: [PATCH] crypto:caam - Modify width of few read only registers

2014-06-10 Thread Ruchika Gupta
> > > > From: Kim Phillips [mailto:kim.phill...@freescale.com] > > > > > Sent: Friday, May 02, 2014 2:15 AM > > > > > > > > > > On Tue, 29 Apr 2014 15:34:37 +0530 Ruchika Gupta > > > > > wrote: > > > > > > > &g

RE: [PATCH] crypto:caam - Modify width of few read only registers

2014-05-06 Thread Ruchika Gupta
h of few read only registers > > On Tue, 6 May 2014 05:11:23 -0500 > Gupta Ruchika-R66431 wrote: > > > > From: Kim Phillips [mailto:kim.phill...@freescale.com] > > > Sent: Friday, May 02, 2014 2:15 AM > > > > > > On Tue, 29 Apr 2014 15:34:37 +0530 >

RE: [PATCH] crypto:caam - Modify width of few read only registers

2014-05-06 Thread Ruchika Gupta
registers > > On Tue, 29 Apr 2014 15:34:37 +0530 > Ruchika Gupta wrote: > > > Few read only registers like CHAVID, CTPR etc were wrongly defined as > > 64 bit registers. This functioned properly on the powerpc platforms. > > However ARM SoC's wouldn't f

[PATCH] crypto:caam - Define setbits32() and clrbits32() for ARM in the Freescale CAAM driver

2014-04-29 Thread Ruchika Gupta
The kernel defines setbits32() and clrbits32() macros only for Power-based architectures. This patch modifies the Freescale CAAM driver to add macros for use on ARM architectures. Signed-off-by: Victoria Milhoan Signed-off-by: Ruchika Gupta --- drivers/crypto/caam/regs.h | 6 ++ 1 file

[PATCH] crypto:caam - Modify width of few read only registers

2014-04-29 Thread Ruchika Gupta
ned-off-by: Ruchika Gupta --- drivers/crypto/caam/ctrl.c | 17 +-- drivers/crypto/caam/regs.h | 71 +- 2 files changed, 47 insertions(+), 41 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 1c38f86..5d878

[PATCH] crypto:caam - Modify width of few read only registers

2014-04-29 Thread Ruchika Gupta
ned-off-by: Ruchika Gupta --- drivers/crypto/caam/ctrl.c | 17 +-- drivers/crypto/caam/regs.h | 71 +- 2 files changed, 47 insertions(+), 41 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 1c38f86..5d878

RE: [PATCH] crypto: caam - Fix key inlining in AEAD shared descriptors

2014-04-27 Thread Ruchika Gupta
Reviewed-by: Ruchika Gupta > -Original Message- > From: Vakul Garg [mailto:va...@freescale.com] > Sent: Sunday, April 27, 2014 8:56 PM > To: linux-crypto@vger.kernel.org > Cc: herb...@gondor.apana.org.au; Geanta Neag Horia Ioan-B05471; Gupta > Ruchika-R66431; Porosan

[PATCH] crypto: caam - Check for CAAM block presence before registering with crypto layer

2014-03-20 Thread Ruchika Gupta
The layer which registers with the crypto API should check for the presence of the CAAM device it is going to use. If the platform's device tree doesn't have the required CAAM node, the layer should return an error and not register the algorithms with crypto API layer. Signed-off-b

RE: [PATCH v2] crypto: caam - fix caamrng compilation warning

2014-03-20 Thread Ruchika Gupta
Acked-by: Ruchika Gupta > -Original Message- > From: Yashpal Dutta [mailto:yashpal.du...@freescale.com] > Sent: Friday, March 21, 2014 12:30 AM > To: linux-crypto@vger.kernel.org; Gupta Ruchika-R66431; Garg Vakul-B16394; > Geanta Neag Horia Ioan-B05471 > Cc: Dutta Y

RE: [PATCH v3] crypto: caam - power management support for caam job-ring

2014-03-20 Thread Ruchika Gupta
Acked-by: Ruchika Gupta > -Original Message- > From: Yashpal Dutta [mailto:yashpal.du...@freescale.com] > Sent: Friday, March 21, 2014 12:21 AM > To: linux-crypto@vger.kernel.org; Geanta Neag Horia Ioan-B05471; Garg Vakul- > B16394; Gupta Ruchika-R66431 > Cc: Dutta Y

RE: [PATCH] crypto: caam - Dynamic memory allocation for caam_rng_ctx object

2014-03-06 Thread Ruchika Gupta
Acked-by: Ruchika Gupta > -Original Message- > From: Nitesh Lal [mailto:niteshnarayan...@freescale.com] > Sent: Friday, March 07, 2014 4:06 PM > To: linux-crypto@vger.kernel.org; Gupta Ruchika-R66431; Dutta Yashpal- > B05456; herb...@gondor.apana.org > Cc: Lal Nites

RE: [PATCH] crypto/caam/jr.c: include linux/of_address.h

2013-11-26 Thread Ruchika Gupta
caam/jr.c > @@ -6,6 +6,7 @@ > */ > > #include > +#include > > #include "compat.h" > #include "regs.h" > -- > 1.8.4.1 > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-crypto" in > the body of a me

RE: [PATCH] crypto: caam - Add missing Job Ring include

2013-11-26 Thread Ruchika Gupta
nb.auug.org.au > Subject: RE: [PATCH] crypto: caam - Add missing Job Ring include > > Acked-by: Ruchika Gupta > > > -Original Message- > > From: linux-crypto-ow...@vger.kernel.org [mailto:linux-crypto- > > ow...@vger.kernel.org] On Behalf Of Michael Neuling

RE: [PATCH] crypto: caam - Add missing Job Ring include

2013-11-18 Thread Ruchika Gupta
Acked-by: Ruchika Gupta > -Original Message- > From: linux-crypto-ow...@vger.kernel.org [mailto:linux-crypto- > ow...@vger.kernel.org] On Behalf Of Michael Neuling > Sent: Monday, November 18, 2013 9:50 AM > To: Gupta Ruchika-R66431 > Cc: Garg Vakul-B16394; Herber

[PATCH 3/3] crypto: caam - Modify the interface layers to use JR API's

2013-10-24 Thread Ruchika Gupta
- Earlier interface layers - caamalg, caamhash, caamrng were directly using the Controller driver private structure to access the Job ring. - Changed the above to use alloc/free API's provided by Job Ring Drive Signed-off-by: Ruchika Gupta Reviewed-by: Garg Vakul-B16394 --- drivers/c

[PATCH 1/3] crypto: caam - Add Platform driver for Job Ring

2013-10-24 Thread Ruchika Gupta
initialization of CAAM Block. - Creates platform devices for Job Rings. (Earlier the initialization of Job ring was done by the controller driver) 2. JobRing Platform driver - Manages the platform Job Ring devices created by the controller driver Signed-off-by: Ruchika Gupta

[PATCH 2/3] crypto: caam - Add API's to allocate/free Job Rings

2013-10-24 Thread Ruchika Gupta
With each of the Job Ring available as a platform device, the Job Ring driver needs to take care of allocation/deallocation of the Job Rings to the above interface layers. Added APIs in Job Ring Driver to allocate/free Job rings Signed-off-by: Ruchika Gupta Reviewed-by: Garg Vakul-B16394

[PATCH] crypto: caam - Remove unused functions from Job Ring

2013-07-31 Thread Ruchika Gupta
Signed-off-by: Ruchika Gupta --- drivers/crypto/caam/ctrl.c | 3 -- drivers/crypto/caam/intern.h | 5 drivers/crypto/caam/jr.c | 67 drivers/crypto/caam/jr.h | 2 -- 4 files changed, 77 deletions(-) diff --git a/drivers/crypto/caam

[PATCH] crypto: caam - RNG instantiation by directly programming DECO

2013-07-03 Thread Ruchika Gupta
Remove the dependency of RNG instantiation on Job Ring. Now RNG instantiation for devices with RNG version > 4 is done by directly programming DECO 0. Signed-off-by: Ruchika Gupta --- drivers/crypto/caam/ctrl.c | 74 ++ drivers/crypto/caam/regs.h |

[PATCH] crypto: caam - FIX RNG init for RNG greater than equal to 4

2013-04-26 Thread Ruchika Gupta
y been instantiated by u-boot or boot ROM code.In such SoCs, if RNG is initialized again SEC would returns "Instantiation error". Hence, the initialization status of RNG4 should be also checked before doing RNG init. Signed-off-by: Ruchika Gupta Signed-off-by: Alex Porosanu Signed-off-