]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cxl: Adjust extended linear cache failure emission in cxl_acpi
authorDave Jiang <dave.jiang@intel.com>
Fri, 3 Oct 2025 18:55:09 +0000 (11:55 -0700)
committerDave Jiang <dave.jiang@intel.com>
Mon, 3 Nov 2025 16:28:59 +0000 (09:28 -0700)
commitf0c5d3bc2830f04a72087f45d15807943eabfa10
tree4ede73185c5905c92a3018a2a8f776fb9db24dd0
parent6146a0f1dfae5d37442a9ddcba012add260bceb0
cxl: Adjust extended linear cache failure emission in cxl_acpi

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().

[dj: Flipped minor return logic suggested by Jonathan ]
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20251003185509.3215900-1-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/acpi.c