]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2026 15:39:07 +0000 (16:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2026 15:39:07 +0000 (16:39 +0100)
added patches:
cxl-acpi-fix-cxl_acpi-and-cxl_pmem-kconfig-tristate-mismatch.patch

queue-6.19/cxl-acpi-fix-cxl_acpi-and-cxl_pmem-kconfig-tristate-mismatch.patch [new file with mode: 0644]
queue-6.19/series

diff --git a/queue-6.19/cxl-acpi-fix-cxl_acpi-and-cxl_pmem-kconfig-tristate-mismatch.patch b/queue-6.19/cxl-acpi-fix-cxl_acpi-and-cxl_pmem-kconfig-tristate-mismatch.patch
new file mode 100644 (file)
index 0000000..adfb3ab
--- /dev/null
@@ -0,0 +1,48 @@
+From 93d0fcdddc9e7be9d4f42acbe57bc90dbb0fe75d Mon Sep 17 00:00:00 2001
+From: Keith Busch <kbusch@kernel.org>
+Date: Thu, 5 Mar 2026 12:40:56 -0800
+Subject: cxl/acpi: Fix CXL_ACPI and CXL_PMEM Kconfig tristate mismatch
+
+From: Keith Busch <kbusch@kernel.org>
+
+commit 93d0fcdddc9e7be9d4f42acbe57bc90dbb0fe75d upstream.
+
+Commit e7e222ad73d9 ("cxl: Move devm_cxl_add_nvdimm_bridge() to
+cxl_pmem.ko") moves devm_cxl_add_nvdimm_bridge() into the cxl_pmem file,
+which has independent config compile options for built-in or module. The
+call from cxl_acpi_probe() is guarded by IS_ENABLED(CONFIG_CXL_PMEM),
+which evaluates to true for both =y and =m.
+
+When CONFIG_CXL_PMEM=m, a built-in cxl_acpi attempts to reference a
+symbol exported by a module, which fails to link. CXL_PMEM cannot simply
+be promoted to =y in this configuration because it depends on LIBNVDIMM,
+which may itself be =m.
+
+Add a Kconfig dependency to prevent CXL_ACPI from being built-in when
+CXL_PMEM is a module. This contrains CXL_ACPI to =m when CXL_PMEM=m,
+while still allowing CXL_ACPI to be freely configured when CXL_PMEM is
+either built-in or disabled.
+
+[ dj: Fix up commit reference formatting. ]
+
+Fixes: e7e222ad73d9 ("cxl: Move devm_cxl_add_nvdimm_bridge() to cxl_pmem.ko")
+Signed-off-by: Keith Busch <kbusch@kernel.org>
+Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
+Reviewed-by: Dan Williams <dan.j.williams@intel.com>
+Link: https://patch.msgid.link/20260305204057.1516948-1-kbusch@meta.com
+Signed-off-by: Dave Jiang <dave.jiang@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/cxl/Kconfig |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/cxl/Kconfig
++++ b/drivers/cxl/Kconfig
+@@ -58,6 +58,7 @@ config CXL_ACPI
+       tristate "CXL ACPI: Platform Support"
+       depends on ACPI
+       depends on ACPI_NUMA
++      depends on CXL_PMEM || !CXL_PMEM
+       default CXL_BUS
+       select ACPI_TABLE_LIB
+       select ACPI_HMAT
index 7d03de77c7fda91c3a026075116b3d5498d9642b..0933a39a849c07e5a1eda66aebf14cbc5212a99e 100644 (file)
@@ -375,3 +375,4 @@ kvm-arm64-gic-set-vgic_model-before-initing-private-irqs.patch
 kvm-arm64-eagerly-init-vgic-dist-redist-on-vgic-creation.patch
 io_uring-ensure-ctx-rings-is-stable-for-task-work-flags-manipulation.patch
 io_uring-eventfd-use-ctx-rings_rcu-for-flags-checking.patch
+cxl-acpi-fix-cxl_acpi-and-cxl_pmem-kconfig-tristate-mismatch.patch