lib: Implement hart hotplug
authorAtish Patra <atish.patra@wdc.com>
Wed, 12 Feb 2020 01:32:37 +0000 (17:32 -0800)
committerAnup Patel <anup@brainfault.org>
Mon, 24 Feb 2020 12:37:55 +0000 (18:07 +0530)
commitb677a9b8d641f1c16a4f8f52e00019a9bc747893
tree5fa5b11867958b81cbeec0678819b60512fb9386
parentf64f4b92e411709227ee830bc1e9f8f87c72423e
lib: Implement hart hotplug

This patch adds support for hart hotplug in OpenSBI using a generic WFI
based approach. Hart hotplug can be achieved via SBI HSM extension which
allows supervisor mode software to start or stop any harts anytime.

Any platform wishes to implement platform specific hart hotplug must
implement both hart_start and hart_stop in addition to enable platform
feature SBI_PLATFORM_HAS_HART_HOTPLUG.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
include/sbi/sbi_error.h
include/sbi/sbi_hart.h
include/sbi/sbi_hsm.h [new file with mode: 0644]
include/sbi/sbi_platform.h
lib/sbi/objects.mk
lib/sbi/sbi_hart.c
lib/sbi/sbi_hsm.c [new file with mode: 0644]
lib/sbi/sbi_init.c
lib/sbi/sbi_ipi.c
lib/sbi/sbi_system.c