FAILED: Patch "cxl/acpi: Ensure ports ready at cxl_acpi_probe() return" failed to apply to v6.1-stable tree
Subsystems (2)
Sasha Levin
maintainerThe patch below does not apply to the v6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 48f62d38a07d464a499fa834638afcfd2b68f852 Mon Sep 17 00:00:00 2001
From: Dan Williams <[email protected]>
Date: Tue, 22 Oct 2024 18:43:40 -0700
Subject: [PATCH] cxl/acpi: Ensure ports ready at cxl_acpi_probe() return
In order to ensure root CXL ports are enabled upon cxl_acpi_probe() when the 'cxl_port' driver is built as a module, arrange for the module to be pre-loaded or built-in.
The "Fixes:" but no "Cc: stable" on this patch reflects that the issue is merely by inspection since the bug that triggered the discovery of this potential problem [1] is fixed by other means. However, a stable backport should do no harm.
--- drivers/cxl/acpi.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/cxl/acpi.c +7 -0
@@ -924,6 +924,13 @@ static void __exit cxl_acpi_exit(void)/* load before dax_hmem sees 'Soft Reserved' CXL ranges */ subsys_initcall (cxl_acpi_init); + +/* +* Arrange for host-bridge ports to be active synchronous with +* cxl_acpi_probe() exit. +*/ +MODULE_SOFTDEP ("pre: cxl_port" ); +module_exit (cxl_acpi_exit);MODULE_DESCRIPTION ("CXL ACPI: Platform Support" );MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.43.0