lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230906130900.12218-1-schspa@gmail.com>
Date:   Wed,  6 Sep 2023 21:09:00 +0800
From:   Schspa Shi <schspa@...il.com>
To:     lenb@...nel.org, james.morse@....com
Cc:     rafael@...nel.org, xueshuai@...ux.alibaba.com,
        linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-arm-kernel@...ts.infradead.org, Schspa Shi <schspa@...il.com>
Subject: [PATCH] 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 <xueshuai@...ux.alibaba.com>
Signed-off-by: Schspa Shi <schspa@...il.com>
---
 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)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ