Tegra234 fabric fixes
Subsystems (2)
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
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
@@ -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
Re: [PATCH 1/2] arm64: tegra: fix typo in Tegra234 dce-fabric compatible
Quoted 6 lines · Ivy Huang
From: Sumit Gupta <[email protected]>
Fix typo in the compatible string of Tegra234 dce-fabric.
Signed-off-by Sumit Gupta <[email protected]>Signed-off-by Ivy Huang <[email protected]>
Re: [PATCH 1/2] arm64: tegra: fix typo in Tegra234 dce-fabric compatible
In reply to Ivy HuangQuoted 15 lines · Ivy Huang
From: Sumit Gupta <[email protected]>
Fix typo in the compatible string of Tegra234 dce-fabric.
Signed-off-by Sumit Gupta <[email protected]>Signed-off-by Ivy Huang <[email protected]>--- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/nvidia/tegra234.dtsi +0
-0
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'.
Thierry, do you want to apply the fixes tag when merging? Could also be a candidate for stable.
Otherwise ...
Jon
Signature · 1 line
nvpublic
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.
Signed-off-by Sumit Gupta <[email protected]>Signed-off-by Ivy Huang <[email protected]>--- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/nvidia/tegra234.dtsi +0
-0arch/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 ...
Reviewed-by Jon Hunter <[email protected]>Jon
Signature · 1 line
nvpublic
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@@ -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
Re: [PATCH 1/2] arm64: tegra: fix typo in Tegra234 dce-fabric compatible
In reply to Ivy HuangQuoted 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
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.
PATCH 2/2 arm64: tegra: disable Tegra234 sce-fabric node
In reply to Ivy HuangFrom: 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
@@ -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
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
Signed-off-by Sumit Gupta <[email protected]>Signed-off-by Ivy Huang <[email protected]>
Re: [PATCH 2/2] arm64: tegra: disable Tegra234 sce-fabric node
In reply to Ivy HuangQuoted 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.
Signed-off-by Sumit Gupta <[email protected]>Signed-off-by Ivy Huang <[email protected]>--- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/nvidia/tegra234.dtsi +0
-0
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 ...
Otherwise ...
Jon
Signature · 1 line
nvpublic
Re: [PATCH 2/2] arm64: tegra: disable Tegra234 sce-fabric node
In reply to Ivy HuangQuoted 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.
Signed-off-by Sumit Gupta <[email protected]>Signed-off-by Ivy Huang <[email protected]>--- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/nvidia/tegra234.dtsi +0
-0
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
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.