I compiled and tested both 0.7 and git
(ad67bbd1ae0b366455c9ca61334399930fc43ae2); I can successfully use the
example programs and the CESA crypto engine of my openrd board is used
(I can see it from the speedup and /proc/interrupts).
I refreshed the patches included in extra/ and compiled
openssl-0.9.8o; the cryptodev engine is built, but if I try openssl
speed aes -engine cryptodev, the hardware engine is not used (no
speedup and interrupts not increasing for mv_crypto).
Here is a dmesg excerpt; the  crypto_create_session and
crypto_destroy_session happens before the actual speed test; I poked a
bit with gdb and it happens in cryptodev_engine_ciphers(); but I can't
figure the problem.

[55078.984259] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37fcc0
[55078.984274] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f000
[55078.984286] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f9c0
[55078.984297] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37fc00
[55078.984308] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f780
[55078.984319] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f180
[55078.984330] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f840
[55078.984342] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f480
[55078.984353] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f600
[55078.984364] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f900
[55078.984375] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f540
[55078.984386] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37fe40
[55078.984398] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37fa80
[55078.984409] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37f6c0
[55078.984420] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37fd80
[55078.984431] cryptodev: openssl[30016]: cryptodev_open: allocated
new item at dc37ff00
[55078.984443] cryptodev: openssl[30016]: Cryptodev handle
initialised, 16 elements in queue
[55078.984734] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55078.984767] cryptodev: openssl[30016]: Removed session 0x62A587D1
[55078.984779] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55078.984797] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55078.984831] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55078.984857] cryptodev: openssl[30016]: Removed session 0xB313ED3A
[55078.984869] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55078.984884] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55078.984907] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55078.984931] cryptodev: openssl[30016]: Removed session 0xF8E50133
[55078.984943] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55078.984956] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55078.985212] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55078.985238] cryptodev: openssl[30016]: Removed session 0xD6A18076
[55078.985250] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55078.985268] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55078.985310] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55078.985335] cryptodev: openssl[30016]: Removed session 0x39AA3882
[55078.985347] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55078.985361] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55079.003282] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55079.003316] cryptodev: openssl[30016]: Removed session 0x9E449D71
[55079.003328] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55079.003345] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55079.003379] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55079.003405] cryptodev: openssl[30016]: Removed session 0x8BDEDBD2
[55079.003417] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55079.003431] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55079.003455] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55079.003479] cryptodev: openssl[30016]: Removed session 0xBAEE554D
[55079.003490] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55079.003503] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55079.003758] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55079.003783] cryptodev: openssl[30016]: Removed session 0xAA750D28
[55079.003795] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55079.003812] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55079.003854] cryptodev: openssl[30016]: crypto_create_session:
preallocating for 32 user pages
[55079.003879] cryptodev: openssl[30016]: Removed session 0x73F7AF84
[55079.003890] cryptodev: openssl[30016]: Usage in Bytes: enc=0,
dec=0,                  max=0, avg=0, cnt=0
[55079.003904] cryptodev: openssl[30016]: crypto_destroy_session:
freeing space for 32 user pages
[55124.081277] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37ff00
[55124.081292] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37fd80
[55124.081303] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f6c0
[55124.081314] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37fa80
[55124.081325] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37fe40
[55124.081336] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f540
[55124.081347] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f900
[55124.081358] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f600
[55124.081369] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f480
[55124.081380] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f840
[55124.081391] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f180
[55124.081402] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f780
[55124.081413] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37fc00
[55124.081424] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f9c0
[55124.081435] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37f000
[55124.081446] cryptodev: openssl[30016]: cryptodev_release: freeing
item at dc37fcc0
[55124.081458] cryptodev: openssl[30016]: Cryptodev handle
deinitialised, 16 elements freed

Do you have any clue?

Thanks,

Luca

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

Reply via email to