Re: [PATCH 10/11] crypto: sun4i-ss: fix large block size support

2017-05-29 Thread Antoine Tenart
Hi Maxime, On Mon, May 29, 2017 at 10:29:31AM +0200, Maxime Ripard wrote: > On Mon, May 29, 2017 at 10:09:44AM +0200, Antoine Tenart wrote: > > > Which speed are the SS clocks ? > > > > The AHB SS clk is running at 300 MHz and the SS clk at 150 MHz. SS clk > > is at the expected rate but the AHB

Re: [PATCH 10/11] crypto: sun4i-ss: fix large block size support

2017-05-29 Thread Maxime Ripard
On Mon, May 29, 2017 at 10:09:44AM +0200, Antoine Tenart wrote: > > Which speed are the SS clocks ? > > The AHB SS clk is running at 300 MHz and the SS clk at 150 MHz. SS clk > is at the expected rate but the AHB SS clk has a higher rate that what's > expected. > > In the probing function only

Re: [PATCH 10/11] crypto: sun4i-ss: fix large block size support

2017-05-29 Thread Antoine Tenart
Hi Corentin, On Fri, May 26, 2017 at 04:55:01PM +0200, Corentin Labbe wrote: > On Wed, May 24, 2017 at 09:06:51PM +0200, Antoine Tenart wrote: > > > > + /* > > +* The datasheet isn't very clear about when to retrieve the digest. The > > +* bit SS_DATA_END is cleared when the engine

Re: [PATCH 10/11] crypto: sun4i-ss: fix large block size support

2017-05-26 Thread Corentin Labbe
On Wed, May 24, 2017 at 09:06:51PM +0200, Antoine Tenart wrote: > The run-time self-tests fail quite early, as soon as the input block > size is larger than 64 bytes: > > alg: hash: Test 4 failed for sha1-sun4i-ss > : b9 c9 1e 52 c0 26 d8 39 81 ff f2 3c 99 b1 27 b2 > 0010: 30 d6

[PATCH 10/11] crypto: sun4i-ss: fix large block size support

2017-05-24 Thread Antoine Tenart
The run-time self-tests fail quite early, as soon as the input block size is larger than 64 bytes: alg: hash: Test 4 failed for sha1-sun4i-ss : b9 c9 1e 52 c0 26 d8 39 81 ff f2 3c 99 b1 27 b2 0010: 30 d6 c9 85 One thing to notice is the value of the last word, which is the one