diff options
| author | Alison Schofield <[email protected]> | 2025-03-06 21:36:51 +0000 |
|---|---|---|
| committer | Dave Jiang <[email protected]> | 2025-03-14 23:28:15 +0000 |
| commit | 74d9c59658e4d3b06f163da0c5ed7647656705c1 (patch) | |
| tree | f632eca4f44e77cf9b624a4098a09a007529d380 /net/unix/af_unix.c | |
| parent | cxl/Documentation: Remove 'mixed' from sysfs mode doc (diff) | |
| download | kernel-74d9c59658e4d3b06f163da0c5ed7647656705c1.tar.gz kernel-74d9c59658e4d3b06f163da0c5ed7647656705c1.zip | |
cxl/region: Quiet some dev_warn()s in extended linear cache setup
Extended Linear Cache (ELC) setup code emits a dev_warn(), "Extended
linear cache calculation failed." for issues found while setting up
the ELC.
For platforms without CONFIG_ACPI_HMAT, every auto region setup will
emit the warning because the default !ACPI_HMAT return value is
EOPNOTSUPP. Suppress it by skipping the warn for EOPNOTSUPP. Change
the EOPNOTSUPP in the actual ELC failure path to ENXIO.
Remove the check and enusing dev_warn() when region resource size is
NULL. The endpoint decoders hpa_range used to create the resource is
checked in init_hdm_decoder(), so it cannot be NULL here.
For good measure, add the rc value to the dev_warn(). It will either
be the -ENOENT returned by HMAT if the mem target is not found, or
the -ENXIO from the region driver calculation.
Reviewed-by: Li Ming <[email protected]>
Signed-off-by: Alison Schofield <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
