Skip to contentSkip to conversation

Tegra234 fabric fixes

PATCH Superseded Ivy Huang 5 participants 13 messages Dec 13, 2024 – Dec 18, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ivy Huang

author
#0 lore raw

cover Tegra234 fabric fixes

From: Yi Ju Huang <[email protected]>

These patches fix issues related to sce-fabric and dce-fabric nodes of Tegra234.

Sumit Gupta (2):
arm64: tegra: fix typo in Tegra234 dce-fabric compatible
arm64: tegra: disable Tegra234 sce-fabric node

 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 1/2 arm64: tegra: fix typo in Tegra234 dce-fabric compatible

From: Sumit Gupta <[email protected]>

Fix typo in the compatible string of Tegra234 dce-fabric.

---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +1 -1
index 984c85eab41a..d08faf6bb505 100644
@@ -3995,7 +3995,7 @@
 		};
 
 		dce-fabric@de00000 {
-			compatible = "nvidia,tegra234-sce-fabric";
+			compatible = "nvidia,tegra234-dce-fabric";
 			reg = <0x0 0xde00000 0x0 0x40000>;
 			interrupts = <GIC_SPI 381 IRQ_TYPE_LEVEL_HIGH>;
 			status = "okay";
Signature · 1 line
2.17.1
maintainer Reviewed-by on v1 1/2
#3 lore raw

Re: [PATCH 1/2] arm64: tegra: fix typo in Tegra234 dce-fabric compatible

In reply to Ivy Huang
Quoted 15 lines · Ivy Huang

From: Sumit Gupta <[email protected]>

Fix typo in the compatible string of Tegra234 dce-fabric.

---
  arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +0 -0
index 984c85eab41a..d08faf6bb505 100644

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 4001

Quoted 8 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +1 -1
@@ -3995,7 +3995,7 @@
  		};
 
  		dce-fabric@de00000 {
-			compatible = "nvidia,tegra234-sce-fabric";
+			compatible = "nvidia,tegra234-dce-fabric";
  			reg = <0x0 0xde00000 0x0 0x40000>;
  			interrupts = <GIC_SPI 381 IRQ_TYPE_LEVEL_HIGH>;
  			status = "okay";

LGTM! However, we are missing a 'Fixes' tag. We should add the following above the 'signed-off-by'.

Fixes 302e154000ec ("arm64: tegra: Add node for CBB 2.0 on Tegra234")

Thierry, do you want to apply the fixes tag when merging? Could also be a candidate for stable.

Otherwise ...

Jon

Signature · 1 line
nvpublic
#4 lore raw

Re: [PATCH 1/2] arm64: tegra: fix typo in Tegra234 dce-fabric compatible

Quoted 29 lines · Jon Hunter
Quoted 15 lines · Ivy Huang

From: Sumit Gupta <[email protected]>

Fix typo in the compatible string of Tegra234 dce-fabric.

---
  arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +0 -0
index 984c85eab41a..d08faf6bb505 100644

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 4000

Quoted 7 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +1 -1
@@ -3995,7 +3995,7 @@
  		};
  		dce-fabric@de00000 {
-			compatible = "nvidia,tegra234-sce-fabric";
+			compatible = "nvidia,tegra234-dce-fabric";
  			reg = <0x0 0xde00000 0x0 0x40000>;
  			interrupts = <GIC_SPI 381 IRQ_TYPE_LEVEL_HIGH>;
  			status = "okay";

LGTM! However, we are missing a 'Fixes' tag. We should add the following above the 'signed-off-by'.

Quoted 4 lines
Fixes 302e154000ec ("arm64: tegra: Add node for CBB 2.0 on Tegra234")

Thierry, do you want to apply the fixes tag when merging? Could also be a candidate for stable.

Yeah, I can add the fixes tag, no need to resend. That should also take care of it getting picked up into stable automatically.

Thierry

Quoted 9 lines

Otherwise ...

Jon

Signature · 1 line
nvpublic
#5 lore raw

Re: [PATCH 1/2] arm64: tegra: fix typo in Tegra234 dce-fabric compatible

Quoted 18 lines · Thierry Reding
Quoted 18 lines

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 4000

Quoted 13 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +1 -1
index 984c85eab41a..d08faf6bb505 100644
@@ -3995,7 +3995,7 @@
  		};
  		dce-fabric@de00000 {
-			compatible = "nvidia,tegra234-sce-fabric";
+			compatible = "nvidia,tegra234-dce-fabric";
  			reg = <0x0 0xde00000 0x0 0x40000>;
  			interrupts = <GIC_SPI 381 IRQ_TYPE_LEVEL_HIGH>;
  			status = "okay";

LGTM! However, we are missing a 'Fixes' tag. We should add the following above the 'signed-off-by'.

Quoted 7 lines
Quoted 4 lines
Fixes 302e154000ec ("arm64: tegra: Add node for CBB 2.0 on Tegra234")

Thierry, do you want to apply the fixes tag when merging? Could also be a candidate for stable.

Yeah, I can add the fixes tag, no need to resend. That should also take care of it getting picked up into stable automatically.

No, this changed some days ago. If this is a real fix which should go to stable, then with proper explanation what is the bug and how it affects users, you need cc-stable tag.

Best regards,
Krzysztof

#6 lore raw

Re: [PATCH 1/2] arm64: tegra: fix typo in Tegra234 dce-fabric compatible

In reply to Ivy Huang
Quoted 3 lines · Ivy Huang

From: Sumit Gupta <[email protected]>

Fix typo in the compatible string of Tegra234 dce-fabric.

In what way fix? How does it affect users?

Why no fixes tag?

You CC-ed an address, which suggests you do not work on mainline kernel or you do not use get_maintainers.pl/b4/patman. Please rebase and always work on mainline or start using mentioned tools, so correct addresses will be used.

Best regards,
Krzysztof

#7 lore raw

Re: [PATCH 1/2] arm64: tegra: fix typo in Tegra234 dce-fabric compatible

Quoted 3 lines · Krzysztof Kozlowski

In what way fix? How does it affect users?

Why no fixes tag?

Thanks for the review. Ivy has addressed these in v2.

author
#8 lore raw

PATCH 2/2 arm64: tegra: disable Tegra234 sce-fabric node

In reply to Ivy Huang

From: Sumit Gupta <[email protected]>

Access to safety cluster engine (SCE) fabric registers was blocked by firewall after the introduction of Functional Safety Island in Tegra234. After that, any access by software to SCE registers is correctly resulting in the internal bus error. However, when CPUs try accessing the SCE-fabric registers to print error info, another firewall error occurs as the fabric registers are also firewall protected. This results in a second error to be printed. Disable the SCE fabric node to avoid printing the misleading error. The first error info will be printed by the interrupt from the fabric causing the actual access.

---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +1 -1
index d08faf6bb505..05a771ab1ed5 100644
@@ -3815,7 +3815,7 @@
 			compatible = "nvidia,tegra234-sce-fabric";
 			reg = <0x0 0xb600000 0x0 0x40000>;
 			interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
-			status = "okay";
+			status = "disabled";
 		};
 
 		rce-fabric@be00000 {
Signature · 1 line
2.17.1
Reviewed-by on v1 2/2
#9 lore raw

Re: [PATCH 2/2] arm64: tegra: disable Tegra234 sce-fabric node

Quoted 13 lines · Ivy Huang

From: Sumit Gupta <[email protected]>

Access to safety cluster engine (SCE) fabric registers was blocked by firewall after the introduction of Functional Safety Island in Tegra234. After that, any access by software to SCE registers is correctly resulting in the internal bus error. However, when CPUs try accessing the SCE-fabric registers to print error info, another firewall error occurs as the fabric registers are also firewall protected. This results in a second error to be printed. Disable the SCE fabric node to avoid printing the misleading error. The first error info will be printed by the interrupt from the fabric causing the actual access.

Quoted 2 lines
maintainer Reviewed-by on v1 2/2
#10 lore raw

Re: [PATCH 2/2] arm64: tegra: disable Tegra234 sce-fabric node

In reply to Ivy Huang
Quoted 24 lines · Ivy Huang

From: Sumit Gupta <[email protected]>

Access to safety cluster engine (SCE) fabric registers was blocked by firewall after the introduction of Functional Safety Island in Tegra234. After that, any access by software to SCE registers is correctly resulting in the internal bus error. However, when CPUs try accessing the SCE-fabric registers to print error info, another firewall error occurs as the fabric registers are also firewall protected. This results in a second error to be printed. Disable the SCE fabric node to avoid printing the misleading error. The first error info will be printed by the interrupt from the fabric causing the actual access.

---
  arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +0 -0
index d08faf6bb505..05a771ab1ed5 100644

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 3821

Quoted 8 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +1 -1
@@ -3815,7 +3815,7 @@
  			compatible = "nvidia,tegra234-sce-fabric";
  			reg = <0x0 0xb600000 0x0 0x40000>;
  			interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
-			status = "okay";
+			status = "disabled";
  		};
 
  		rce-fabric@be00000 {

We need the same fixes tag on this one as well ...

Fixes 302e154000ec ("arm64: tegra: Add node for CBB 2.0 on Tegra234")

Otherwise ...

Jon

Signature · 1 line
nvpublic
#11 lore raw

Re: [PATCH 2/2] arm64: tegra: disable Tegra234 sce-fabric node

In reply to Ivy Huang
Quoted 24 lines · Ivy Huang

From: Sumit Gupta <[email protected]>

Access to safety cluster engine (SCE) fabric registers was blocked by firewall after the introduction of Functional Safety Island in Tegra234. After that, any access by software to SCE registers is correctly resulting in the internal bus error. However, when CPUs try accessing the SCE-fabric registers to print error info, another firewall error occurs as the fabric registers are also firewall protected. This results in a second error to be printed. Disable the SCE fabric node to avoid printing the misleading error. The first error info will be printed by the interrupt from the fabric causing the actual access.

---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +0 -0
index d08faf6bb505..05a771ab1ed5 100644

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 3821

Quoted 8 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +1 -1
@@ -3815,7 +3815,7 @@
 			compatible = "nvidia,tegra234-sce-fabric";
 			reg = <0x0 0xb600000 0x0 0x40000>;
 			interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
-			status = "okay";
+			status = "disabled";
 		};
 
 		rce-fabric@be00000 {

Hm... so what's the purpose of having this here if we can't use it? Are there cases where we might want to access this? For example, could some firmware *not* firewall this in some use-case, and would we want to use this for error reporting in such cases?

I don't have a strong opinion on keeping this while being disabled. It is a fairly small node, so it doesn't hurt much from that point of view, but overall this patch seems like it's taking the easy way out.

For example if there's ever a case where we might want to use this, then there should be some other entity (UEFI?) setting status = "disabled" at runtime. Or perhaps it should be setting status = "okay" if it is not firewalled. Generally if there's no mechanism that would ever change status from "disabled" to "okay" at runtime, there's really no point in having the node in DT.

Thierry

#12 lore raw

Re: [PATCH 2/2] arm64: tegra: disable Tegra234 sce-fabric node

Quoted 4 lines · Thierry Reding

Hm... so what's the purpose of having this here if we can't use it? Are there cases where we might want to access this? For example, could some firmware *not* firewall this in some use-case, and would we want to use this for error reporting in such cases?

Given that this has changed once, it has hard to say definitively whether it might ever change again. I think keeping it around in a disabled state is reasonable.

I also find it typical that most things in the soc.dtsi are disabled by default such that they are enabled as needed by upper layers.