verify caam driver are really utilized

cancel
Showing results for 
Search instead for 
Did you mean: 

verify caam driver are really utilized

375 Views
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

136 Views
NXP TechSupport
NXP TechSupport

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

136 Views
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