Hello NXP,
We are running linux-imx 6.6.36 on our custom hardware. The kernel throws the following bug at boot up :
11.037497] caam algorithms registered in /proc/crypto
[ 11.043580] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
[ 11.051276] caam 30900000.crypto: rng crypto API alg registered prng-caam
[ 11.058214] caam 30900000.crypto: registering rng-caam
[ 11.063516] caam_jr 30902000.jr: job ring error: irqstate: 00000103
[ 11.069865] ------------[ cut here ]------------
[ 11.074488] kernel BUG at /drivers/crypto/caam/jr.c:286!
[ 11.079803] Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
[ 11.086593] Modules linked in: caam_jr(+) caamkeyblob_desc caamhash_desc caamalg_desc crypto_engine authenc libdes crct10dif_ce polyval_ce polyval_generic snd_soc_imx_card secvio caam error snd_soc_fsl_sai snd_soc_fsl_utils imx_pcm_dma imx_sdma leds_gpio overlay snd_usb_audio snd_hwdep snd_usbmidi_lib snd_ump
When we disable the CAAM RNG (by un-setting CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API) the kernel boots up normally.
We are using the original imx8_v8_defconfig with no further modifications. We also made sure that JR1 security setting is the same as what is set at IMX-ATF by reading address :