CAAM test application for iMX6

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

CAAM test application for iMX6

Jump to solution
10,963 Views
jeminmorabia
Contributor II

How can I test CAAM features on imx6 platforms. Is there any sample application that can use CAAM features.

How can I integrate CAAM h/w acceleration with OpenSSL?

Labels (5)
Tags (1)
1 Solution
3,897 Views
Yuri
NXP Employee
NXP Employee

1.

For CAAM, please use the patches, available on Freescales public GIT server at the following link:

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_3.0.35_4.0.0

Direct link to the patches:

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/?h=imx_3.0.35_4.0.0&id=6068d7a77b2101c172fc2f003f90b1febbf99505

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/?h=imx_3.0.35_4.0.0&id=b30237c79003223c6e8035d5be183cd4f0b469f9

2.

As known, the AF_ALG family provides the user-space interface for the kernel crypto API. While a kernel (2.6.38 and later)

supports the AF_ALG socket interface, various third-party cryptodev implementations are also available.

Here are some links to a couple of starting points:

http://carnivore.it/2011/04/23/openssl_-_af_alg

http://home.gna.org/cryptodev-linux/

http://ocf-linux.sourceforge.net/

The enclosed is implementaion from Dipen Patel.

View solution in original post

8 Replies
3,897 Views
jeminmorabia
Contributor II

Hi,

     Can you provide me that patches. I can place service request for that if required.

     When can we expect new release of Linux BSP for imx6 platforms.

0 Kudos
3,897 Views
Yuri
NXP Employee
NXP Employee

I do not have the mentioned patches, perhaps it would be better to issue a SR.

0 Kudos
3,897 Views
DipenPatel1z
Contributor III

Hi Yuri,

To continue with Jemin's original request, we also tried test procedure mentioned in imx-test-3.0.35-4.0.0 under caam test. But we do not see interrupt counter increment. caam-jr.0 is only incremented to 3 when the driver is loaded during system boot. After that no update whatever test you do.

FYI.

We are building crypto and caam drivers as kernel integrated. And only test crypt is build as a module (tcrypt.ko).

  • Please clarify if the method mentioned in imx-test-3.0.35-4.0.0 is valid for i.MX6 Solo.
  • OpenSSL plugin:

          We tried this as well but no luck. Has it been tested to work with CAAM? If yes do we need to enable any specific options in kernel and/or openSSL?

  • Next Release: What is a planned date for next BSP release with all CAAM patches integrated? It will help us plan our work accordingly.

Regards,

Dipen Patel

3,898 Views
Yuri
NXP Employee
NXP Employee

1.

For CAAM, please use the patches, available on Freescales public GIT server at the following link:

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_3.0.35_4.0.0

Direct link to the patches:

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/?h=imx_3.0.35_4.0.0&id=6068d7a77b2101c172fc2f003f90b1febbf99505

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/?h=imx_3.0.35_4.0.0&id=b30237c79003223c6e8035d5be183cd4f0b469f9

2.

As known, the AF_ALG family provides the user-space interface for the kernel crypto API. While a kernel (2.6.38 and later)

supports the AF_ALG socket interface, various third-party cryptodev implementations are also available.

Here are some links to a couple of starting points:

http://carnivore.it/2011/04/23/openssl_-_af_alg

http://home.gna.org/cryptodev-linux/

http://ocf-linux.sourceforge.net/

The enclosed is implementaion from Dipen Patel.

3,897 Views
jeminmorabia
Contributor II

Thanks   for all your support.

0 Kudos
3,897 Views
Yuri
NXP Employee
NXP Employee

Only IPSEC has been tested (with the recent patches). As for OpenSSL - I do not have information if this
has been tested with the i.MX6 CAAM.

3,897 Views
Yuri
NXP Employee
NXP Employee

The following is stated 

"Freescale has  some patches that address the CAAM driver crash.

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

in the next thread


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

So, CAAM driver is not fully working in the recent release, it makes sense to wait

next BSP release or, please apply to local Freescale FAE for the patches.

0 Kudos
3,897 Views
jeminmorabia
Contributor II

I tried AF_ALG plugin for openssl. But there was no change in openssl response. Means there was no performance improvement.

Interrupt count in /proc/interrupt is also not increasing form camm-jr during Openssl AF_ALG test. How can I test using h/w acceleration?

0 Kudos