From: Alison Schofield <alison.schofield@intel.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,
jonathan.cameron@huawei.com, ira.weiny@intel.com,
ming.li@zohomail.com
Subject: Re: [PATCH v4 2/4] acpi/hmat / cxl: Add extended linear cache support for CXL
Date: Tue, 25 Feb 2025 12:11:09 -0800 [thread overview]
Message-ID: <Z74j3U_60B2YEDQS@aschofie-mobl2.lan> (raw)
In-Reply-To: <20250224182202.1683380-3-dave.jiang@intel.com>
On Mon, Feb 24, 2025 at 11:21:00AM -0700, Dave Jiang wrote:
snip to a dev_dbg message of interest -
> diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
> index e8d11a988fd9..cd7b0c31ebf7 100644
> --- a/drivers/cxl/core/region.c
> +++ b/drivers/cxl/core/region.c
snip
> @@ -1951,7 +1965,7 @@ static int cxl_region_attach(struct cxl_region *cxlr,
> return -ENXIO;
> }
>
> - if (resource_size(cxled->dpa_res) * p->interleave_ways !=
> + if (resource_size(cxled->dpa_res) * p->interleave_ways + p->cache_size !=
> resource_size(p->res)) {
> dev_dbg(&cxlr->dev,
> "%s:%s: decoder-size-%#llx * ways-%d != region-size-%#llx\n",
Add cache to this message since used in calculation above.
Took the liberty of trimming 'decoder-size' to '-size' since the decoder name
already precedes '-size'.
dev_dbg(&cxlr->dev,
- "%s:%s: decoder-size-%#llx * ways-%d != region-size-%#llx\n",
+ "%s:%s-size-%#llx * ways-%d + cache-%#llx != region-size-%#llx\n",
dev_name(&cxlmd->dev), dev_name(&cxled->cxld.dev),
(u64)resource_size(cxled->dpa_res), p->interleave_ways,
- (u64)resource_size(p->res));
+ (u64)p->cache_size, (u64)resource_size(p->res));
return -EINVAL;
}
snip
next prev parent reply other threads:[~2025-02-25 20:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-24 18:20 [PATCH v4 0/4] acpi/hmat / cxl: Add exclusive caching enumeration and RAS support Dave Jiang
2025-02-24 18:20 ` [PATCH v4 1/4] acpi: numa: Add support to enumerate and store extended linear address mode Dave Jiang
2025-02-25 14:09 ` Li Ming
2025-02-24 18:21 ` [PATCH v4 2/4] acpi/hmat / cxl: Add extended linear cache support for CXL Dave Jiang
2025-02-25 14:10 ` Li Ming
2025-02-25 20:00 ` Alison Schofield
2025-02-25 20:35 ` Dave Jiang
2025-02-25 20:11 ` Alison Schofield [this message]
2025-02-24 18:21 ` [PATCH v4 3/4] cxl: Add extended linear cache address alias emission for cxl events Dave Jiang
2025-02-25 14:10 ` Li Ming
2025-02-25 20:34 ` Alison Schofield
2025-02-24 18:21 ` [PATCH v4 4/4] cxl: Add mce notifier to emit aliased address for extended linear cache Dave Jiang
2025-02-25 14:11 ` Li Ming
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=Z74j3U_60B2YEDQS@aschofie-mobl2.lan \
--to=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=jonathan.cameron@huawei.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=ming.li@zohomail.com \
--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