Re: [PATCH] powerpc/crypto: Remove virt_to_abs() usage in nx-842.c

2012-08-02 Thread Michael Ellerman
Hi Herbert, We're planning on removing virt_to_abs() from the powerpc tree this cycle. So if you can take this patch in your tree everything should continue building when the two trees merge. cheers -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a messa

[PATCH] powerpc/crypto: Remove virt_to_abs() usage in nx-842.c

2012-08-02 Thread Michael Ellerman
virt_to_abs() is just a wrapper around __pa(), use __pa() directly. We should be including to get __pa(). abs_addr.h will be removed shortly so drop that. We were getting of.h via abs_addr.h so we need to include that directly. Having done all that, clean up the ordering of the includes. Signe

Re: [PATCH v5 3/6] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-02 Thread Ira W. Snyder
On Thu, Aug 02, 2012 at 07:21:51AM +, Liu Qiang-B32616 wrote: > > -Original Message- > > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > > Sent: Thursday, August 02, 2012 1:25 AM > > To: Liu Qiang-B32616 > > Cc: linux-crypto@vger.kernel.org; linuxppc-...@lists.ozlabs.org; linux- >

[PATCH 5/5] crypto: talitos - add IPsec ESN support

2012-08-02 Thread Horia Geanta
Suuport for ESNs (extended sequence numbers). Tested with strongswan on a P2020RDB back-to-back setup. >From /etc/ipsec.conf: esp=aes-sha1-esn-modp4096! Signed-off-by: Horia Geanta --- drivers/crypto/talitos.c | 318 ++ 1 files changed, 318 insertions

[PATCH 4/5] crypto: talitos - support for assoc data provided as scatterlist

2012-08-02 Thread Horia Geanta
Generate a link table in case assoc data is a scatterlist. While at it, add support for handling non-contiguous assoc data and iv. Signed-off-by: Horia Geanta --- drivers/crypto/talitos.c | 176 - 1 files changed, 125 insertions(+), 51 deletions(-) d

[PATCH 1/5] crypto: talitos - fix icv management on outbound direction

2012-08-02 Thread Horia Geanta
For IPsec encryption, in the case when: -the input buffer is fragmented (edesc->src_nents > 0) -the output buffer is not fragmented (edesc->dst_nents = 0) the ICV is not output in the link table, but after the encrypted payload. Copying the ICV must be avoided in this case; consequently the condit

[PATCH 3/5] crypto: talitos - change type and name for [src|dst]_is_chained

2012-08-02 Thread Horia Geanta
It's more natural to think of these vars as bool rather than int. Signed-off-by: Horia Geanta --- drivers/crypto/talitos.c | 41 - 1 files changed, 20 insertions(+), 21 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index

[PATCH 2/5] crypto: talitos - prune unneeded descriptor allocation param

2012-08-02 Thread Horia Geanta
talitos_edesc_alloc does not need hash_result param. Checking whether dst scatterlist is NULL or not is all that is required. Signed-off-by: Horia Geanta --- drivers/crypto/talitos.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/talitos.c b/d

RE: [PATCH v5 3/6] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-02 Thread Liu Qiang-B32616
Hi Ira, Here, I want to talk about the issue of dma lock when use dmatest with original patch. I do some tests on p1022ds, 2 cores, 6 dma channels (actually is 4 channels, I am investigating why is 6, but it doesn't matter). I would like to share with you to find something:) First, it is easy

RE: [PATCH v5 3/6] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-02 Thread Liu Qiang-B32616
> -Original Message- > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > Sent: Thursday, August 02, 2012 1:25 AM > To: Liu Qiang-B32616 > Cc: linux-crypto@vger.kernel.org; linuxppc-...@lists.ozlabs.org; linux- > ker...@vger.kernel.org; dan.j.willi...@gmail.com; Vinod Koul; > herb...@gond