Commit 74d9c59
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 <ming.li@zohomail.com>
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20250306213700.2606304-1-alison.schofield@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>1 parent 962ac4c commit 74d9c59
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3235 | 3235 | | |
3236 | 3236 | | |
3237 | 3237 | | |
3238 | | - | |
| 3238 | + | |
| 3239 | + | |
3239 | 3240 | | |
3240 | 3241 | | |
3241 | | - | |
3242 | | - | |
3243 | | - | |
3244 | | - | |
3245 | 3242 | | |
3246 | 3243 | | |
3247 | 3244 | | |
| |||
3253 | 3250 | | |
3254 | 3251 | | |
3255 | 3252 | | |
3256 | | - | |
| 3253 | + | |
3257 | 3254 | | |
3258 | 3255 | | |
3259 | 3256 | | |
| |||
3305 | 3302 | | |
3306 | 3303 | | |
3307 | 3304 | | |
3308 | | - | |
| 3305 | + | |
3309 | 3306 | | |
3310 | 3307 | | |
3311 | 3308 | | |
3312 | 3309 | | |
3313 | 3310 | | |
3314 | 3311 | | |
3315 | | - | |
| 3312 | + | |
3316 | 3313 | | |
3317 | 3314 | | |
3318 | 3315 | | |
| |||
0 commit comments