[PATCH] i.MX8M: crypto: disable JR0 in SPL, U-Boot

Fabio Estevam festevam at gmail.com
Wed Jun 8 16:52:59 CEST 2022


Hi Gaurav,

On Wed, Jun 8, 2022 at 10:56 AM Fabio Estevam <festevam at gmail.com> wrote:

> Thanks for your patch.
>
> With your patch applied, I can use the NXP TF-A lf_v2.4 successfully:
> no more CAAM sha256 errors are seen when launching a fitImage.
>
> Tested on a imx8mm-evk.
>
> Tested-by: Fabio Estevam <festevam at denx.de>

I noticed a different issue when using the NXP TF-A lf_v2.4: There is
a job ring probe error in the kernel (upstream 5.15.43):

# dmesg | grep jr
[    2.449204] caam_jr 30901000.jr: failed to flush job ring 0
[    2.454867] caam_jr: probe of 30901000.jr failed with error -5

This problem does not happen if I use NXP TF-A imx_5.4.47_2.2.0 version.

If I disable sec_jr0 in the Linux devicetree, then the error does not happen.

Should U-Boot disable sec_jr0 of the Linux devicetree too?

What is a proper solution for this issue?

Thanks,

Fabio Estevam


More information about the U-Boot mailing list