Skip to contentSkip to conversation

ARM: SDEI: allow sdei initialization even no APCI support

PATCH New Schspa Shi 1 participant 1 message Sep 6, 2023

Subsystems (2)
lore
Share & tools
lore

Schspa Shi

author
#0 lore raw

PATCH 1/1 ARM: SDEI: allow sdei initialization even no APCI support

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 <[email protected]>
---
 drivers/acpi/bus.c          | 1 +
 drivers/firmware/arm_sdei.c | 4 ++++
 2 files changed, 5 insertions(+)
drivers/acpi/bus.c +1 -0
index 2fc2b43a4ed3..d78615080502 100644
@@ -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;
 	}
drivers/firmware/arm_sdei.c +4 -0
index f9040bd61081..5ab70107c8bf 100644
@@ -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)
 {
Signature · 1 line
2.39.2 (Apple Git-143)