Skip to contentSkip to conversation

arm64: dts: ti: k3-am62p-mcu/wakeup: Disable MCU and wakeup R5FSS nodes

PATCH Applied Vaishnav Achath 5 participants 8 messages Jan 21, 2024 – Feb 6, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: ti: k3-am62p-mcu/wakeup: Disable MCU and wakeup R5FSS nodes

K3 Remoteproc R5 driver requires reserved memory carveouts and mailbox configuration to instantiate the cores successfully. Since this is a board level dependency, keep the R5 subsytem disabled at SoC dtsi, otherwise it results in probe errors like below during AM62P SK boot:

r5fss@79000000: reserved memory init failed, ret = -22 r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 r5fss@78000000: reserved memory init failed, ret = -22 r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22

Fixes b5080c7c1f7e ("arm64: dts: ti: k3-am62p: Add nodes for more IPs")
---
 arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi    | 2 ++
 arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 1 +
 2 files changed, 3 insertions(+)
arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi +2 -0
index c4b0b91d70cf..14eb9ba836d3 100644
@@ -187,6 +187,8 @@ mcu_r5fss0: r5fss@79000000 {
 		ranges = <0x79000000 0x00 0x79000000 0x8000>,
 			 <0x79020000 0x00 0x79020000 0x8000>;
 		power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+
 		mcu_r5fss0_core0: r5f@79000000 {
 			compatible = "ti,am62-r5f";
 			reg = <0x79000000 0x00008000>,
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +1 -0
index 19f42b39394e..10a7059b2d9b 100644
@@ -78,6 +78,7 @@ wkup_r5fss0: r5fss@78000000 {
 		ranges = <0x78000000 0x00 0x78000000 0x8000>,
 			 <0x78100000 0x00 0x78100000 0x8000>;
 		power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
 
 		wkup_r5fss0_core0: r5f@78000000 {
 			compatible = "ti,am62-r5f";
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

Hello Vaishnav,

Quoted 6 lines · Vaishnav Achath

K3 Remoteproc R5 driver requires reserved memory carveouts and mailbox configuration to instantiate the cores successfully. Since this is a board level dependency, keep the R5 subsytem disabled at SoC dtsi, otherwise it results in probe errors like below during AM62P SK boot:

Quoted 8 lines

r5fss@79000000: reserved memory init failed, ret = -22 r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 r5fss@78000000: reserved memory init failed, ret = -22 r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22

Fixes b5080c7c1f7e ("arm64: dts: ti: k3-am62p: Add nodes for more IPs")
Quoted 23 lines
---
  arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi    | 2 ++
  arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 1 +
  2 files changed, 3 insertions(+)
arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi +2 -0
index c4b0b91d70cf..14eb9ba836d3 100644
@@ -187,6 +187,8 @@ mcu_r5fss0: r5fss@79000000 {
  		ranges = <0x79000000 0x00 0x79000000 0x8000>,
  			 <0x79020000 0x00 0x79020000 0x8000>;
  		power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+
  		mcu_r5fss0_core0: r5f@79000000 {
  			compatible = "ti,am62-r5f";
  			reg = <0x79000000 0x00008000>,
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +0 -0
index 19f42b39394e..10a7059b2d9b 100644

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi wkup_r5fss0: r5fss@78000000 { · line 84

Quoted 7 lines
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +1 -0
@@ -78,6 +78,7 @@ wkup_r5fss0: r5fss@78000000 {
  		ranges = <0x78000000 0x00 0x78000000 0x8000>,
  			 <0x78100000 0x00 0x78100000 0x8000>;
  		power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
 
  		wkup_r5fss0_core0: r5f@78000000 {
  			compatible = "ti,am62-r5f";

Thanks.

maintainer
#2 lore raw
Quoted 39 lines · Jayesh Choudhary

Hello Vaishnav,

Quoted 6 lines · Vaishnav Achath

K3 Remoteproc R5 driver requires reserved memory carveouts and mailbox configuration to instantiate the cores successfully. Since this is a board level dependency, keep the R5 subsytem disabled at SoC dtsi, otherwise it results in probe errors like below during AM62P SK boot:

Quoted 8 lines

r5fss@79000000: reserved memory init failed, ret = -22 r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 r5fss@78000000: reserved memory init failed, ret = -22 r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22

Fixes b5080c7c1f7e ("arm64: dts: ti: k3-am62p: Add nodes for more IPs")
Quoted 19 lines
---
  arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi    | 2 ++
  arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 1 +
  2 files changed, 3 insertions(+)
arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi +2 -0
index c4b0b91d70cf..14eb9ba836d3 100644
@@ -187,6 +187,8 @@ mcu_r5fss0: r5fss@79000000 {
  		ranges = <0x79000000 0x00 0x79000000 0x8000>,
  			 <0x79020000 0x00 0x79020000 0x8000>;
  		power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+
  		mcu_r5fss0_core0: r5f@79000000 {
  			compatible = "ti,am62-r5f";
  			reg = <0x79000000 0x00008000>,
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +0 -0
Quoted 8 lines

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi wkup_r5fss0: r5fss@78000000 { · line 81

Quoted 8 lines

index 19f42b39394e..10a7059b2d9b 100644

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +1 -0
@@ -78,6 +78,7 @@ wkup_r5fss0: r5fss@78000000 {
  		ranges = <0x78000000 0x00 0x78000000 0x8000>,
  			 <0x78100000 0x00 0x78100000 0x8000>;
  		power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";

Is there a reason for difference in white space addition?

Quoted 4 lines

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi wkup_r5fss0: r5fss@78000000 { · line 84

Quoted 2 lines
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +0 -0
  		wkup_r5fss0_core0: r5f@78000000 {
  			compatible = "ti,am62-r5f";

Thanks.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#3 lore raw

Hi Nishanth,

Quoted 42 lines · Nishanth Menon
Quoted 41 lines · Jayesh Choudhary

Hello Vaishnav,

Quoted 6 lines · Vaishnav Achath

K3 Remoteproc R5 driver requires reserved memory carveouts and mailbox configuration to instantiate the cores successfully. Since this is a board level dependency, keep the R5 subsytem disabled at SoC dtsi, otherwise it results in probe errors like below during AM62P SK boot:

Quoted 8 lines

r5fss@79000000: reserved memory init failed, ret = -22 r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 r5fss@78000000: reserved memory init failed, ret = -22 r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22

Fixes b5080c7c1f7e ("arm64: dts: ti: k3-am62p: Add nodes for more IPs")
Quoted 21 lines
---
   arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi    | 2 ++
   arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 1 +
   2 files changed, 3 insertions(+)
arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi +2 -0
index c4b0b91d70cf..14eb9ba836d3 100644
@@ -187,6 +187,8 @@ mcu_r5fss0: r5fss@79000000 {
   		ranges = <0x79000000 0x00 0x79000000 0x8000>,
   			 <0x79020000 0x00 0x79020000 0x8000>;
   		power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+
   		mcu_r5fss0_core0: r5f@79000000 {
   			compatible = "ti,am62-r5f";
   			reg = <0x79000000 0x00008000>,
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +0 -1
index 19f42b39394e..10a7059b2d9b 100644
--- a/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi
Quoted 9 lines
Quoted 6 lines

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi wkup_r5fss0: r5fss@78000000 { · line 81

Quoted 6 lines

+++ b/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +1 -0
@@ -78,6 +78,7 @@ wkup_r5fss0: r5fss@78000000 {
   		ranges = <0x78000000 0x00 0x78000000 0x8000>,
   			 <0x78100000 0x00 0x78100000 0x8000>;
   		power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";

Is there a reason for difference in white space addition?

For mcu_r5fss0_core0 child node there was no blank line as per the recommended coding style : https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/dts-coding-style.rst#n124

So I added a newline there and wkup_r5fss0 already had it correct, since the change was trivial it was not mentioned in commit message.

Thanks and Regards,
Vaishnav

Quoted 5 lines
Quoted 4 lines

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi wkup_r5fss0: r5fss@78000000 { · line 84

Quoted 2 lines
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +0 -0
   		wkup_r5fss0_core0: r5f@78000000 {
   			compatible = "ti,am62-r5f";

Thanks.

maintainer
#4 lore raw
Quoted 29 lines · Vaishnav Achath

Hi Nishanth,

Quoted 26 lines · Nishanth Menon
Quoted 25 lines · Jayesh Choudhary

Hello Vaishnav,

Quoted 6 lines · Vaishnav Achath

K3 Remoteproc R5 driver requires reserved memory carveouts and mailbox configuration to instantiate the cores successfully. Since this is a board level dependency, keep the R5 subsytem disabled at SoC dtsi, otherwise it results in probe errors like below during AM62P SK boot:

Quoted 8 lines

r5fss@79000000: reserved memory init failed, ret = -22 r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 r5fss@78000000: reserved memory init failed, ret = -22 r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22

Fixes b5080c7c1f7e ("arm64: dts: ti: k3-am62p: Add nodes for more IPs")
Quoted 5 lines
---
   arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi    | 2 ++
   arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 1 +
   2 files changed, 3 insertions(+)
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi mcu_r5fss0: r5fss@79000000 { · line 191

Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi +2 -0
index c4b0b91d70cf..14eb9ba836d3 100644
@@ -187,6 +187,8 @@ mcu_r5fss0: r5fss@79000000 {
   		ranges = <0x79000000 0x00 0x79000000 0x8000>,
   			 <0x79020000 0x00 0x79020000 0x8000>;
   		power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+

^^ Look here.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi +0 -0
   		mcu_r5fss0_core0: r5f@79000000 {
   			compatible = "ti,am62-r5f";
   			reg = <0x79000000 0x00008000>,
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +0 -0
index 19f42b39394e..10a7059b2d9b 100644
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi wkup_r5fss0: r5fss@78000000 { · line 81

Quoted 7 lines
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +1 -0
@@ -78,6 +78,7 @@ wkup_r5fss0: r5fss@78000000 {
   		ranges = <0x78000000 0x00 0x78000000 0x8000>,
   			 <0x78100000 0x00 0x78100000 0x8000>;
   		power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";

^^ no white space here.

Quoted 8 lines
Quoted 2 lines

Is there a reason for difference in white space addition?

For mcu_r5fss0_core0 child node there was no blank line as per the
recommended coding style : https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/dts-coding-style.rst#n124

So I added a newline there and wkup_r5fss0 already had it correct, since the change was trivial it was not mentioned in commit message.

Sigh, please add a EoL here to keep the look consistent between mcu and wakeup dtsis. there is no need to state in commit message.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
maintainer Reviewed-by
#5 lore raw
In reply to Vaishnav Achath
Quoted 55 lines · Vaishnav Achath

Hi Nishanth,

Quoted 42 lines · Nishanth Menon
Quoted 41 lines · Jayesh Choudhary

Hello Vaishnav,

Quoted 6 lines · Vaishnav Achath

K3 Remoteproc R5 driver requires reserved memory carveouts and mailbox configuration to instantiate the cores successfully. Since this is a board level dependency, keep the R5 subsytem disabled at SoC dtsi, otherwise it results in probe errors like below during AM62P SK boot:

Quoted 8 lines

r5fss@79000000: reserved memory init failed, ret = -22 r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 r5fss@78000000: reserved memory init failed, ret = -22 r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22

Fixes b5080c7c1f7e ("arm64: dts: ti: k3-am62p: Add nodes for more IPs")
Quoted 21 lines
---
   arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi    | 2 ++
   arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 1 +
   2 files changed, 3 insertions(+)
arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi +2 -0
index c4b0b91d70cf..14eb9ba836d3 100644
@@ -187,6 +187,8 @@ mcu_r5fss0: r5fss@79000000 {
   		ranges = <0x79000000 0x00 0x79000000 0x8000>,
   			 <0x79020000 0x00 0x79020000 0x8000>;
   		power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+
   		mcu_r5fss0_core0: r5f@79000000 {
   			compatible = "ti,am62-r5f";
   			reg = <0x79000000 0x00008000>,
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +0 -1
index 19f42b39394e..10a7059b2d9b 100644
--- a/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi
Quoted 9 lines
Quoted 6 lines

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi wkup_r5fss0: r5fss@78000000 { · line 81

Quoted 6 lines

+++ b/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi

arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +1 -0
@@ -78,6 +78,7 @@ wkup_r5fss0: r5fss@78000000 {
   		ranges = <0x78000000 0x00 0x78000000 0x8000>,
   			 <0x78100000 0x00 0x78100000 0x8000>;
   		power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";

Is there a reason for difference in white space addition?

Quoted 6 lines

For mcu_r5fss0_core0 child node there was no blank line as per the
recommended coding style : https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/dts-coding-style.rst#n124

So I added a newline there and wkup_r5fss0 already had it correct, since the change was trivial it was not mentioned in commit message.

For some reason i was misled to think that the EoL spacing was messed up. Looking at
https://lore.kernel.org/all/[email protected]/ i realise it is being fixed properly in the patch. Oops.. my bad.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#6 lore raw
In reply to Vaishnav Achath

Am 21.01.24 um 14:40 schrieb Vaishnav Achath:

Quoted 10 lines

K3 Remoteproc R5 driver requires reserved memory carveouts and mailbox configuration to instantiate the cores successfully. Since this is a board level dependency, keep the R5 subsytem disabled at SoC dtsi, otherwise it results in probe errors like below during AM62P SK boot:

r5fss@79000000: reserved memory init failed, ret = -22 r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 r5fss@78000000: reserved memory init failed, ret = -22 r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22

Shouldn't we have a similar patch for the am64 R5 cores?

Quoted 34 lines
Fixes b5080c7c1f7e ("arm64: dts: ti: k3-am62p: Add nodes for more IPs")
---
  arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi    | 2 ++
  arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 1 +
  2 files changed, 3 insertions(+)
arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi +2 -0
index c4b0b91d70cf..14eb9ba836d3 100644
@@ -187,6 +187,8 @@ mcu_r5fss0: r5fss@79000000 {
  		ranges = <0x79000000 0x00 0x79000000 0x8000>,
  			 <0x79020000 0x00 0x79020000 0x8000>;
  		power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+
  		mcu_r5fss0_core0: r5f@79000000 {
  			compatible = "ti,am62-r5f";
  			reg = <0x79000000 0x00008000>,
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +1 -0
index 19f42b39394e..10a7059b2d9b 100644
@@ -78,6 +78,7 @@ wkup_r5fss0: r5fss@78000000 {
  		ranges = <0x78000000 0x00 0x78000000 0x8000>,
  			 <0x78100000 0x00 0x78100000 0x8000>;
  		power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
 
  		wkup_r5fss0_core0: r5f@78000000 {
  			compatible = "ti,am62-r5f";
maintainer Applied
#7 lore raw
In reply to Vaishnav Achath

Hi Vaishnav Achath,

Quoted 6 lines · Vaishnav Achath

K3 Remoteproc R5 driver requires reserved memory carveouts and mailbox configuration to instantiate the cores successfully. Since this is a board level dependency, keep the R5 subsytem disabled at SoC dtsi, otherwise it results in probe errors like below during AM62P SK boot:

Quoted 6 lines

r5fss@79000000: reserved memory init failed, ret = -22 r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 r5fss@78000000: reserved memory init failed, ret = -22 r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22

[...]

I have applied the following to branch ti-k3-dts-next on [1]. Thank you!

[1/1] arm64: dts: ti: k3-am62p-mcu/wakeup: Disable MCU and wakeup R5FSS nodes

      commit: dfc90e5f1a0fe0f8124521bc1911e38aa6cd9118

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh