From: Dave Jiang <dave.jiang@intel.com>
To: linux-cxl@vger.kernel.org
Cc: dave@stgolabs.net, jonathan.cameron@huawei.com,
alison.schofield@intel.com, vishal.l.verma@intel.com,
ira.weiny@intel.com, dan.j.williams@intel.com
Subject: Re: [PATCH v2] cxl: Adjust extended linear cache failure emission in cxl_acpi
Date: Mon, 3 Nov 2025 16:48:25 -0700 [thread overview]
Message-ID: <5798e07c-dc3f-4664-97bd-6fa196ff1f87@intel.com> (raw)
In-Reply-To: <20251003185509.3215900-1-dave.jiang@intel.com>
On 10/3/25 11:55 AM, Dave Jiang wrote:
> The cxl_acpi module spams "Extended linear cache calculation failed"
> when the hmat memory target is not found for a node. This is normal
> when the memory target does not contain extended linear cache
> attributes. Adjust cxl_acpi_set_cache_size() to just return 0 if error
> is returned from hmat_get_extended_linear_cache_size(). That is the
> only error returned from hmat_get_extended_linear_cache_size() as
> -ENOENT.
>
> Also remove the check for -EOPNOTSUPP in cxl_setup_extended_linear_cache()
> since that errno is never returned by cxl_acpi_set_cache_size().
>
> Suggeted-by: Dan Williams <dan.j.williams@intel.com>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Applied to cxl/next
f0c5d3bc2830f04a72087f45d15807943eabfa10
>
> ---
> v2:
> - Rename subject line to reflect new changes.
> - Further analysis of the code and determined this is the correct
> change.
> ---
> drivers/cxl/acpi.c | 18 ++++++++----------
> 1 file changed, 8 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
> index d7a5539d07d4..cc4d7bf381d3 100644
> --- a/drivers/cxl/acpi.c
> +++ b/drivers/cxl/acpi.c
> @@ -353,7 +353,7 @@ static int cxl_acpi_set_cache_size(struct cxl_root_decoder *cxlrd)
>
> rc = hmat_get_extended_linear_cache_size(&res, nid, &cache_size);
> if (rc)
> - return rc;
> + return 0;
>
> /*
> * The cache range is expected to be within the CFMWS.
> @@ -381,15 +381,13 @@ static void cxl_setup_extended_linear_cache(struct cxl_root_decoder *cxlrd)
> if (!rc)
> return;
>
> - if (rc != -EOPNOTSUPP) {
> - /*
> - * Failing to support extended linear cache region resize does not
> - * prevent the region from functioning. Only causes cxl list showing
> - * incorrect region size.
> - */
> - dev_warn(cxlrd->cxlsd.cxld.dev.parent,
> - "Extended linear cache calculation failed rc:%d\n", rc);
> - }
> + /*
> + * Failing to retrieve extended linear cache region resize does not
> + * prevent the region from functioning. Only causes cxl list showing
> + * incorrect region size.
> + */
> + dev_warn(cxlrd->cxlsd.cxld.dev.parent,
> + "Extended linear cache retrieval failed rc:%d\n", rc);
>
> /* Ignoring return code */
> cxlrd->cache_size = 0;
>
> base-commit: 46037455cbb748c5e85071c95f2244e81986eb58
prev parent reply other threads:[~2025-11-03 23:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-03 18:55 [PATCH v2] cxl: Adjust extended linear cache failure emission in cxl_acpi Dave Jiang
2025-10-28 16:05 ` Jonathan Cameron
2025-10-29 1:46 ` Alison Schofield
2025-11-03 23:48 ` Dave Jiang [this message]
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=5798e07c-dc3f-4664-97bd-6fa196ff1f87@intel.com \
--to=dave.jiang@intel.com \
--cc=alison.schofield@intel.com \
--cc=dan.j.williams@intel.com \
--cc=dave@stgolabs.net \
--cc=ira.weiny@intel.com \
--cc=jonathan.cameron@huawei.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 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.