Skip to content

Commit 7be03ea

Browse files
Robert Richterdavejiang
authored andcommitted
cxl/acpi: Prepare use of EFI runtime services
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> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Tested-by: Gregory Price <gourry@gourry.net> Signed-off-by: Robert Richter <rrichter@amd.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com>> --- Link: https://patch.msgid.link/20260114164837.1076338-10-rrichter@amd.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent a31af41 commit 7be03ea

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/cxl/acpi.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,12 @@ static void __exit cxl_acpi_exit(void)
10051005
cxl_bus_drain();
10061006
}
10071007

1008-
/* load before dax_hmem sees 'Soft Reserved' CXL ranges */
1009-
subsys_initcall(cxl_acpi_init);
1008+
/*
1009+
* Load before dax_hmem sees 'Soft Reserved' CXL ranges. Use
1010+
* subsys_initcall_sync() since there is an order dependency with
1011+
* subsys_initcall(efisubsys_init), which must run first.
1012+
*/
1013+
subsys_initcall_sync(cxl_acpi_init);
10101014

10111015
/*
10121016
* Arrange for host-bridge ports to be active synchronous with

0 commit comments

Comments
 (0)