[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aNRkzw5GrqyZjE6s@aschofie-mobl2.lan>
Date: Wed, 24 Sep 2025 14:38:23 -0700
From: Alison Schofield <alison.schofield@...el.com>
To: Neeraj Kumar <s.neeraj@...sung.com>
CC: <linux-cxl@...r.kernel.org>, <nvdimm@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>, <gost.dev@...sung.com>,
<a.manzanares@...sung.com>, <vishak.g@...sung.com>,
<neeraj.kernel@...il.com>, <cpgs@...sung.com>
Subject: Re: [PATCH V3 16/20] cxl/mem: Preserve cxl root decoder during mem
probe
On Wed, Sep 17, 2025 at 07:11:12PM +0530, Neeraj Kumar wrote:
> Saved root decoder info is required for cxl region persistency
It seem there must be a more detailed story here.
Saving the root decoder in struct cxl_memdev does not sound
persistent. Please add more detail on how this step fits
into the grander scheme.
>
> Signed-off-by: Neeraj Kumar <s.neeraj@...sung.com>
> ---
> drivers/cxl/cxlmem.h | 1 +
> drivers/cxl/mem.c | 2 ++
> 2 files changed, 3 insertions(+)
>
> diff --git a/drivers/cxl/cxlmem.h b/drivers/cxl/cxlmem.h
> index 434031a0c1f7..25cb115b72bd 100644
> --- a/drivers/cxl/cxlmem.h
> +++ b/drivers/cxl/cxlmem.h
> @@ -59,6 +59,7 @@ struct cxl_memdev {
> struct cxl_nvdimm_bridge *cxl_nvb;
> struct cxl_nvdimm *cxl_nvd;
> struct cxl_port *endpoint;
> + struct cxl_root_decoder *cxlrd;
> int id;
> int depth;
> u8 scrub_cycle;
> diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c
> index 54501616ff09..1a0da7253a24 100644
> --- a/drivers/cxl/mem.c
> +++ b/drivers/cxl/mem.c
> @@ -152,6 +152,8 @@ static int cxl_mem_probe(struct device *dev)
> return -ENXIO;
> }
>
> + cxlmd->cxlrd = cxl_find_root_decoder_by_port(parent_port);
> +
> if (dport->rch)
> endpoint_parent = parent_port->uport_dev;
> else
> --
> 2.34.1
>
>
Powered by blists - more mailing lists