Skip to contentSkip to conversation

arch: arm: zynqmp: mp.c: tcminit halt both cores in split mode

PATCH Applied Neal Frager 2 participants 2 messages Mar 23, 2023 – Mar 28, 2023

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

PATCH 1/1 arch: arm: zynqmp: mp.c: tcminit halt both cores in split mode

The "zynqmp tcminit split" command should halt both cores and not just RPU1 when configuring the TCM memory for split mode.

---
 arch/arm/mach-zynqmp/mp.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-zynqmp/mp.c +2 -0
index 4f1ed44afb..2407eaf00b 100644
@@ -244,8 +244,10 @@ void initialize_tcm(bool mode)
 		release_r5_reset(ZYNQMP_CORE_RPU0, LOCK);
 	} else {
 		set_r5_tcm_mode(SPLIT);
+		set_r5_halt_mode(ZYNQMP_CORE_RPU0, HALT, SPLIT);
 		set_r5_halt_mode(ZYNQMP_CORE_RPU1, HALT, SPLIT);
 		enable_clock_r5();
+		release_r5_reset(ZYNQMP_CORE_RPU0, SPLIT);
 		release_r5_reset(ZYNQMP_CORE_RPU1, SPLIT);
 	}
 }
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 13 lines · Neal Frager

The "zynqmp tcminit split" command should halt both cores and not just RPU1 when configuring the TCM memory for split mode.

---
  arch/arm/mach-zynqmp/mp.c | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/mach-zynqmp/mp.c +0 -0
index 4f1ed44afb..2407eaf00b 100644

arch/arm/mach-zynqmp/mp.c void initialize_tcm(bool mode) · line 253

Quoted 10 lines
arch/arm/mach-zynqmp/mp.c +2 -0
@@ -244,8 +244,10 @@ void initialize_tcm(bool mode)
  		release_r5_reset(ZYNQMP_CORE_RPU0, LOCK);
  	} else {
  		set_r5_tcm_mode(SPLIT);
+		set_r5_halt_mode(ZYNQMP_CORE_RPU0, HALT, SPLIT);
  		set_r5_halt_mode(ZYNQMP_CORE_RPU1, HALT, SPLIT);
  		enable_clock_r5();
+		release_r5_reset(ZYNQMP_CORE_RPU0, SPLIT);
  		release_r5_reset(ZYNQMP_CORE_RPU1, SPLIT);
  	}
  }

Applied.
M