2016. február 17., szerda 18:16:09 UTC+1 időpontban txsa...@gmail.com a 
következőt írta:
> Hi
> 
> I have a Cubieboard2 device, is Allwinner A20 SOC, running and Armbian 5.00 
> with kernel 4.4.1.
> 
> As in the latest version the sun4i-ss module is added, i tried the hardware 
> crypto acceleration with my 2 TB LUKS encrypted HDD, with 256bit 
> AES-CBC-PLAIN64 encryption.
> 
> It was fast, but i noticed that when playing videos from that HDD, there are 
> random errors coming from somewhere. As the same happened when streaming the 
> video on DLNA, and SAMBA, i did some tests.
> 
> As the HDD is also used for a backup storage, i compared the original files 
> with the backup on the encrypted HDD, and the most of the bigger files were 
> different.
> 
> So i've unloaded sun4i-ss module with "rmmod sun4i_ss" and everything become 
> OK, no video errors, the backup and the original files are identical.
> 
> So there is something wrong with this module, as i see only the decryption 
> side is faulty, the encryption seems to be OK.
> 
> Any suggestions?

Cryptsetup version 1.6.1

dmesg:

[ 5042.093569] sun4i-ss 1c15000.crypto-engine: no reset control found
[ 5042.095143] sun4i-ss 1c15000.crypto-engine: Die ID 0

@cubieboard2:~$ lsmod
Module                  Size  Used by
sun4i_ss               14914  0
twofish_generic         6583  0
twofish_common         13322  1 twofish_generic
serpent_generic        21658  0
algif_skcipher          7280  0
af_alg                  4666  1 algif_skcipher
cpufreq_userspace       1417  0
bnep                    9892  2
rfcomm                 30514  0
bluetooth             299193  10 bnep,rfcomm
rfkill                  9328  2 bluetooth
dm_crypt               16841  1
dm_mod                 82842  3 dm_crypt
sun4i_codec            10303  3
snd_soc_core          102678  1 sun4i_codec
snd_pcm_dmaengine       2943  1 snd_soc_core
dwmac_sunxi             2239  0
snd_pcm                69300  2 snd_soc_core,snd_pcm_dmaengine
evdev                  11268  0
sun4i_ts                3798  0
nvmem_sunxi_sid         2359  0
nvmem_core              7504  1 nvmem_sunxi_sid
snd_timer              17780  1 snd_pcm
fuse                   72800  0
snd                    41799  5 snd_soc_core,snd_timer,snd_pcm
cpufreq_dt              4010  0
thermal_sys            36472  2 cpufreq_dt,sun4i_ts
soundcore                858  1 snd
uio_pdrv_genirq         2908  0
uio                     6784  1 uio_pdrv_genirq
bonding                94395  0

I've compiled af_alg_test, now what params should i use?

i did this: /cryptotest-master/af_alg$ ./af_alg_test aes check
INFO: len=4096
INFO: len=8192
...

and this: cubieboard2:~/cryptotest-master/af_alg$ ./af_alg_test aes 5
INFO: ./af_alg_test will do 5.000000 request
aes 5.000000 requests of 16 in 1771.000000us (0.001771s) 0.002823r/us 
2.823264r/ms 2823.263672r/s
aes 5.000000 requests of 32 in 1352.000000us (0.001352s) 0.003698r/us 
3.698225r/ms 3698.224854r/s
aes 5.000000 requests of 64 in 1286.000000us (0.001286s) 0.003888r/us 
3.888025r/ms 3888.024902r/s

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to