U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Bring up secondary cores on Lichee Pi 4A
@ 2025-06-06  4:27 Yao Zi
  2025-06-06  4:28 ` [PATCH 1/5] riscv: aclint_ipi: Support T-Head C900 CLINT Yao Zi
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Yao Zi @ 2025-06-06  4:27 UTC (permalink / raw)
  To: Rick Chen, Leo, Wei Fu, Yixun Lan, Yao Zi, Maksim Kiselev
  Cc: u-boot, Han Gao, Han Gao

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-07-03  8:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-06  4:27 [PATCH 0/5] Bring up secondary cores on Lichee Pi 4A Yao Zi
2025-06-06  4:28 ` [PATCH 1/5] riscv: aclint_ipi: Support T-Head C900 CLINT Yao Zi
2025-07-03  7:46   ` Leo Liang
2025-06-06  4:28 ` [PATCH 2/5] riscv: cpu: th1520: Setup CPU feature CSRs in harts_early_init Yao Zi
2025-07-03  8:01   ` Leo Liang
2025-06-06  4:28 ` [PATCH 3/5] riscv: cpu: th1520: Add a routine to bring up secondary cores Yao Zi
2025-07-03  8:06   ` Leo Liang
2025-06-06  4:28 ` [PATCH 4/5] riscv: dts: th1520: Preserve CLINT node for SPL Yao Zi
2025-07-03  8:09   ` Leo Liang
2025-06-06  4:28 ` [PATCH 5/5] board: thead: licheepi4a: Bring up secondary cores in SPL Yao Zi
2025-07-03  8:11   ` Leo Liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox