From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: <linux-cxl@vger.kernel.org>, <linux-acpi@vger.kernel.org>,
<rafael@kernel.org>, <bp@alien8.de>, <dan.j.williams@intel.com>,
<tony.luck@intel.com>, <dave@stgolabs.net>,
<alison.schofield@intel.com>, <ira.weiny@intel.com>
Subject: Re: [PATCH v2 2/4] acpi/hmat / cxl: Add extended linear cache support for CXL
Date: Fri, 10 Jan 2025 16:25:24 +0000 [thread overview]
Message-ID: <20250110162524.00004d1b@huawei.com> (raw)
In-Reply-To: <20250110151913.3462283-3-dave.jiang@intel.com>
On Fri, 10 Jan 2025 08:17:45 -0700
Dave Jiang <dave.jiang@intel.com> wrote:
> The current cxl region size only indicates the size of the CXL memory
> region without accounting for the extended linear cache size. Retrieve the
> cache size from HMAT and append that to the cxl region size for the cxl
> region range that matches the SRAT range that has extended linear cache
> enabled.
>
> The SRAT defines the whole memory range that includes the extended linear
> cache and the CXL memory region. The new HMAT ECN/ECR to the Memory Side
> Cache Information Structure defines the size of the extended linear cache
> size and matches to the SRAT Memory Affinity Structure by the memory
> proxmity domain. Add a helper to match the cxl range to the SRAT memory
> range in order to retrieve the cache size.
>
> There are several places that checks the cxl region range against the
> decoder range. Use new helper to check between the two ranges and address
> the new cache size.
>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
LGTM
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
next prev parent reply other threads:[~2025-01-10 16:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 15:17 [PATCH v2 0/4] acpi/hmat / cxl: Add exclusive caching enumeration and RAS support Dave Jiang
2025-01-10 15:17 ` [PATCH v2 1/4] acpi: numa: Add support to enumerate and store extended linear address mode Dave Jiang
2025-01-10 15:17 ` [PATCH v2 2/4] acpi/hmat / cxl: Add extended linear cache support for CXL Dave Jiang
2025-01-10 16:25 ` Jonathan Cameron [this message]
2025-01-10 15:17 ` [PATCH v2 3/4] cxl: Add extended linear cache address alias emission for cxl events Dave Jiang
2025-01-10 16:32 ` Jonathan Cameron
2025-01-10 17:27 ` Dave Jiang
2025-01-13 12:53 ` Jonathan Cameron
2025-01-13 17:54 ` Dave Jiang
2025-01-10 17:29 ` Dave Jiang
2025-01-10 15:17 ` [PATCH v2 4/4] cxl: Add mce notifier to emit aliased address for extended linear cache Dave Jiang
2025-01-10 16:34 ` Jonathan Cameron
2025-01-13 3:15 ` Li Ming
2025-01-13 17:52 ` Dave Jiang
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=20250110162524.00004d1b@huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=alison.schofield@intel.com \
--cc=bp@alien8.de \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--cc=ira.weiny@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=tony.luck@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