verify caam driver are really utilized

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

verify caam driver are really utilized

983件の閲覧回数
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.

ラベル(1)
タグ(2)
2 返答(返信)

744件の閲覧回数
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

744件の閲覧回数
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