[PATCH v2 1/2] crypto: bfin_crc: ignore duplicated registration of the same algorithm

2014-04-10 Thread Sonic Zhang
From: Sonic Zhang in case of multiple crc devices are probed. Call platform_set_drvdata() before adding new CRC device into the list. Signed-off-by: Sonic Zhang --- v2-chagnes: - check the CRC list and avoid call crypto_register_ahash() if not empty - move platform_set_drvdata() before adding C

[PATCH] crypto: add test cases for SHA-1, SHA-224, SHA-256 and AES-CCM

2014-04-10 Thread Ard Biesheuvel
This adds test cases for SHA-1, SHA-224, SHA-256 and AES-CCM with an input size that is an exact multiple of the block size. The reason is that some implementations use a different code path for these cases. Signed-off-by: Ard Biesheuvel --- This is the same patch as I posted last week, but this

Re: [PATCH V2] crypto: omap-des - use devm_ioremap_resource()

2014-04-10 Thread Joel Fernandes
On 04/07/2014 11:54 PM, Jingoo Han wrote: > Use devm_ioremap_resource() because devm_request_and_ioremap() is > obsoleted by devm_ioremap_resource(). > > Signed-off-by: Jingoo Han Acked-by: Joel Fernandes -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of

Re: [PATCH 5/9] crypto: qce: Adds sha and hmac transforms

2014-04-10 Thread Stanimir Varbanov
Hi Stephen, thanks for the comments. On 04/09/2014 03:09 AM, Stephen Boyd wrote: > On 04/03, Stanimir Varbanov wrote: >> +static void qce_ahash_dma_done(void *data) >> +{ >> +struct crypto_async_request *async_req = data; >> +struct ahash_request *req = ahash_request_cast(async_req); >> +

Re: [PATCH 1/2] crypto: bfin_crc: ignore duplicated registration of the same algorithm

2014-04-10 Thread Marek Vasut
On Thursday, April 10, 2014 at 11:51:29 AM, Sonic Zhang wrote: > Hi Marek, > > On Thu, Apr 10, 2014 at 4:59 PM, Marek Vasut wrote: > > On Thursday, April 10, 2014 at 10:40:58 AM, Sonic Zhang wrote: > >> From: Sonic Zhang > >> > >> in case of multiple crc devices are probed. > >> > >> Signed-of

Re: [PATCH 1/2] crypto: bfin_crc: ignore duplicated registration of the same algorithm

2014-04-10 Thread Sonic Zhang
Hi Marek, On Thu, Apr 10, 2014 at 4:59 PM, Marek Vasut wrote: > On Thursday, April 10, 2014 at 10:40:58 AM, Sonic Zhang wrote: >> From: Sonic Zhang >> >> in case of multiple crc devices are probed. >> >> Signed-off-by: Sonic Zhang >> --- >> drivers/crypto/bfin_crc.c | 2 +- >> 1 file changed,

Re: [PATCH 1/2] crypto: bfin_crc: ignore duplicated registration of the same algorithm

2014-04-10 Thread Marek Vasut
On Thursday, April 10, 2014 at 10:40:58 AM, Sonic Zhang wrote: > From: Sonic Zhang > > in case of multiple crc devices are probed. > > Signed-off-by: Sonic Zhang > --- > drivers/crypto/bfin_crc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/crypto/bfin_crc.

Re: [PATCH 2/2] crypto: bfin_crc: avoid get physical address of coherence memory by dma_map_single

2014-04-10 Thread Marek Vasut
On Thursday, April 10, 2014 at 10:40:59 AM, Sonic Zhang wrote: > From: Sonic Zhang > > - The 4-byte sg_mid_buf is located in the middle of the coherence memory > sg_cpu. Don't call dma_map_single to get its physical address. Get the its > base physical address from the physical address of sg_cpu

[PATCH 1/2] crypto: bfin_crc: ignore duplicated registration of the same algorithm

2014-04-10 Thread Sonic Zhang
From: Sonic Zhang in case of multiple crc devices are probed. Signed-off-by: Sonic Zhang --- drivers/crypto/bfin_crc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/bfin_crc.c b/drivers/crypto/bfin_crc.c index cea3e8c..5f5f427 100644 --- a/drivers/crypto/bf

[PATCH 2/2] crypto: bfin_crc: avoid get physical address of coherence memory by dma_map_single

2014-04-10 Thread Sonic Zhang
From: Sonic Zhang - The 4-byte sg_mid_buf is located in the middle of the coherence memory sg_cpu. Don't call dma_map_single to get its physical address. Get the its base physical address from the physical address of sg_cpu instead. - Should set up the dma descriptor data after the 4-byte sg_mid_

Re: [PATCH v2] crypt: bfin_crc: access crc registers by readl and writel functions

2014-04-10 Thread Marek Vasut
On Thursday, April 10, 2014 at 08:30:56 AM, Sonic Zhang wrote: > From: Sonic Zhang > > Move architecture independant crc header file out of the blackfin folder. > > > Signed-off-by: Sonic Zhang > --- > v2-changes: > - avoid combine the IO accessors into each other > - use readl/writel other th

Re: [PATCH] crypt: bfin_crc: access crc registers by ioread32 and iowrite32 functions

2014-04-10 Thread Marek Vasut
On Thursday, April 10, 2014 at 05:50:37 AM, Sonic Zhang wrote: > Hi Marek, > > On Thu, Apr 10, 2014 at 1:32 AM, Marek Vasut wrote: > > On Thursday, March 27, 2014 at 09:52:33 AM, Sonic Zhang wrote: > >> From: Sonic Zhang > >> > >> Move architecture independant crc header file out of the blackfi

Re: [uml/do_xor_speed] WARNING: CPU: 0 PID: 1 at init/main.c:708 do_one_initcall()

2014-04-10 Thread Boaz Harrosh
On 04/10/2014 09:53 AM, Fengguang Wu wrote: > Hi Boaz, > > I catch the below warning again in > > git://git.open-osd.org/linux-open-osd.git raid6 > OK Thanks. Daa I thought I fixed it but I forgot the obvious problem. I pushed a new tree I think it might be good this time. (finally) Thanks Bo