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

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

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

1,219 Views
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.

Labels (3)
Tags (1)
0 Kudos
Reply
3 Replies

1,192 Views
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 Kudos
Reply

1,171 Views
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 Kudos
Reply

1,162 Views
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 Kudos
Reply