[PATCH 0/4][Noble] x86: sysfs cache info may not be populated
You-Sheng Yang
vicamo.yang at canonical.com
Mon Mar 4 10:32:02 UTC 2024
BugLink: https://bugs.launchpad.net/bugs/2049793
[Impact]
The interface /sys/devices/system/cpu/cpuX/cache is broken (not populated) if
CPUs have different numbers of subleaves in CPUID 4. This is the case of Intel
Meteor Lake.
[Fix]
https://lore.kernel.org/all/20231212222519.12834-1-ricardo.neri-calderon@linux.intel.com/
Reviewed, but probably will only land in v6.9.
[Test Case]
Check existence of cpu cache info:
$ ls /sys/devices/system/cpu/cpu0/cache/
index0 index1 index2 index3 uevent
[Where problems could occur]
This populates sysfs entries that should have been available, not
something new or alters existing interface.
[Other Info]
While this is targets v6.8 for Intel LPMD (Low Power Model Daemon)'s
use, only Noble and Unstable will be nominated for fix.
Ricardo Neri (4):
UBUNTU: SAUCE: cacheinfo: Check for null last-level cache info
UBUNTU: SAUCE: cacheinfo: Allocate memory for memory if not done from
the primary CPU
UBUNTU: SAUCE: x86/cacheinfo: Delete global num_cache_leaves
UBUNTU: SAUCE: x86/cacheinfo: Clean out init_cache_level()
arch/x86/kernel/cpu/cacheinfo.c | 49 +++++++++++++++++----------------
drivers/base/cacheinfo.c | 9 +++++-
2 files changed, 34 insertions(+), 24 deletions(-)
--
2.43.0
More information about the kernel-team
mailing list