Skip to contentSkip to conversation

Switch MAIN R5F clusters to Split-mode for TI K3 Platforms

PATCH Applied Beleswar Padhi 2 participants 9 messages Aug 26, 2024 – Aug 28, 2024

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

v3 cover Switch MAIN R5F clusters to Split-mode for TI K3 Platforms

TI's K3 Platforms (J7200-EVM, J721E-EVM, J721E-SK, J721S2-EVM, AM68-SK, J784S4-EVM, AM69-SK) have multiple R5F clusters in the MAIN domain. All of these clusters are configured for LockStep mode at the moment. Switch all of these R5F clusters to Split mode by default to maximize the number of R5F cores.

v3: Changelog:
* Nishanth
1) Refactored changes to board level DTS files instead of SoC level dtsi files.

Link to v2:
https://lore.kernel.org/all/[email protected]/

v2: Changelog:
1) Update commit messages to drop "Lockstep-mode" as default mode for early booted remoteprocs.

Link to v1:
https://lore.kernel.org/all/[email protected]/

Beleswar Padhi (7):
arm64: dts: ti: k3-j7200-som-p0: Switch MAIN R5F cluster to Split-mode
arm64: dts: ti: k3-j721e-som-p0: Switch MAIN R5F clusters to
Split-mode
arm64: dts: ti: k3-j721e-sk: Switch MAIN R5F clusters to Split-mode
arm64: dts: ti: k3-j721s2-som-p0: Switch MAIN R5F clusters to
Split-mode
arm64: dts: ti: k3-am68-sk-som: Switch MAIN R5F clusters to Split-mode
arm64: dts: ti: k3-j784s4-evm: Switch MAIN R5F clusters to Split-mode
arm64: dts: ti: k3-am69-sk: Switch MAIN R5F clusters to Split-mode

 arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi   |  8 ++++++++
 arch/arm64/boot/dts/ti/k3-am69-sk.dts        | 12 ++++++++++++
 arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi  |  4 ++++
 arch/arm64/boot/dts/ti/k3-j721e-sk.dts       |  8 ++++++++
 arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi  |  8 ++++++++
 arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi |  8 ++++++++
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts     | 12 ++++++++++++
 7 files changed, 60 insertions(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/7 arm64: dts: ti: k3-j7200-som-p0: Switch MAIN R5F cluster to Split-mode

The TI J7200 EVM board has one R5F cluster in the MAIN domain, and it is configured for LockStep mode at the moment. Switch the MAIN R5F cluster to Split mode by default to maximize the number of R5F cores.

---
 arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi +4 -0
index 89b68325e4e2..deb380a83ea1 100644
@@ -262,6 +262,10 @@ &mcu_r5fss0_core1 {
 			<&mcu_r5fss0_core1_memory_region>;
 };
 
+&main_r5fss0 {
+	ti,cluster-mode = <0>;
+};
+
 &main_r5fss0_core0 {
 	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
 	memory-region = <&main_r5fss0_core0_dma_memory_region>,
Signature · 1 line
2.34.1
#2 lore raw

PATCH v3 2/7 arm64: dts: ti: k3-j721e-som-p0: Switch MAIN R5F clusters to Split-mode

In reply to Beleswar Padhi

The TI J721E EVM board has two R5F clusters in the MAIN domain, and both of these are configured for LockStep mode at the moment. Switch both of these R5F clusters to Split mode by default to maximize the number of R5F cores.

---
 arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi +8 -0
index 5ba947771b84..cf606846e341 100644
@@ -561,6 +561,14 @@ &mcu_r5fss0_core1 {
 			<&mcu_r5fss0_core1_memory_region>;
 };
 
+&main_r5fss0 {
+	ti,cluster-mode = <0>;
+};
+
+&main_r5fss1 {
+	ti,cluster-mode = <0>;
+};
+
 &main_r5fss0_core0 {
 	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
 	memory-region = <&main_r5fss0_core0_dma_memory_region>,
Signature · 1 line
2.34.1
#3 lore raw

PATCH v3 3/7 arm64: dts: ti: k3-j721e-sk: Switch MAIN R5F clusters to Split-mode

In reply to Beleswar Padhi

The TI J721E SK board has two R5F clusters in the MAIN domain, and both of these are configured for LockStep mode at the moment. Switch both of these R5F clusters to Split mode by default to maximize the number of R5F cores.

---
 arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/ti/k3-j721e-sk.dts +8 -0
index 89fbfb21e5d3..1896218fe038 100644
@@ -1311,6 +1311,14 @@ &mcu_r5fss0_core1 {
 			<&mcu_r5fss0_core1_memory_region>;
 };
 
+&main_r5fss0 {
+	ti,cluster-mode = <0>;
+};
+
+&main_r5fss1 {
+	ti,cluster-mode = <0>;
+};
+
 &main_r5fss0_core0 {
 	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
 	memory-region = <&main_r5fss0_core0_dma_memory_region>,
Signature · 1 line
2.34.1
#4 lore raw

PATCH v3 4/7 arm64: dts: ti: k3-j721s2-som-p0: Switch MAIN R5F clusters to Split-mode

In reply to Beleswar Padhi

The TI J721S2 EVM board has two R5F clusters in the MAIN domain, and both of these are configured for LockStep mode at the moment. Switch both of these R5F clusters to Split mode by default to maximize the number of R5F cores.

---
 arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi +8 -0
index 36136db26a47..92109b88e257 100644
@@ -516,6 +516,14 @@ &mcu_r5fss0_core1 {
 			<&mcu_r5fss0_core1_memory_region>;
 };
 
+&main_r5fss0 {
+	ti,cluster-mode = <0>;
+};
+
+&main_r5fss1 {
+	ti,cluster-mode = <0>;
+};
+
 &main_r5fss0_core0 {
 	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
 	memory-region = <&main_r5fss0_core0_dma_memory_region>,
Signature · 1 line
2.34.1
#5 lore raw

PATCH v3 5/7 arm64: dts: ti: k3-am68-sk-som: Switch MAIN R5F clusters to Split-mode

In reply to Beleswar Padhi

The TI AM68 SK board has two R5F clusters in the MAIN domain, and both of these are configured for LockStep mode at the moment. Switch both of these R5F clusters to Split mode by default to maximize the number of R5F cores.

---
 arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi +8 -0
index 5c66e0ec6e82..4800f956bf12 100644
@@ -302,6 +302,14 @@ &mcu_r5fss0_core1 {
 			<&mcu_r5fss0_core1_memory_region>;
 };
 
+&main_r5fss0 {
+	ti,cluster-mode = <0>;
+};
+
+&main_r5fss1 {
+	ti,cluster-mode = <0>;
+};
+
 &main_r5fss0_core0 {
 	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
 	memory-region = <&main_r5fss0_core0_dma_memory_region>,
Signature · 1 line
2.34.1
#6 lore raw

PATCH v3 6/7 arm64: dts: ti: k3-j784s4-evm: Switch MAIN R5F clusters to Split-mode

In reply to Beleswar Padhi

The TI J784S4 EVM board has three R5F clusters in the MAIN domain, and all of these are configured for LockStep mode at the moment. Switch all of these R5F clusters to Split mode by default to maximize the number of R5F cores.

---
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +12 -0
index ffa38f41679d..58d550a1ac17 100644
@@ -1154,6 +1154,18 @@ &mcu_r5fss0_core1 {
 			<&mcu_r5fss0_core1_memory_region>;
 };
 
+&main_r5fss0 {
+	ti,cluster-mode = <0>;
+};
+
+&main_r5fss1 {
+	ti,cluster-mode = <0>;
+};
+
+&main_r5fss2 {
+	ti,cluster-mode = <0>;
+};
+
 &main_r5fss0_core0 {
 	status = "okay";
 	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
Signature · 1 line
2.34.1
#7 lore raw

PATCH v3 7/7 arm64: dts: ti: k3-am69-sk: Switch MAIN R5F clusters to Split-mode

In reply to Beleswar Padhi

The TI AM69 SK board has three R5F clusters in the MAIN domain, and all of these are configured for LockStep mode at the moment. Switch all of these R5F clusters to Split mode by default to maximize the number of R5F cores.

---
 arch/arm64/boot/dts/ti/k3-am69-sk.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/ti/k3-am69-sk.dts +12 -0
index 3f655852244e..ad6570c51a68 100644
@@ -979,6 +979,18 @@ &mcu_r5fss0_core1 {
 			<&mcu_r5fss0_core1_memory_region>;
 };
 
+&main_r5fss0 {
+	ti,cluster-mode = <0>;
+};
+
+&main_r5fss1 {
+	ti,cluster-mode = <0>;
+};
+
+&main_r5fss2 {
+	ti,cluster-mode = <0>;
+};
+
 &main_r5fss0_core0 {
 	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
 	memory-region = <&main_r5fss0_core0_dma_memory_region>,
Signature · 1 line
2.34.1
maintainer Applied
#8 lore raw
In reply to Beleswar Padhi

Hi Beleswar Padhi,

Quoted 11 lines · Beleswar Padhi

TI's K3 Platforms (J7200-EVM, J721E-EVM, J721E-SK, J721S2-EVM, AM68-SK, J784S4-EVM, AM69-SK) have multiple R5F clusters in the MAIN domain. All of these clusters are configured for LockStep mode at the moment. Switch all of these R5F clusters to Split mode by default to maximize the number of R5F cores.

v3: Changelog:
* Nishanth
1) Refactored changes to board level DTS files instead of SoC level dtsi files.

[...]

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

[1/7] arm64: dts: ti: k3-j7200-som-p0: Switch MAIN R5F cluster to Split-mode

      commit: 936fa8b91abac356b8c8afd70959dba8420ddc18
[2/7] arm64: dts: ti: k3-j721e-som-p0: Switch MAIN R5F clusters to Split-mode
      commit: 956d1f88a7df31cd7264b07d9ff7fe886aa96ae5
[3/7] arm64: dts: ti: k3-j721e-sk: Switch MAIN R5F clusters to Split-mode
      commit: 17613194f8f765c5559c2a1aab56b76ffbc4a2ee
[4/7] arm64: dts: ti: k3-j721s2-som-p0: Switch MAIN R5F clusters to Split-mode
      commit: ab630a7f429195a02185faec448603d2ae4b12d5
[5/7] arm64: dts: ti: k3-am68-sk-som: Switch MAIN R5F clusters to Split-mode
      commit: e1f2bf759c533fb86380ded089a16fba24222832
[6/7] arm64: dts: ti: k3-j784s4-evm: Switch MAIN R5F clusters to Split-mode
      commit: 10ef034f94ef7916c89f40e3b3844bcd066a7a58
[7/7] arm64: dts: ti: k3-am69-sk: Switch MAIN R5F clusters to Split-mode
      commit: 34d0e51ad34b0b1f8d6020020bf7e4e8e4f5cbe1

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

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