]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the HSM SBI extension to start APs
authorMitchell Horne <mhorne@FreeBSD.org>
Fri, 1 May 2020 21:58:19 +0000 (21:58 +0000)
committerMitchell Horne <mhorne@FreeBSD.org>
Fri, 1 May 2020 21:58:19 +0000 (21:58 +0000)
commitc74959537c4d1d8679dc75ab9a50f97473d0a92b
tree233519fcab814ca09b5bd7c46eff079f3b45809e
parentbfe918fa0e72d54ec25357dc8874101a49cc242b
Use the HSM SBI extension to start APs

The addition of the HSM SBI extension to OpenSBI introduces a new
breaking change: secondary harts will remain parked in the firmware,
until they are brought up explicitly via sbi_hsm_hart_start(). Add
the call to do this, sending the secondary harts to mpentry.

If the HSM extension is not present, secondary harts are assumed to be
released by the firmware, as is the case for OpenSBI =< v0.6 and BBL.

In the case that the HSM call fails we exclude the CPU, notify the
user, and allow the system to proceed with booting.

Reviewed by: markj (older version)
Differential Revision: https://reviews.freebsd.org/D24497
sys/riscv/riscv/mp_machdep.c