kernel-ark/arch/arm/mach-sti
Peter Griffin 94a8cfceaa ARM: STi: Add code to release secondary cores from holding pen.
Most upstream devs boot STi platform via JTAG which abuses the
boot process by setting the PC of secondary cores directly. As
a consquence, booting STi platforms via u-boot results in only
the primary core being brought up as the code to manage the
holding pen is not upstream.

This patch adds the necessary code to bring the secondary cores
out of the holding pen. It uses the cpu-release-addr DT property
to get the address of the holding pen from the bootloader.

With this patch booting upstream kernels via u-boot works
correctly:

[    0.045456] CPU: Testing write buffer coherency: ok
[    0.045597] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.045734] Setting up static identity map for 0x40209000 - 0x40209098
[    0.065047] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.065081] Brought up 2 CPUs
[    0.065089] SMP: Total of 2 processors activated (5983.43 BogoMIPS).
[    0.065092] CPU: All CPU(s) started in SVC mode.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
2015-07-22 11:14:18 +02:00
..
board-dt.c ARM: STi: Add STiH410 SoC support 2015-03-11 15:34:45 +01:00
headsmp.S ARM: STi: Add code to release secondary cores from holding pen. 2015-07-22 11:14:18 +02:00
Kconfig ARM: STi: Ensure requested STi's SysCfg Controlled IRQs are enabled at boot 2015-05-13 10:42:38 +02:00
Makefile
platsmp.c ARM: STi: Add code to release secondary cores from holding pen. 2015-07-22 11:14:18 +02:00
smp.h ARM: STi: Add code to release secondary cores from holding pen. 2015-07-22 11:14:18 +02:00