]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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)
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]

index 52aa8758701fd87b84f5b401f9d134530de58b50..57ca28edb70d227e737803c3b410c006e0fe11d3 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright 2020-2022 Toradex
  */
 
+#include "imx7s-u-boot.dtsi"
+
 &{/aliases} {
        /* SDHCI instance order: eMMC, SD/MMC */
        mmc0 = &usdhc3;
index 67b41ae1129cf69a2671c0ac6b239588da2ca624..843b4583e53aed5c6132bf7ceff42f79a38dc67a 100644 (file)
@@ -1,3 +1,5 @@
+#include "imx7s-u-boot.dtsi"
+
 /{
     aliases {
         mmc0 = &usdhc3;
index 62cdcbaeb67d1044a9cff32df2bcbb5c339cbc31..896c8bcaa5ad0253af341e2bbfb5658650520bf2 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright 2018 NXP
  */
 
+#include "imx7s-u-boot.dtsi"
+
 &qspi {
        flash0: mx25l51245g@0 {
                compatible = "jedec,spi-nor";
index ac1d6e2e648016ee71750a3a53cec0c11346aaea..e4a27b8dd5aa73489f4487589e800b621f8422f6 100644 (file)
@@ -1,3 +1,5 @@
+#include "imx7s-u-boot.dtsi"
+
 &fec2 {
        status = "disable";
 };
diff --git a/arch/arm/dts/imx7d-smegw01-u-boot.dtsi b/arch/arm/dts/imx7d-smegw01-u-boot.dtsi
new file mode 100644 (file)
index 0000000..90f7500
--- /dev/null
@@ -0,0 +1,3 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+#include "imx7s-u-boot.dtsi"
diff --git a/arch/arm/dts/imx7s-u-boot.dtsi b/arch/arm/dts/imx7s-u-boot.dtsi
new file mode 100644 (file)
index 0000000..c4c1da3
--- /dev/null
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+
+&crypto {
+       sec_jr0: jr@1000 {
+               status = "disabled";
+       };
+};