Hi everyone,
I've been working on i.MX7-Dual processor with a secured encryption/decryption module. However, when I'm looking at the xtest speed test results, I found that the speed of AES encrypt/decrypt was only around 1 MB/s (which doesn't match the speed of the sensor's CAAM accelerated speed). Is there any way I can know for sure that CAAM acceleration is enabled on this OP-TEE environment, and if it's not enabled, how can I enable the CAAM support for it?
Thanks.
Hi Liang
answer from internal team:
-------------
I believe CAAM is enabled in the BSP by default for i.MX7D, thus the xtest should be utilizing CAAM interface for accelerated crypto algorithms. Could you confirm if there is any activity in the JR interrupts in /proc/interrupts when xtest is run?
Which BSP version is being used?
-------------
for /proc/interrupts usage one can look for example on
https://source.codeaurora.org/external/imx/imx-test/tree/test/caam/doc?h=lf-5.10.52_2.1.0
Best regards
igor
Hi Igor,
I don't see any number increase in the /proc/interrupts while running the command.
The command was: xtest --aes-perf -k 256 -l 100 -r -s 4096 -v
The only changes in the /proc/interrupts are:
arch_timer, i.MX Timer Tick, 30be0000.ethernet, Timer broadcast interrupts, Rescheduling interrupts.
Also, what is BSP version in your definition? I don't have any idea what is that. Is it the BSP chip ID?
Thanks.
Hi Liang
>what is BSP version in your definition? I don't have any idea what is that. Is it the BSP chip ID?
please look at official nxp linux documentation and try latest linux L5.10.52_2.1.0 from
source.codeaurora.org/external/imx/linux-imx repository :
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y
Best regards
igor