CAAM error in non-secure linux kernel

cancel
Showing results for 
Search instead for 
Did you mean: 

CAAM error in non-secure linux kernel

661 Views
Contributor III

Dear freescale team.

I have questions about CAAM in i.mx6qsabreauto board.

I changed linux kernel to work in non-secure mode. of course, modified CSU to access peripherals in non-secure kernel.

But it occurs caam errors when booting kernel.

I think that i need to configure "Job Ring MID Register (JRMIDR)", "DECO MID Register (DECOxMID)"  in the guide of IMX6DQ6SDLSRM_security.pdf

i really don't know how to configure it well. it's not easy to understand the pdf guide file.

if i'm right,  is thers some  reference code?

And i saw "ls1021x_config_caam_stream_id()" in u-boot.

It says for supporting for initializing CAAM's stream id.

I'm not sure but the function is for adjusting JRMIDR, DECOxMID values?

Thank you.

0 Kudos
3 Replies

15 Views
NXP TechSupport
NXP TechSupport

Hello,

  I hope the following helps How to read/write CAAM registers in non-secure world kernel?

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

15 Views
Contributor III

Hello Yuri.

Thanks for your supports.

I'm still having same problems with the link that you attached.

I also have set the CSU_CSL17 register to 0x00ff00ff so that CAAM can be accessible in both non-secure and secure worlds.

and MPROTx values is as bellow :

0207C000 : 0x77777777 0x77777777

0217C000 : 0x77777777 0x77777777

But all of register values of caam are 0 in svc/non-secure mode.

i can see correct register values only in secure mode.

I have set the CSU and AIPTZ registers values.

wonder that caam might work with non-secure mode in imx6.

what is the problem ? could you give some guides in detailed ?

Have a great day

0 Kudos

15 Views
Contributor I

Hello MyungJin:

I have the same problem as you. Have you solved it?

0 Kudos