From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: <rafael.j.wysocki@intel.com>, Len Brown <lenb@kernel.org>,
"Alison Schofield" <alison.schofield@intel.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
<linux-cxl@vger.kernel.org>, <linux-acpi@vger.kernel.org>
Subject: Re: [PATCH 0/6] Introduce acpi_table_parse_cedt and extra nodes for CXL.mem
Date: Mon, 1 Nov 2021 12:00:55 +0000 [thread overview]
Message-ID: <20211101120055.00007383@Huawei.com> (raw)
In-Reply-To: <163553708697.2509508.16523059414830959692.stgit@dwillia2-desk3.amr.corp.intel.com>
On Fri, 29 Oct 2021 12:51:27 -0700
Dan Williams <dan.j.williams@intel.com> wrote:
> Hi Rafael,
>
> While reviewing "[PATCH v3] ACPI: NUMA: Add a node and memblk for each
> CFMWS not in SRAT" [1]. I noticed that it was open coding CEDT sub-table
> parsing in a similar fashion as drivers/cxl/acpi.c. The driver open
> coded the parsing because the ACPI sub-table helpers are marked __init.
> In order to avoid the ongoing maintenance burden of a split between
> "early" and "late" ACPI sub-table parsing this series proposes to make
> those helpers available to drivers.
>
> The savings in drivers/cxl/ are:
>
> drivers/cxl/Kconfig | 1
> drivers/cxl/acpi.c | 234 +++++++++++++++++++--------------------------------
> 2 files changed, 88 insertions(+), 147 deletions(-)
>
> ...and 15 lines new code not added are saved in this new version of
> "ACPI: NUMA: Add a node and memblk for each CFMWS not in SRAT".
>
> Let me know if this looks ok to you and I can carry it in the CXL tree
> (i.e. after the merge window, for v5.17 consideration).
>
> [1]: https://lore.kernel.org/r/20211019050908.449231-1-alison.schofield@intel.com
Is it worth the complexity of the __init_or_acpilib and export part?
Seems like a fiddly dance for what looks to be minor savings...
Jonathan
>
> ---
>
> Alison Schofield (1):
> ACPI: NUMA: Add a node and memblk for each CFMWS not in SRAT
>
> Dan Williams (5):
> ACPI: Keep sub-table parsing infrastructure available for modules
> ACPI: Teach ACPI table parsing about the CEDT header format
> ACPI: Add a context argument for table parsing handlers
> cxl/acpi: Convert CFMWS parsing to ACPI sub-table helpers
> cxl/test: Mock acpi_table_parse_cedt()
>
>
> drivers/acpi/Kconfig | 3 +
> drivers/acpi/numa/srat.c | 59 ++++++++++
> drivers/acpi/tables.c | 87 +++++++++++----
> drivers/cxl/Kconfig | 1
> drivers/cxl/acpi.c | 237 ++++++++++++++++-------------------------
> include/linux/acpi.h | 34 +++++-
> tools/testing/cxl/Kbuild | 3 -
> tools/testing/cxl/test/cxl.c | 68 ++++++++----
> tools/testing/cxl/test/mock.c | 30 ++---
> tools/testing/cxl/test/mock.h | 6 +
> 10 files changed, 304 insertions(+), 224 deletions(-)
>
> base-commit: c6d7e1341cc99ba49df1384c8c5b3f534a5463b1
next prev parent reply other threads:[~2021-11-01 12:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 19:51 [PATCH 0/6] Introduce acpi_table_parse_cedt and extra nodes for CXL.mem Dan Williams
2021-10-29 19:51 ` [PATCH 1/6] ACPI: Keep sub-table parsing infrastructure available for modules Dan Williams
2021-10-29 19:51 ` [PATCH 2/6] ACPI: Teach ACPI table parsing about the CEDT header format Dan Williams
2021-10-29 19:51 ` [PATCH 3/6] ACPI: Add a context argument for table parsing handlers Dan Williams
2021-10-29 19:51 ` [PATCH 4/6] cxl/acpi: Convert CFMWS parsing to ACPI sub-table helpers Dan Williams
2021-10-29 19:51 ` [PATCH 5/6] cxl/test: Mock acpi_table_parse_cedt() Dan Williams
2021-10-29 19:51 ` [PATCH 6/6] ACPI: NUMA: Add a node and memblk for each CFMWS not in SRAT Dan Williams
2021-11-18 13:12 ` Jonathan Cameron
2021-11-18 17:14 ` Dan Williams
2021-11-18 17:53 ` Jonathan Cameron
2021-11-18 18:10 ` Dan Williams
2021-11-18 18:18 ` Jonathan Cameron
2021-11-01 12:00 ` Jonathan Cameron [this message]
2021-11-02 3:41 ` [PATCH 0/6] Introduce acpi_table_parse_cedt and extra nodes for CXL.mem Dan Williams
2021-11-02 17:44 ` Jonathan Cameron
2021-11-05 15:07 ` Rafael J. Wysocki
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=20211101120055.00007383@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=alison.schofield@intel.com \
--cc=dan.j.williams@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=rafael@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.