How to enable CAAM accelerating in OP-TEE on i.MX7-Dual processors?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to enable CAAM accelerating in OP-TEE on i.MX7-Dual processors?

873 次查看
RainbowTrout
Contributor I

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.

标签 (3)
标记 (1)
0 项奖励
3 回复数

846 次查看
igorpadykov
NXP Employee
NXP Employee

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

0 项奖励

825 次查看
RainbowTrout
Contributor I

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.

 

 

   

0 项奖励

816 次查看
igorpadykov
NXP Employee
NXP Employee

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://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y

 

Best regards
igor

0 项奖励