From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: <linux-acpi@vger.kernel.org>, <linux-cxl@vger.kernel.org>,
<rafael@kernel.org>, <lenb@kernel.org>,
<dan.j.williams@intel.com>, <ira.weiny@intel.com>,
<vishal.l.verma@intel.com>, <alison.schofield@intel.com>,
<lukas@wunner.de>
Subject: Re: [PATCH 3/4] acpi: numa: Add setting of generic port system locality attributes
Date: Fri, 12 May 2023 17:10:06 +0100 [thread overview]
Message-ID: <20230512171006.00004515@Huawei.com> (raw)
In-Reply-To: <168333152832.2290593.17409054392013117865.stgit@djiang5-mobl3>
On Fri, 05 May 2023 17:05:28 -0700
Dave Jiang <dave.jiang@intel.com> wrote:
> Add generic port support for the parsing of HMAT system locality sub-table.
> The attributes will be added to the third array member of the access
> coordinates in order to not mix with the existing memory attributes it only
attributes. It only ?
Otherwise I'm having trouble following that sentence.
> provides the system locality attributes from initator to the generic port
> targets and is missing the rest of the data to the actual memory device.
>
> The complete attributes will be updated when a memory device is
> attached and the system locality information is calculated end to end.
>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> ---
> drivers/acpi/numa/hmat.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/acpi/numa/hmat.c b/drivers/acpi/numa/hmat.c
> index e2ab1cce0add..951579e903cf 100644
> --- a/drivers/acpi/numa/hmat.c
> +++ b/drivers/acpi/numa/hmat.c
> @@ -60,6 +60,7 @@ struct target_cache {
> enum {
> NODE_ACCESS_CLASS_0 = 0,
> NODE_ACCESS_CLASS_1,
> + NODE_ACCESS_CLASS_GENPORT,
> NODE_ACCESS_CLASS_MAX,
> };
>
> @@ -368,6 +369,12 @@ static __init int hmat_parse_locality(union acpi_subtable_headers *header,
> if (mem_hier == ACPI_HMAT_MEMORY) {
> target = find_mem_target(targs[targ]);
> if (target && target->processor_pxm == inits[init]) {
> + if (*target->device_handle) {
> + hmat_update_target_access(target, type, value,
> + NODE_ACCESS_CLASS_GENPORT);
> + continue;
There isn't anything that I know of that says a generic port has to be in it's own PXM.
In theory at least they could share one with CPUs or Memory.
Sure the access info will be inaccurate, but meh, it's a firmware table and if the spec
doesn't exclude it then someone might build it.
So rather than continuing here I think you need to add a check on there being memory
or not before deciding not to update the other access classes.
Jonathan
> + }
> +
> hmat_update_target_access(target, type, value,
> NODE_ACCESS_CLASS_0);
> /* If the node has a CPU, update access 1 */
>
>
next prev parent reply other threads:[~2023-05-12 16:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-06 0:05 [PATCH 0/4] acpi: numa: add target support for generic port to HMAT parsing Dave Jiang
2023-05-06 0:05 ` [PATCH 1/4] acpi: numa: Create enum for memory_target access coordinates indexing Dave Jiang
2023-05-12 15:43 ` Jonathan Cameron
2023-05-06 0:05 ` [PATCH 2/4] acpi: numa: Add genport target allocation to the HMAT parsing Dave Jiang
2023-05-12 16:00 ` Jonathan Cameron
2023-05-06 0:05 ` [PATCH 3/4] acpi: numa: Add setting of generic port system locality attributes Dave Jiang
2023-05-12 16:10 ` Jonathan Cameron [this message]
2023-05-12 16:16 ` Jonathan Cameron
2023-05-12 16:22 ` Dave Jiang
2023-05-06 0:05 ` [PATCH 4/4] acpi: numa: Add helper function to retrieve the performance attributes Dave Jiang
2023-05-12 16:25 ` Jonathan Cameron
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=20230512171006.00004515@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=alison.schofield@intel.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=ira.weiny@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=rafael@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;
as well as URLs for NNTP newsgroup(s).