mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Narron <richard@aaazen.com>
To: Cal Peake <cp@absolutedigital.net>
Cc: Sasha Levin <sashal@kernel.org>,
	 Kernel Mailing List <linux-kernel@vger.kernel.org>,
	 Linux stable <stable@vger.kernel.org>,
	 Andrew Morton <akpm@linux-foundation.org>,
	 Linus Torvalds <torvalds@linux-foundation.org>,
	jslaby@suse.cz,  Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 Patrick Volkerding <volkerdi@gmail.com>
Subject: Re: Linux 6.18.17 -- build regression
Date: Sat, 14 Mar 2026 08:00:57 -0700 (PDT)	[thread overview]
Message-ID: <f7968de1-ecf0-e0f4-2a39-957b4dc7f35@aaazen.com> (raw)
In-Reply-To: <403d62bf-e375-4bf5-a5be-f1792a52010@absolutedigital.net>

On Fri, 13 Mar 2026, Cal Peake wrote:

> On Fri, 13 Mar 2026, Richard Narron wrote:
>
> > On Thu, 12 Mar 2026, Sasha Levin wrote:
> >
> > > Could you please confirm that cherry-picking 93d0fcdddc9e ("cxl/acpi: Fix
> > > CXL_ACPI and CXL_PMEM Kconfig tristate mismatch") fixes the issue you're
> > > seeing?
> > >
> > Hello Sasha,
> >
> >    Patrick Volkerding found a patch that worked for me:
> >
> > https://lore.kernel.org/lkml/20260302200429.803417-1-gourry@gourry.net/
> >
> >    In drivers/cxl/acpi.c
> >     static int cxl_acpi_probe(struct platform_device *pdev)
> >     it changes IS_ENABLED(CONFIG_CXL_PMEM)
> >             to IS_REACHABLE(CONFIG_CXL_PMEM)
> >
>
> Hi Richard, Pat,
>
> Below is the commit that Sasha pointed me to that fixes the issue for me
> if you'd like to have a look.
>
> --
> Cal Peake
>
> >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
>
> 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>
> ---
>  drivers/cxl/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig
> index 4589bf11d3fe00..80aeb0d556bd76 100644
> --- a/drivers/cxl/Kconfig
> +++ b/drivers/cxl/Kconfig
> @@ -59,6 +59,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
> --
> cgit 1.2.3-korg
>
>
Hi Cal and Sasha,

I tested the patch and it gave me a clean build.

Patrick found a "no-patch" configuration solution:

   Change CXL_ACPI=y to CXL_ACPI=m

which I also tested and it also gave me a clean build.

  reply	other threads:[~2026-03-14 15:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-12 11:24 Linux 6.18.17 Sasha Levin
2026-03-12 11:24 ` Sasha Levin
2026-03-12 22:24 ` Linux 6.18.17 -- build regression Cal Peake
2026-03-13  0:43   ` Sasha Levin
2026-03-13 22:04     ` Richard Narron
2026-03-13 22:40       ` Cal Peake
2026-03-14 15:00         ` Richard Narron [this message]
2026-03-13 22:20     ` Cal Peake
2026-03-13 23:30       ` Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7968de1-ecf0-e0f4-2a39-957b4dc7f35@aaazen.com \
    --to=richard@aaazen.com \
    --cc=akpm@linux-foundation.org \
    --cc=cp@absolutedigital.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=volkerdi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®