Re: [PATCH V2 1/2] crypto: Add Imagination Technologies hw hash accelerator

2015-01-28 Thread James Hartley
On 01/28/15 00:56, Herbert Xu wrote: On Wed, Jan 28, 2015 at 12:29:29AM +, James Hartley wrote: - If it is mandatory to impement a fallback driver (because the potential users of the framework would not know only digest is supported?) Yes it is mandatory. If I need to implement fallbac

Re: [PATCH V2 1/2] crypto: Add Imagination Technologies hw hash accelerator

2015-01-27 Thread Herbert Xu
On Wed, Jan 28, 2015 at 12:29:29AM +, James Hartley wrote: > > - If it is mandatory to impement a fallback driver (because the > potential users of the framework would not know only digest is > supported?) Yes it is mandatory. > If I need to implement fallback drivers, would the Niagra2 SPU

Re: [PATCH V2 1/2] crypto: Add Imagination Technologies hw hash accelerator

2015-01-27 Thread James Hartley
On 01/28/15 00:01, James Hartley wrote: > > +struct img_hash_request_ctx { > > +struct img_hash_dev*hdev; > > +u8 digest[SHA256_DIGEST_SIZE] __aligned(sizeof(u32)); > > +unsigned longflags; > > +size_tdigsize; > > + > > +dma_addr_tdma_addr; > >

RE: [PATCH V2 1/2] crypto: Add Imagination Technologies hw hash accelerator

2014-11-24 Thread James Hartley
robh...@kernel.org; > gre...@linuxfoundation.org; linux-crypto@vger.kernel.org; > devicet...@vger.kernel.org; pawel.m...@arm.com; > mark.rutl...@arm.com; ijc+devicet...@hellion.org.uk; > ga...@codeaurora.org; Ezequiel Garcia; abres...@chromium.org > Subject: Re: [PATCH V2 1/2] crypto

Re: [PATCH V2 1/2] crypto: Add Imagination Technologies hw hash accelerator

2014-11-20 Thread Herbert Xu
On Tue, Nov 18, 2014 at 08:48:46PM +, James Hartley wrote: > > +struct img_hash_request_ctx { > + struct img_hash_dev *hdev; > + u8 digest[SHA256_DIGEST_SIZE] __aligned(sizeof(u32)); > + unsigned long flags; > + size_t digsize; > + > + dma_addr

[PATCH V2 1/2] crypto: Add Imagination Technologies hw hash accelerator

2014-11-18 Thread James Hartley
This adds support for the Imagination Technologies hash accelerator which provides hardware acceleratopm for SHA1 SHA224 SHA256 and MD5 hashes. Signed-off-by: James Hartley --- MAINTAINERS |5 + drivers/crypto/Kconfig| 14 + drivers/crypto/Makefile |1 + drivers/cry