Re: [PATCH v4 09/14] cxl/acpi: Prepare use of EFI runtime services

Jonathan Cameron
2025-11-11T15:17:55Z

On Mon, 3 Nov 2025 19:47:50 +0100
Robert Richter <rrichter@amd.com> wrote:

> In order to use EFI runtime services, esp. ACPI PRM which uses the
> efi_rts_wq workqueue, initialize EFI before CXL ACPI.
>
> There is a subsys_initcall order dependency if driver is builtin:
>
> subsys_initcall(cxl_acpi_init);
> subsys_initcall(efisubsys_init);
>
> Prevent the efi_rts_wq workqueue being used by cxl_acpi_init() before
> its allocation. Use subsys_initcall_sync(cxl_acpi_init) to always run
> efisubsys_init() first.
>
> Reported-by: Gregory Price <gourry@gourry.net>
> Tested-by: Joshua Hahn <joshua.hahnjy@gmail.com>
> Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com>
> Reviewed-by: Gregory Price <gourry@gourry.net>
> Signed-off-by: Robert Richter <rrichter@amd.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>