[PATCH 0/5] Bring up secondary cores on Lichee Pi 4A

Yao Zi ziyao at disroot.org
Fri Jun 6 06:27:59 CEST 2025


TH1520 ships four Xuantie C910 cores, but only one of them is
automatically brought up by hardware on coldboot. This series adds IPI
support with T-Head C900 CLINT, setup CPU features to prepare for SMP
operation, and finally bring the rest three cores up.

Booted with the series, Linux kernel correctly shows and makes use of
four available cores,

	[    0.042371] smp: Bringing up secondary CPUs ...
	[    0.052448] smp: Brought up 1 node, 4 CPUs

This depends on v1 of series "Convert Lichee Pi 4A to use S-Mode proper
U-Boot"[1] to function correctly.

[1]: https://lore.kernel.org/all/20250530094851.57198-1-ziyao@disroot.org/

Yao Zi (5):
  riscv: aclint_ipi: Support T-Head C900 CLINT
  riscv: cpu: th1520: Setup CPU feature CSRs in harts_early_init
  riscv: cpu: th1520: Add a routine to bring up secondary cores
  riscv: dts: th1520: Preserve CLINT node for SPL
  board: thead: licheepi4a: Bring up secondary cores in SPL

 arch/riscv/cpu/th1520/cpu.c              | 29 ++++++++-
 arch/riscv/cpu/th1520/spl.c              | 83 ++++++++++++++++++++++++
 arch/riscv/dts/th1520.dtsi               |  1 +
 arch/riscv/include/asm/arch-th1520/cpu.h |  1 +
 arch/riscv/lib/aclint_ipi.c              |  5 ++
 board/thead/th1520_lpi4a/spl.c           |  3 +
 6 files changed, 121 insertions(+), 1 deletion(-)

-- 
2.49.0



More information about the U-Boot mailing list