Activating CAAM HW acceleration in linux kernel on i.mx6

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

Activating CAAM HW acceleration in linux kernel on i.mx6

4,352 Views
jean-michelhaut
Contributor I

Hi all !

I am starting to work with an i.mx6 evaluation board and I can't activate CAAM in my linux kernel configuration.
It depends on the KConfig option "FSL_SOC" and this option is effectively not selected for the i.mx processors.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/crypto/caam/Kconfig?id=...

config CRYPTO_DEV_FSL_CAAM
  tristate "Freescale CAAM-Multicore driver backend"
  depends on FSL_SOC

Is it intended ?

Thanks in advance !

JM

0 Kudos
4 Replies

1,217 Views
ravikiran
Contributor II

I also found same problem with Linux Kernel which I am using. Its strange & a obvious Bug :smileysad:

0 Kudos

1,217 Views
SergioSolis
NXP Employee
NXP Employee

Hello Jean-Michel

By default, CAAM is disabled. If you want to use CAAM module, please specify

"caam" to the kernel command line.

CAAM uses ALT7 mode of pad GPIO_0, which conflicts with any othermodule that using pad GPIO_0 on the board.

On this board CAAM conflicts with audio codec (WM8962) and camera(ov5642) module.

So, it is needed to rebuild kernel in order to disable the codec and the cam.

Next, to see CAAM activities, please use /proc/interrupts of Linux.

Finally, the following community thread may be usefull

Freescale has some patches that address the CAAM driver crash.

These patches will hopefully be included in the next BSP update.

https://community.freescale.com/message/335389#335389

0 Kudos

1,217 Views
adnana
Contributor I

I have removed audio codec (WM8962) and camera(ov5642) module from kernel configs.

Appended 'caam=1' to kernel bootparm.

I still don't see any caam activity in kernel. :smileysad:

0 Kudos

1,217 Views
Yuri
NXP Employee
NXP Employee
0 Kudos