From: Alison Schofield <alison.schofield@intel.com>
To: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Dan Williams <dan.j.williams@intel.com>,
Ira Weiny <ira.weiny@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Ben Widawsky <bwidawsk@kernel.org>,
Dave Jiang <dave.jiang@intel.com>,
linux-cxl@vger.kernel.org
Subject: Re: [PATCH v5 1/3] For ACPICA: Add the CXIMS structure definition to the CEDT table
Date: Thu, 3 Nov 2022 12:51:32 -0700 [thread overview]
Message-ID: <Y2QbxKMi9uIgYjvC@aschofie-mobl2> (raw)
In-Reply-To: <20221103180248.00007989@Huawei.com>
On Thu, Nov 03, 2022 at 06:02:48PM +0000, Jonathan Cameron wrote:
> On Wed, 26 Oct 2022 21:07:41 -0700
> alison.schofield@intel.com wrote:
>
> > From: Alison Schofield <alison.schofield@intel.com>
> >
> > A linux-ized ACPI patch is included here for reference. The ACPI
> > pull request has been merged and we expect the upstream version
> > shortly. https://github.com/acpica/acpica/pull/795
> >
> > The CXL XOR Interleave Math Structure (CXIMS) is added to the
> > CXL Early Discovery Table (CEDT). This new structure is defined
> > in the CXL 3.0 specification Section 9.17.1.4
> >
> > https://www.computeexpresslink.org/spec-landing
> >
> > Signed-off-by: Alison Schofield <alison.schofield@intel.com>
> One trivial comment.
>
> Checked against spec and lgtm
>
> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> > ---
> > include/acpi/actbl1.h | 14 +++++++++++++-
> > 1 file changed, 13 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
> > index 15c78678c5d3..f96f4fe5328d 100644
> > --- a/include/acpi/actbl1.h
> > +++ b/include/acpi/actbl1.h
> > @@ -329,7 +329,8 @@ struct acpi_cedt_header {
> > enum acpi_cedt_type {
> > ACPI_CEDT_TYPE_CHBS = 0,
> > ACPI_CEDT_TYPE_CFMWS = 1,
> > - ACPI_CEDT_TYPE_RESERVED = 2,
> > + ACPI_CEDT_TYPE_CXIMS = 2,
> > + ACPI_CEDT_TYPE_RESERVED = 3,
>
> Whilst I struggle to see the point of this RESERVED DEFINE it's almost in keeping
> with other similar definitions. However they do have comments to say
> that /* 3 and greater are reserved */ and the comma isn't present
> as these are guaranteed to be last element. Probably want to do the same.
Thanks Jonathan,
I see what you mean (now).
I think my best option here is to submit a separate (new) pull request to
ACPICA for the cleanup: remove comma and add comment.
FYI - The actual linuxized version of this patch, which grew to include
RDPAS is now available here:
https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=bleeding-edge&id=f350c68e3cd5ce605e44c7830029cd936a223f66
and was previously posted to linux-cxl as:
https://lore.kernel.org/linux-cxl/20220916232102.673102-1-alison.schofield@intel.com/
Alison
>
> > };
> >
> > /* Values for version field above */
> > @@ -380,6 +381,7 @@ struct acpi_cedt_cfmws_target_element {
> > /* Values for Interleave Arithmetic field above */
> >
> > #define ACPI_CEDT_CFMWS_ARITHMETIC_MODULO (0)
> > +#define ACPI_CEDT_CFMWS_ARITHMETIC_XOR (1)
> >
> > /* Values for Restrictions field above */
> >
> > @@ -389,6 +391,16 @@ struct acpi_cedt_cfmws_target_element {
> > #define ACPI_CEDT_CFMWS_RESTRICT_PMEM (1<<3)
> > #define ACPI_CEDT_CFMWS_RESTRICT_FIXED (1<<4)
> >
> > +/* 2: CXL XOR Interleave Math Structure */
> > +
> > +struct acpi_cedt_cxims {
> > + struct acpi_cedt_header header;
> > + u16 reserved1;
> > + u8 hbig;
> > + u8 nr_xormaps;
> > + u64 xormap_list[];
> > +};
> > +
> > /*******************************************************************************
> > *
> > * CPEP - Corrected Platform Error Polling table (ACPI 4.0)
>
next prev parent reply other threads:[~2022-11-03 19:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-27 4:07 [PATCH v5 0/3] CXL XOR Interleave Arithmetic alison.schofield
2022-10-27 4:07 ` [PATCH v5 1/3] For ACPICA: Add the CXIMS structure definition to the CEDT table alison.schofield
2022-11-03 18:02 ` Jonathan Cameron
2022-11-03 19:51 ` Alison Schofield [this message]
2022-10-27 4:07 ` [PATCH v5 2/3] cxl/acpi: Support CXL XOR Interleave Math (CXIMS) alison.schofield
2022-10-27 4:07 ` [PATCH v5 3/3] tools/testing/cxl: Add XOR Math support to cxl_test alison.schofield
2022-10-27 4:26 ` [PATCH v5 0/3] CXL XOR Interleave Arithmetic Alison Schofield
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=Y2QbxKMi9uIgYjvC@aschofie-mobl2 \
--to=alison.schofield@intel.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=bwidawsk@kernel.org \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=ira.weiny@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=vishal.l.verma@intel.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