Hi,

I installed cryptodev 1.7 on my Debian box running on Marvell Feroceon
processor (featuring mv_cesa hardware accelerator). I'm running debian
wheezy with openssl_1.0.1e (with enabled cryptodev and the two recommended
patches) and kernel 3.16 from backports.

My problem is that SHA1 acceleration doesn't seem to work, while it should
be supported by the engine.

>From /proc/crypto:

name         : sha1
driver       : mv-sha1
module       : mv_cesa
priority     : 300
refcnt       : 1
selftest     : unknown
type         : ahash
async        : yes
blocksize    : 64
digestsize   : 20

If I run ./sha_speed in tests I always get the sha1-asm fallback driver,
instead of mv-sha1.

cryptodev-linux-1.7/tests# ./sha_speed
Testing SHA1 Hash:
requested hash CRYPTO_SHA1, got sha1 with driver sha1-asm

Similarly, testing with openssl -evp speed sha1 does not show any
improvement.

If I set verbosity to 3, that's what I get in dmesg when attempting sha1:

[222287.705223] cryptodev: sha_speed[6709] (cryptodev_open:480): allocated
new item at df5eb260
[14 more]
[222287.705331] cryptodev: sha_speed[6709] (cryptodev_open:480): allocated
new item at df5eb3e0
[222287.705338] cryptodev: sha_speed[6709] (cryptodev_open:485): Cryptodev
handle initialised, 16 elements in queue
[222287.721595] cryptodev: sha_speed[6709] (crypto_create_session:284): got
alignmask 0
[222287.721608] cryptodev: sha_speed[6709] (crypto_create_session:287):
preallocating for 32 user pages
[222304.213713] cryptodev: sha_speed[6709] (get_userbuf:186): failed to get
user pages for data input
[222304.222739] cryptodev: sha_speed[6709] (__crypto_run_zc:174): Error
getting user pages. Falling back to non zero copy.
[222304.242060] cryptodev: sha_speed[6709] (cryptodev_release:519): freeing
item at df5eb3e0
[14 more]
[222304.242161] cryptodev: sha_speed[6709] (cryptodev_release:519): freeing
item at df5eb260
[222304.242169] cryptodev: sha_speed[6709] (crypto_destroy_session:341):
Removed session 0x0A5727D2
[222304.242180] cryptodev: sha_speed[6709] (crypto_destroy_session:344):
freeing space for 32 user pages
[222304.242188] cryptodev: sha_speed[6709] (cryptodev_release:541):
Cryptodev handle deinitialised, 16 elements freed

aes-128-cbc works very well.

I would appreciate hints on how I should get to the bottom of this.

Thanks,
Jan
_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to