]> git.ipfire.org Git - thirdparty/u-boot.git/commit
imx7: Disable CAAM Job Ring 0
authorFabio Estevam <festevam@denx.de>
Tue, 12 Sep 2023 15:11:00 +0000 (12:11 -0300)
committerStefano Babic <sbabic@denx.de>
Sat, 23 Sep 2023 16:45:34 +0000 (18:45 +0200)
commit45651a3d6910b780095d2e31bf299acbf33b95bf
treeb4c326ed3e2c8f1be31e84c7fe6fafce3b0fd127
parent5ae4f74a1b9908fdde1d2b58fdb5d617bf41b51b
imx7: Disable CAAM Job Ring 0

Trying to boot a fitImage after a successful hab_auth_img operation
causes the following error:

 ## Loading kernel from FIT Image at 88000000 ...
   Using 'conf-imx7d-smegw01.dtb' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x8800010c
     Data Size:    9901752 Bytes = 9.4 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80800000
     Entry Point:  0x80800000
     Hash algo:    sha256
     Hash value:   28f8779bbf010780f16dd3d84ecb9b604c44c5c2cf7acd098c264a2d3f68e969
   Verifying Hash Integrity ... sha256Error in SEC deq
   CAAM was not setup properly or it is faulty error!

The reason for this error is that the BootROM uses the CAAM Job Ring 0,
so disable its node in U-Boot to avoid the resource conflict.

imx8m dtsi files also have the Job Ring 0 disable since the following
kernel commit:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch?h=v6.5&id=dc9c1ceb555ff661e6fc1081434600771f29657c

For a temporary solution, disable the Job Ring 0 in imx7s-u-boot.dtsi.

Reported-by: Eduard Strehlau <eduard@lionizers.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
arch/arm/dts/imx7d-colibri-eval-v3-u-boot.dtsi
arch/arm/dts/imx7d-pico-pi-u-boot.dtsi
arch/arm/dts/imx7d-sdb-qspi-u-boot.dtsi
arch/arm/dts/imx7d-sdb-u-boot.dtsi
arch/arm/dts/imx7d-smegw01-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/imx7s-u-boot.dtsi [new file with mode: 0644]