* [PATCH] cxl/acpi: Warn on unsupported platform config detection
@ 2024-06-19 12:59 Fabio M. De Francesco
2024-06-21 20:57 ` Alison Schofield
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Fabio M. De Francesco @ 2024-06-19 12:59 UTC (permalink / raw)
To: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Alison Schofield,
Vishal Verma, Ira Weiny, Dan Williams, linux-cxl, linux-kernel
Cc: Fabio M. De Francesco
Each Host Bridge instance has a corresponding CXL Host Bridge Structure
(CHBS) ACPI table that identifies its capabilities. CHBS tables can be
two types: RCRB and CHBCR.
If a Host Bridge is attached to a device that is operating in Restricted
CXL Device Mode (RCD), BIOS publishes an RCRB with the base address of
registers that describe its capabilities.
However, the new (CXL 2.0+) Component registers (e.g., Extended Security
Capability), can only be accessed by means of a base address published
with a CHBCR.
An algorithm to locate a CHBCR associated with an RCRB would be too
invasive to land without some concrete motivation.
Therefore, just print a message to inform of unsupported config.
Count how many different CHBS "Version" types are detected by
cxl_get_chbs_iter(). Then make cxl_get_chbs() print a warning if that sum
is greater than 1.
Signed-off-by: Fabio M. De Francesco <fabio.m.de.francesco@linux.intel.com>
---
drivers/cxl/acpi.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
index 571069863c62..9e226a65a5ea 100644
--- a/drivers/cxl/acpi.c
+++ b/drivers/cxl/acpi.c
@@ -482,6 +482,7 @@ struct cxl_chbs_context {
unsigned long long uid;
resource_size_t base;
u32 cxl_version;
+ int count;
};
static int cxl_get_chbs_iter(union acpi_subtable_headers *header, void *arg,
@@ -490,10 +491,17 @@ static int cxl_get_chbs_iter(union acpi_subtable_headers *header, void *arg,
struct cxl_chbs_context *ctx = arg;
struct acpi_cedt_chbs *chbs;
- if (ctx->base != CXL_RESOURCE_NONE)
+ chbs = (struct acpi_cedt_chbs *) header;
+
+ if (chbs->cxl_version == ACPI_CEDT_CHBS_VERSION_CXL11 &&
+ chbs->length != CXL_RCRB_SIZE)
return 0;
- chbs = (struct acpi_cedt_chbs *) header;
+ if (ctx->cxl_version != chbs->cxl_version)
+ ctx->count++;
+
+ if (ctx->base != CXL_RESOURCE_NONE)
+ return 0;
if (ctx->uid != chbs->uid)
return 0;
@@ -502,10 +510,6 @@ static int cxl_get_chbs_iter(union acpi_subtable_headers *header, void *arg,
if (!chbs->base)
return 0;
- if (chbs->cxl_version == ACPI_CEDT_CHBS_VERSION_CXL11 &&
- chbs->length != CXL_RCRB_SIZE)
- return 0;
-
ctx->base = chbs->base;
return 0;
@@ -533,6 +537,10 @@ static int cxl_get_chbs(struct device *dev, struct acpi_device *hb,
acpi_table_parse_cedt(ACPI_CEDT_TYPE_CHBS, cxl_get_chbs_iter, ctx);
+ if (ctx->count > 1)
+ /* Disclaim eRCD support given some component register may only be found via CHBCR */
+ dev_info(dev, "Unsupported platform config, mixed Virtual Host and Restricted CXL Host hierarchy.");
+
return 0;
}
--
2.45.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-19 12:59 [PATCH] cxl/acpi: Warn on unsupported platform config detection Fabio M. De Francesco
@ 2024-06-21 20:57 ` Alison Schofield
2024-06-25 23:41 ` Dan Williams
2024-06-26 10:00 ` Fabio M. De Francesco
2024-06-25 23:14 ` Dan Williams
2024-06-26 0:10 ` Alison Schofield
2 siblings, 2 replies; 10+ messages in thread
From: Alison Schofield @ 2024-06-21 20:57 UTC (permalink / raw)
To: Fabio M. De Francesco
Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Vishal Verma,
Ira Weiny, Dan Williams, linux-cxl, linux-kernel
On Wed, Jun 19, 2024 at 02:59:41PM +0200, Fabio M. De Francesco wrote:
Hi Fabio,
You've written such a detailed commit msg, that it pulls me in,
and now I want to understand more....
> Each Host Bridge instance has a corresponding CXL Host Bridge Structure
> (CHBS) ACPI table that identifies its capabilities. CHBS tables can be
> two types: RCRB and CHBCR.
Is there a spec reference for this?
While you're spelling things out, please expand RCRB and CHBCR
>
> If a Host Bridge is attached to a device that is operating in Restricted
> CXL Device Mode (RCD), BIOS publishes an RCRB with the base address of
> registers that describe its capabilities.
>
> However, the new (CXL 2.0+) Component registers (e.g., Extended Security
> Capability), can only be accessed by means of a base address published
> with a CHBCR.
>
> An algorithm to locate a CHBCR associated with an RCRB would be too
> invasive to land without some concrete motivation.
>
> Therefore, just print a message to inform of unsupported config.
>
Were users seeing this and confused by this silent failure?
What did it look like before?
> Count how many different CHBS "Version" types are detected by
> cxl_get_chbs_iter(). Then make cxl_get_chbs() print a warning if that sum
> is greater than 1.
>
> Signed-off-by: Fabio M. De Francesco <fabio.m.de.francesco@linux.intel.com>
> ---
> drivers/cxl/acpi.c | 20 ++++++++++++++------
> 1 file changed, 14 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
> index 571069863c62..9e226a65a5ea 100644
> --- a/drivers/cxl/acpi.c
> +++ b/drivers/cxl/acpi.c
> @@ -482,6 +482,7 @@ struct cxl_chbs_context {
> unsigned long long uid;
> resource_size_t base;
> u32 cxl_version;
> + int count;
Maybe s/count/nr_versions to be more explicit of what it counts.
-- Alison
> };
>
snip
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-19 12:59 [PATCH] cxl/acpi: Warn on unsupported platform config detection Fabio M. De Francesco
2024-06-21 20:57 ` Alison Schofield
@ 2024-06-25 23:14 ` Dan Williams
2024-06-26 10:28 ` Fabio M. De Francesco
2024-06-26 0:10 ` Alison Schofield
2 siblings, 1 reply; 10+ messages in thread
From: Dan Williams @ 2024-06-25 23:14 UTC (permalink / raw)
To: Fabio M. De Francesco, Davidlohr Bueso, Jonathan Cameron,
Dave Jiang, Alison Schofield, Vishal Verma, Ira Weiny,
Dan Williams, linux-cxl, linux-kernel
Cc: Fabio M. De Francesco
Fabio M. De Francesco wrote:
> Each Host Bridge instance has a corresponding CXL Host Bridge Structure
> (CHBS) ACPI table that identifies its capabilities. CHBS tables can be
> two types: RCRB and CHBCR.
>
> If a Host Bridge is attached to a device that is operating in Restricted
> CXL Device Mode (RCD), BIOS publishes an RCRB with the base address of
> registers that describe its capabilities.
>
> However, the new (CXL 2.0+) Component registers (e.g., Extended Security
> Capability), can only be accessed by means of a base address published
> with a CHBCR.
>
> An algorithm to locate a CHBCR associated with an RCRB would be too
> invasive to land without some concrete motivation.
>
> Therefore, just print a message to inform of unsupported config.
>
> Count how many different CHBS "Version" types are detected by
> cxl_get_chbs_iter(). Then make cxl_get_chbs() print a warning if that sum
> is greater than 1.
>
> Signed-off-by: Fabio M. De Francesco <fabio.m.de.francesco@linux.intel.com>
> ---
> drivers/cxl/acpi.c | 20 ++++++++++++++------
> 1 file changed, 14 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
> index 571069863c62..9e226a65a5ea 100644
> --- a/drivers/cxl/acpi.c
> +++ b/drivers/cxl/acpi.c
> @@ -482,6 +482,7 @@ struct cxl_chbs_context {
> unsigned long long uid;
> resource_size_t base;
> u32 cxl_version;
> + int count;
> };
>
> static int cxl_get_chbs_iter(union acpi_subtable_headers *header, void *arg,
> @@ -490,10 +491,17 @@ static int cxl_get_chbs_iter(union acpi_subtable_headers *header, void *arg,
> struct cxl_chbs_context *ctx = arg;
> struct acpi_cedt_chbs *chbs;
>
> - if (ctx->base != CXL_RESOURCE_NONE)
> + chbs = (struct acpi_cedt_chbs *) header;
> +
> + if (chbs->cxl_version == ACPI_CEDT_CHBS_VERSION_CXL11 &&
> + chbs->length != CXL_RCRB_SIZE)
> return 0;
>
> - chbs = (struct acpi_cedt_chbs *) header;
> + if (ctx->cxl_version != chbs->cxl_version)
> + ctx->count++;
> +
> + if (ctx->base != CXL_RESOURCE_NONE)
> + return 0;
>
> if (ctx->uid != chbs->uid)
> return 0;
> @@ -502,10 +510,6 @@ static int cxl_get_chbs_iter(union acpi_subtable_headers *header, void *arg,
> if (!chbs->base)
> return 0;
>
> - if (chbs->cxl_version == ACPI_CEDT_CHBS_VERSION_CXL11 &&
> - chbs->length != CXL_RCRB_SIZE)
> - return 0;
> -
> ctx->base = chbs->base;
>
> return 0;
> @@ -533,6 +537,10 @@ static int cxl_get_chbs(struct device *dev, struct acpi_device *hb,
>
> acpi_table_parse_cedt(ACPI_CEDT_TYPE_CHBS, cxl_get_chbs_iter, ctx);
>
> + if (ctx->count > 1)
> + /* Disclaim eRCD support given some component register may only be found via CHBCR */
> + dev_info(dev, "Unsupported platform config, mixed Virtual Host and Restricted CXL Host hierarchy.");
I believe this is already queued, but my personal preference is that
multiline statements include brackets, or move the comment above the "if
()", so either:
/* Disclaim eRCD support given some component register may only be found via CHBCR */
if (ctx->count > 1)
dev_info(dev, "Unsupported platform config, mixed Virtual Host and Restricted CXL Host hierarchy.");
...or:
if (ctx->count > 1) {
/* Disclaim eRCD support given some component register may only be found via CHBCR */
dev_info(dev, "Unsupported platform config, mixed Virtual Host and Restricted CXL Host hierarchy.");
}
...but don't spin the patch just for that fixup.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-21 20:57 ` Alison Schofield
@ 2024-06-25 23:41 ` Dan Williams
2024-06-26 10:00 ` Fabio M. De Francesco
1 sibling, 0 replies; 10+ messages in thread
From: Dan Williams @ 2024-06-25 23:41 UTC (permalink / raw)
To: Alison Schofield, Fabio M. De Francesco
Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Vishal Verma,
Ira Weiny, Dan Williams, linux-cxl, linux-kernel
Alison Schofield wrote:
> On Wed, Jun 19, 2024 at 02:59:41PM +0200, Fabio M. De Francesco wrote:
>
> Hi Fabio,
> You've written such a detailed commit msg, that it pulls me in,
> and now I want to understand more....
>
>
> > Each Host Bridge instance has a corresponding CXL Host Bridge Structure
> > (CHBS) ACPI table that identifies its capabilities. CHBS tables can be
> > two types: RCRB and CHBCR.
>
> Is there a spec reference for this?
> While you're spelling things out, please expand RCRB and CHBCR
>
> >
> > If a Host Bridge is attached to a device that is operating in Restricted
> > CXL Device Mode (RCD), BIOS publishes an RCRB with the base address of
> > registers that describe its capabilities.
> >
> > However, the new (CXL 2.0+) Component registers (e.g., Extended Security
> > Capability), can only be accessed by means of a base address published
> > with a CHBCR.
> >
> > An algorithm to locate a CHBCR associated with an RCRB would be too
> > invasive to land without some concrete motivation.
> >
> > Therefore, just print a message to inform of unsupported config.
> >
>
>
> Were users seeing this and confused by this silent failure?
> What did it look like before?
This is a "by inspection" realization that the CXL specification
currently does not define a mechanism for finding CXL-2.0-only root-port
component regsiters like HDM decoders and Extended Security capability.
Rather than go through a fire drill of clarifying how that is supposed
to work, just the known conflict for now.
When / if someone actually shows up with an eRCD (a device that forces
the host-bridge into CXL 1.1 Restricted CXL Host mode) then we can
consider if Linux needs to do the work to support that. To my knowledge
all of the commercial devices on the market are so-called "CXL 1.1+"
which support training in VH (CXL Virtual Host) mode when attached to a
CXL 2.0 host. So, Linux can likely live with disclaiming "eRCD attached
to a VH host support" for the foreseeable future.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-19 12:59 [PATCH] cxl/acpi: Warn on unsupported platform config detection Fabio M. De Francesco
2024-06-21 20:57 ` Alison Schofield
2024-06-25 23:14 ` Dan Williams
@ 2024-06-26 0:10 ` Alison Schofield
2024-06-26 0:45 ` Dan Williams
2 siblings, 1 reply; 10+ messages in thread
From: Alison Schofield @ 2024-06-26 0:10 UTC (permalink / raw)
To: Fabio M. De Francesco
Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Vishal Verma,
Ira Weiny, Dan Williams, linux-cxl, linux-kernel
On Wed, Jun 19, 2024 at 02:59:41PM +0200, Fabio M. De Francesco wrote:
Fabio,
cxl/acpi does a lot of platform config work. "...unsupported platform
config detection" gives no hint that this is about CHBS's or an eRCD.
Please offer something more specific. Thanks.
--Alison
snip...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-26 0:10 ` Alison Schofield
@ 2024-06-26 0:45 ` Dan Williams
2024-06-26 10:31 ` Fabio M. De Francesco
0 siblings, 1 reply; 10+ messages in thread
From: Dan Williams @ 2024-06-26 0:45 UTC (permalink / raw)
To: Alison Schofield, Fabio M. De Francesco
Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Vishal Verma,
Ira Weiny, Dan Williams, linux-cxl, linux-kernel
Alison Schofield wrote:
> On Wed, Jun 19, 2024 at 02:59:41PM +0200, Fabio M. De Francesco wrote:
>
> Fabio,
>
> cxl/acpi does a lot of platform config work. "...unsupported platform
> config detection" gives no hint that this is about CHBS's or an eRCD.
> Please offer something more specific. Thanks.
The message specifies "mixed Virtual Host and Restricted CXL Host
hierarchy" as the conflict. The relationship between RCH and eRCDs is an
exercise for the reader, and CHBS is an ACPI detail that really should
not be emitted in an error message. So I am struggling to imagine what a
more specific error message would be without paragraphs of backstory.
All that is needed here is just enough words for when someone posts a
problem to the list that someone savvy can go "ah, you fell into this
specification hole where CXL 2.0 root port registers are difficult to
associate with an RCH config, thanks for the report now we know that
Linux needs to worry about this case".
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-21 20:57 ` Alison Schofield
2024-06-25 23:41 ` Dan Williams
@ 2024-06-26 10:00 ` Fabio M. De Francesco
1 sibling, 0 replies; 10+ messages in thread
From: Fabio M. De Francesco @ 2024-06-26 10:00 UTC (permalink / raw)
To: Alison Schofield
Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Vishal Verma,
Ira Weiny, Dan Williams, linux-cxl, linux-kernel
On Friday, June 21, 2024 10:57:32 PM GMT+2 Alison Schofield wrote:
> On Wed, Jun 19, 2024 at 02:59:41PM +0200, Fabio M. De Francesco wrote:
>
Hi Alison,
>
> Hi Fabio,
> You've written such a detailed commit msg, that it pulls me in,
> and now I want to understand more....
>
>
> > Each Host Bridge instance has a corresponding CXL Host Bridge Structure
> > (CHBS) ACPI table that identifies its capabilities. CHBS tables can be
> > two types: RCRB and CHBCR.
>
> Is there a spec reference for this?
>
I'll add a spec reference with v2.
> While you're spelling things out, please expand RCRB and CHBCR
I'll do it.
>
> >
> > If a Host Bridge is attached to a device that is operating in Restricted
> > CXL Device Mode (RCD), BIOS publishes an RCRB with the base address of
> > registers that describe its capabilities.
> >
> > However, the new (CXL 2.0+) Component registers (e.g., Extended Security
> > Capability), can only be accessed by means of a base address published
> > with a CHBCR.
> >
> > An algorithm to locate a CHBCR associated with an RCRB would be too
> > invasive to land without some concrete motivation.
> >
> > Therefore, just print a message to inform of unsupported config.
> >
>
> Were users seeing this and confused by this silent failure?
> What did it look like before?
>
Please read Dan on this topic.
I think I'll add a few lines to the commit message to summarize Dan's comment.
>
> > Count how many different CHBS "Version" types are detected by
> > cxl_get_chbs_iter(). Then make cxl_get_chbs() print a warning if that sum
> > is greater than 1.
> >
> > Signed-off-by: Fabio M. De Francesco <fabio.m.de.francesco@linux.intel.com>
> > ---
> > drivers/cxl/acpi.c | 20 ++++++++++++++------
> > 1 file changed, 14 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
> > index 571069863c62..9e226a65a5ea 100644
> > --- a/drivers/cxl/acpi.c
> > +++ b/drivers/cxl/acpi.c
> > @@ -482,6 +482,7 @@ struct cxl_chbs_context {
> > unsigned long long uid;
> > resource_size_t base;
> > u32 cxl_version;
> > + int count;
>
> Maybe s/count/nr_versions to be more explicit of what it counts.
>
Yes, "nr_versions" is better.
Thank you.
Fabio
>
> -- Alison
> > };
> >
> snip
> >
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-25 23:14 ` Dan Williams
@ 2024-06-26 10:28 ` Fabio M. De Francesco
0 siblings, 0 replies; 10+ messages in thread
From: Fabio M. De Francesco @ 2024-06-26 10:28 UTC (permalink / raw)
To: Dan Williams
Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Alison Schofield,
Vishal Verma, Ira Weiny, Dan Williams, linux-cxl, linux-kernel
On Wednesday, June 26, 2024 1:14:18 AM GMT+2 Dan Williams wrote:
Hi Dan,
> Fabio M. De Francesco wrote:
> > Each Host Bridge instance has a corresponding CXL Host Bridge Structure
> > (CHBS) ACPI table that identifies its capabilities. CHBS tables can be
> > two types: RCRB and CHBCR.
> >
> > If a Host Bridge is attached to a device that is operating in Restricted
> > CXL Device Mode (RCD), BIOS publishes an RCRB with the base address of
> > registers that describe its capabilities.
> >
> > However, the new (CXL 2.0+) Component registers (e.g., Extended Security
> > Capability), can only be accessed by means of a base address published
> > with a CHBCR.
> >
> > An algorithm to locate a CHBCR associated with an RCRB would be too
> > invasive to land without some concrete motivation.
> >
> > Therefore, just print a message to inform of unsupported config.
> >
> > Count how many different CHBS "Version" types are detected by
> > cxl_get_chbs_iter(). Then make cxl_get_chbs() print a warning if that sum
> > is greater than 1.
> >
> > Signed-off-by: Fabio M. De Francesco <fabio.m.de.francesco@linux.intel.com>
> > ---
> > drivers/cxl/acpi.c | 20 ++++++++++++++------
> > 1 file changed, 14 insertions(+), 6 deletions(-)
> >
snip
> > @@ -533,6 +537,10 @@ static int cxl_get_chbs(struct device *dev, struct
acpi_device *hb,
> >
> > acpi_table_parse_cedt(ACPI_CEDT_TYPE_CHBS, cxl_get_chbs_iter,
ctx);
> >
> > + if (ctx->count > 1)
> > + /* Disclaim eRCD support given some component register
may only be found via CHBCR */
> > + dev_info(dev, "Unsupported platform config, mixed
Virtual Host and Restricted CXL Host hierarchy.");
>
> I believe this is already queued, but my personal preference is that
> multiline statements include brackets, or move the comment above the "if
> ()", so either:
>
> /* Disclaim eRCD support given some component register may only be
found via CHBCR */
> if (ctx->count > 1)
> dev_info(dev, "Unsupported platform config, mixed Virtual
Host and Restricted CXL Host hierarchy.");
>
> ...or:
>
> if (ctx->count > 1) {
> /* Disclaim eRCD support given some component register
may only be found via CHBCR */
> dev_info(dev, "Unsupported platform config, mixed Virtual
Host and Restricted CXL Host hierarchy.");
> }
>
> ...but don't spin the patch just for that fixup.
>
I'll send v2 mainly for Alison's comments and so I will also add brackets here
(the second solution meets my preferences).
Thank you,
Fabio
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-26 0:45 ` Dan Williams
@ 2024-06-26 10:31 ` Fabio M. De Francesco
2024-06-27 1:09 ` Dan Williams
0 siblings, 1 reply; 10+ messages in thread
From: Fabio M. De Francesco @ 2024-06-26 10:31 UTC (permalink / raw)
To: Alison Schofield, Dan Williams
Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Vishal Verma,
Ira Weiny, Dan Williams, linux-cxl, linux-kernel
On Wednesday, June 26, 2024 2:45:14 AM GMT+2 Dan Williams wrote:
> Alison Schofield wrote:
> > On Wed, Jun 19, 2024 at 02:59:41PM +0200, Fabio M. De Francesco wrote:
> >
> > Fabio,
> >
> > cxl/acpi does a lot of platform config work. "...unsupported platform
> > config detection" gives no hint that this is about CHBS's or an eRCD.
> > Please offer something more specific. Thanks.
>
> The message specifies "mixed Virtual Host and Restricted CXL Host
> hierarchy" as the conflict. The relationship between RCH and eRCDs is an
> exercise for the reader, and CHBS is an ACPI detail that really should
> not be emitted in an error message. So I am struggling to imagine what a
> more specific error message would be without paragraphs of backstory.
>
> All that is needed here is just enough words for when someone posts a
> problem to the list that someone savvy can go "ah, you fell into this
> specification hole where CXL 2.0 root port registers are difficult to
> associate with an RCH config, thanks for the report now we know that
> Linux needs to worry about this case".
>
I think that Alison raised a good point.
If you have nothing against it, I'll change the subject line to: "cxl/acpi:
Warn on mixed VH and eRCH hierarchies"
How about that change?
Fabio
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] cxl/acpi: Warn on unsupported platform config detection
2024-06-26 10:31 ` Fabio M. De Francesco
@ 2024-06-27 1:09 ` Dan Williams
0 siblings, 0 replies; 10+ messages in thread
From: Dan Williams @ 2024-06-27 1:09 UTC (permalink / raw)
To: Fabio M. De Francesco, Alison Schofield, Dan Williams
Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Vishal Verma,
Ira Weiny, Dan Williams, linux-cxl, linux-kernel
Fabio M. De Francesco wrote:
> On Wednesday, June 26, 2024 2:45:14 AM GMT+2 Dan Williams wrote:
> > Alison Schofield wrote:
> > > On Wed, Jun 19, 2024 at 02:59:41PM +0200, Fabio M. De Francesco wrote:
> > >
> > > Fabio,
> > >
> > > cxl/acpi does a lot of platform config work. "...unsupported platform
> > > config detection" gives no hint that this is about CHBS's or an eRCD.
> > > Please offer something more specific. Thanks.
> >
> > The message specifies "mixed Virtual Host and Restricted CXL Host
> > hierarchy" as the conflict. The relationship between RCH and eRCDs is an
> > exercise for the reader, and CHBS is an ACPI detail that really should
> > not be emitted in an error message. So I am struggling to imagine what a
> > more specific error message would be without paragraphs of backstory.
> >
> > All that is needed here is just enough words for when someone posts a
> > problem to the list that someone savvy can go "ah, you fell into this
> > specification hole where CXL 2.0 root port registers are difficult to
> > associate with an RCH config, thanks for the report now we know that
> > Linux needs to worry about this case".
> >
> I think that Alison raised a good point.
>
> If you have nothing against it, I'll change the subject line to: "cxl/acpi:
> Warn on mixed VH and eRCH hierarchies"
>
> How about that change?
Just, s/eRCH/RCH/, but other than that looks fine to me.
However, I thought this comment was about the error message not the patch subject.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-06-27 1:10 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 12:59 [PATCH] cxl/acpi: Warn on unsupported platform config detection Fabio M. De Francesco
2024-06-21 20:57 ` Alison Schofield
2024-06-25 23:41 ` Dan Williams
2024-06-26 10:00 ` Fabio M. De Francesco
2024-06-25 23:14 ` Dan Williams
2024-06-26 10:28 ` Fabio M. De Francesco
2024-06-26 0:10 ` Alison Schofield
2024-06-26 0:45 ` Dan Williams
2024-06-26 10:31 ` Fabio M. De Francesco
2024-06-27 1:09 ` Dan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox