Skip to contentSkip to conversation

Tegra234 fabric fixes

PATCH Applied Ivy Huang 3 participants 6 messages Dec 18, 2024 – Jan 9, 2025

Subsystems (3)
lore
Share & tools
lore

Ivy Huang

author
#0 lore raw

v2 cover Tegra234 fabric fixes

From: Yi Ju Huang <[email protected]>

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

v2:
- Add explanation why typo fix is needed
- Add fixes and CC stable

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.25.1
author
#1 lore raw

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

From: Sumit Gupta <[email protected]>

The compatible string for the Tegra DCE fabric is currently defined as 'nvidia,tegra234-sce-fabric' but this is incorrect because this is the compatible string for SCE fabric. Update the compatible for the DCE fabric to correct the compatible string.

This compatible needs to be correct in order for the interconnect to catch things such as improper data accesses.

Fixes 302e154000ec ("arm64: tegra: Add node for CBB 2.0 on Tegra234")
---
 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 @@ bpmp-fabric@d600000 {
 		};
 
 		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.25.1
Reviewed-by on v2 1/2
#2 lore raw

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

Quoted 7 lines · Ivy Huang

From: Sumit Gupta <[email protected]>

The compatible string for the Tegra DCE fabric is currently defined as 'nvidia,tegra234-sce-fabric' but this is incorrect because this is the compatible string for SCE fabric. Update the compatible for the DCE fabric to correct the compatible string.

Quoted 7 lines

This compatible needs to be correct in order for the interconnect to catch things such as improper data accesses.

Fixes 302e154000ec ("arm64: tegra: Add node for CBB 2.0 on Tegra234")
author
#3 lore raw

PATCH v2 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.

Fixes 302e154000ec ("arm64: tegra: Add node for CBB 2.0 on Tegra234")
---
 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 @@ sce-fabric@b600000 {
 			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.25.1
Reviewed-by on v2 2/2
#4 lore raw

Re: [PATCH v2 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 4 lines
Fixes 302e154000ec ("arm64: tegra: Add node for CBB 2.0 on Tegra234")

I think disabling this block is the right thing to do. No need to remove it entirely. While at the moment I do not expect it to be used, I don't think anyone could say with certainty that it will never be used again.

#5 lore raw
In reply to Ivy Huang

From: Thierry Reding <[email protected]>

Quoted 9 lines · Ivy Huang

From: Yi Ju Huang <[email protected]>

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

v2:
- Add explanation why typo fix is needed
- Add fixes and CC stable

[...]

Applied, thanks!

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

      commit: 604120fd9e9df50ee0e803d3c6e77a1f45d2c58e
[2/2] arm64: tegra: disable Tegra234 sce-fabric node
      commit: a5e6fc0a10fe280989f1367a3b4f8047c7d00ea6

Best regards,

Signature · 1 line
Thierry Reding <[email protected]>