[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5b8ea515-788e-44b8-b7d3-a85329b584dc@redhat.com>
Date: Thu, 8 May 2025 10:24:42 +1000
From: Gavin Shan <gshan@...hat.com>
To: Huang Yiwei <quic_hyiwei@...cinc.com>, will@...nel.org,
rafael@...nel.org, lenb@...nel.org, james.morse@....com,
tony.luck@...el.com, bp@...en8.de
Cc: xueshuai@...ux.alibaba.com, quic_aiquny@...cinc.com,
quic_satyap@...cinc.com, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
kernel@...cinc.com, kernel@....qualcomm.com
Subject: Re: [PATCH v2] firmware: SDEI: Allow sdei initialization without
ACPI_APEI_GHES
On 5/7/25 2:57 PM, Huang Yiwei wrote:
> SDEI usually initialize with the ACPI table, but on platforms where
> ACPI is not used, the SDEI feature can still be used to handle
> specific firmware calls or other customized purposes. Therefore, it
> is not necessary for ARM_SDE_INTERFACE to depend on ACPI_APEI_GHES.
>
> In commit dc4e8c07e9e2 ("ACPI: APEI: explicit init of HEST and GHES
> in acpi_init()"), to make APEI ready earlier, sdei_init was moved
> into acpi_ghes_init instead of being a standalone initcall, adding
> ACPI_APEI_GHES dependency to ARM_SDE_INTERFACE. This restricts the
> flexibility and usability of SDEI.
>
> This patch corrects the dependency in Kconfig and splits sdei_init()
> into two separate functions: sdei_init() and acpi_sdei_init().
> sdei_init() will be called by arch_initcall and will only initialize
> the platform driver, while acpi_sdei_init() will initialize the
> device from acpi_ghes_init() when ACPI is ready. This allows the
> initialization of SDEI without ACPI_APEI_GHES enabled.
>
> Fixes: dc4e8c07e9e2 ("ACPI: APEI: explicit init of HEST and GHES in apci_init()")
> Cc: Shuai Xue <xueshuai@...ux.alibaba.com>
> Signed-off-by: Huang Yiwei <quic_hyiwei@...cinc.com>
> ---
> drivers/acpi/apei/Kconfig | 1 +
> drivers/acpi/apei/ghes.c | 2 +-
> drivers/firmware/Kconfig | 1 -
> drivers/firmware/arm_sdei.c | 11 ++++++++---
> include/linux/arm_sdei.h | 4 ++--
> 5 files changed, 12 insertions(+), 7 deletions(-)
>
Reviewed-by: Gavin Shan <gshan@...hat.com>
Powered by blists - more mailing lists