verify caam driver are really utilized

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

verify caam driver are really utilized

968 Views
giuliodominutti
Contributor III

I enabled cryptodev on my imx6UL and I'm interested to understand if caam driver are really utilized or not by my dm-crypt. I added some print in api to verify that the algorithm selected is the one corresponding to the caam, but I'm still not sure that at the end that driver is really used to accelerate my encryption. Can you suggest me a better place or variable to print when really a caam driver is used?

When I use cryptsetup to create a new encrypted partition I can see that there are differences between having mounted  the cryptodev module or not. With the module the algorithm selected is one of caam, otherwise the selected one is a generic algorithm. I'm not sure that caam is used because I can't see any performance difference.

Labels (1)
Tags (2)
2 Replies

729 Views
igorpadykov
NXP Employee
NXP Employee

Hi

for caam verification also one can look at steps provided in unit tests:

imx-test (../caam)
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz

Best regards
igor

729 Views
marius_grigoras
NXP Employee
NXP Employee

Hi,

To make sure that CAAM was called, Job Ring (JR1) interrupts number must have been incremented.

You can use ps -ef command or something like before and after your calls or multiple times to see the differences.

pastedImage_1.png

Thank you,

Marius