The initialization of SDEI is forcibly bound by ACPI. This Patch allows to continue to support the initialization of SDEI without starting ACPI. Fixes: dc4e8c07e9e2 ("ACPI: APEI: explicit init of HEST and GHES in apci_init()") Cc: Shuai Xue <xueshuai@xxxxxxxxxxxxxxxxx> Signed-off-by: Schspa Shi <schspa@xxxxxxxxx> --- drivers/acpi/bus.c | 1 + drivers/firmware/arm_sdei.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 2fc2b43a4ed3..d78615080502 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -1368,6 +1368,7 @@ static int __init acpi_init(void) int result; if (acpi_disabled) { + acpi_ghes_init(); pr_info("Interpreter disabled.\n"); return -ENODEV; } diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c index f9040bd61081..5ab70107c8bf 100644 --- a/drivers/firmware/arm_sdei.c +++ b/drivers/firmware/arm_sdei.c @@ -1081,6 +1081,10 @@ void __init sdei_init(void) } } +#ifndef CONFIG_ACPI +subsys_initcall_sync(sdei_init); +#endif + int sdei_event_handler(struct pt_regs *regs, struct sdei_registered_event *arg) { -- 2.39.2 (Apple Git-143)