PROBLEM: SHA1 on Allwinner V3s failed

Martin Cerveny martin at c-home.cz
Wed Aug 26 07:33:20 EDT 2020


Hello.

On Wed, 26 Aug 2020, Corentin Labbe wrote:
> On Wed, Aug 26, 2020 at 09:52:30AM +0200, Martin Cerveny wrote:
>> Hello.
>>
>> [1.] One line summary of the problem:
>>
>> SHA1 on Allwinner V3s failed
>>
> Since only SHA1 is failling, could you try to use the "allwinner,sun8i-a33-crypto", just in case V3s has the same SHA1 HW quirck than A33.

Yes. This do the trick. All startup verification passes now.
Performance (SHA1 with sha1-sun4i-ss) "tcrypt mode=303 sec=1" test output attached.
So, all seems to be working now. Released new patch with possibility to merge.

https://github.com/mcerveny/linux/commit/e3c76436de3d8cd2b2ddaeadef879a4a4d723bf4

Regards, Martin
-------------- next part --------------
root at LicheePi:~# modprobe tcrypt mode=303 sec=1
[  805.268559] 
[  805.268559] testing speed of async sha1 (sha1-sun4i-ss)
[  805.275328] tcrypt: test  0 (   16 byte blocks,   16 bytes per update,   1 updates): 
[  806.267406] 276773 opers/sec,   4428368 bytes/sec
[  806.285278] tcrypt: test  1 (   64 byte blocks,   16 bytes per update,   4 updates):  99795 opers/sec,   6386880 bytes/sec
[  807.289657] tcrypt: test  2 (   64 byte blocks,   64 bytes per update,   1 updates): 
[  808.287405] 231719 opers/sec,  14830016 bytes/sec
[  808.301256] tcrypt: test  3 (  256 byte blocks,   16 bytes per update,  16 updates):  34739 opers/sec,   8893184 bytes/sec
[  809.309432] tcrypt: test  4 (  256 byte blocks,   64 bytes per update,   4 updates):  48023 opers/sec,  12293888 bytes/sec
[  810.321278] tcrypt: test  5 (  256 byte blocks,  256 bytes per update,   1 updates): 
[  811.317406] 160908 opers/sec,  41192448 bytes/sec
[  811.331305] tcrypt: test  6 ( 1024 byte blocks,   16 bytes per update,  64 updates):   9532 opers/sec,   9760768 bytes/sec
[  812.339284] tcrypt: test  7 ( 1024 byte blocks,  256 bytes per update,   4 updates):  34069 opers/sec,  34886656 bytes/sec
[  813.349521] tcrypt: test  8 ( 1024 byte blocks, 1024 bytes per update,   1 updates): 
[  814.347421]  70941 opers/sec,  72643584 bytes/sec
[  814.361855] tcrypt: test  9 ( 2048 byte blocks,   16 bytes per update, 128 updates):   4842 opers/sec,   9916416 bytes/sec
[  815.369768] tcrypt: test 10 ( 2048 byte blocks,  256 bytes per update,   8 updates):  18401 opers/sec,  37685248 bytes/sec
[  816.379266] tcrypt: test 11 ( 2048 byte blocks, 1024 bytes per update,   2 updates):  31379 opers/sec,  64264192 bytes/sec
[  817.389438] tcrypt: test 12 ( 2048 byte blocks, 2048 bytes per update,   1 updates): 
[  818.387415]  40628 opers/sec,  83206144 bytes/sec
[  818.401043] tcrypt: test 13 ( 4096 byte blocks,   16 bytes per update, 256 updates):   2443 opers/sec,  10006528 bytes/sec
[  819.410140] tcrypt: test 14 ( 4096 byte blocks,  256 bytes per update,  16 updates):   9480 opers/sec,  38830080 bytes/sec
[  820.419393] tcrypt: test 15 ( 4096 byte blocks, 1024 bytes per update,   4 updates):  16538 opers/sec,  67739648 bytes/sec
[  821.429463] tcrypt: test 16 ( 4096 byte blocks, 4096 bytes per update,   1 updates): 
[  822.427447]  21943 opers/sec,  89878528 bytes/sec
[  822.441182] tcrypt: test 17 ( 8192 byte blocks,   16 bytes per update, 512 updates):   1227 opers/sec,  10051584 bytes/sec
[  823.449987] tcrypt: test 18 ( 8192 byte blocks,  256 bytes per update,  32 updates):   4814 opers/sec,  39436288 bytes/sec
[  824.459435] tcrypt: test 19 ( 8192 byte blocks, 1024 bytes per update,   8 updates):   8501 opers/sec,  69640192 bytes/sec
[  825.469466] tcrypt: test 20 ( 8192 byte blocks, 4096 bytes per update,   2 updates):  10547 opers/sec,  86401024 bytes/sec
[  826.479285] tcrypt: test 21 ( 8192 byte blocks, 8192 bytes per update,   1 updates): 
[  827.477474]  11424 opers/sec,  93585408 bytes/sec
modprobe: ERROR: could not insert 'tcrypt': Resource temporarily unavailable



More information about the linux-arm-kernel mailing list