[MTL] x86: Fix Cache info sysfs is not populated

Bug #2049793 reported by Bun K Tan
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intel
New
Undecided
Unassigned
linux (Ubuntu)
Fix Released
High
You-Sheng Yang
Noble
Fix Released
High
You-Sheng Yang

Bug Description

[SRU Justification]

[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://<email address hidden>/
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.

========== original bug report ==========

[Description]
  The interface /sys/devices/system/cpu/cpu*/cache is empty. In Meteorlake, not all CPUs have the same number of subleaves in the CPUID 4 leaf. The compute die CPUs have 3 subleaves whereas the CPUs in the SoC die have 2. This problem happens because Linux assumes that all CPUs have the same number of subleaves.

[Hardware Information]
  Architecture:
    Intel / AMD (x86_64)
  Platform(s):
    Meteor Lake
  Date HW is expected at Canonical:

  Component(s):
    x86

[Software Information]
  Target Version:
    24.04
  Target Kernel:
    6.8
  Commit IDs:
    TBD
  External Links:
    https://<email address hidden>/

[Business Justification]

[Testing guidance]

[External ID]
  LFE-6901

Revision history for this message
Anthony Wong (anthonywong) wrote :

This patchset is needed for intel-lpmd to function correctly on Meteor Lake. I suggest we backport and carry them in Noble.

affects: ubuntu → linux (Ubuntu)
Bun K Tan (bktan1)
information type: Private → Public
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Verified this populates cpu cache info for MTL platform:

$ ls /sys/devices/system/cpu/cpu0/cache/
index0 index1 index2 index3 uevent

Changed in linux (Ubuntu Noble):
status: New → In Progress
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
You-Sheng Yang (vicamo) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 6.8.0-28.28

---------------
linux (6.8.0-28.28) noble; urgency=medium

  * noble/linux: 6.8.0-28.28 -proposed tracker (LP: #2061867)

  * linux-gcp 6.8.0-1005.5 (+ others) Noble kernel regression iwth new apparmor
    profiles/features (LP: #2061851)
    - SAUCE: apparmor4.0.0 [92/90]: fix address mapping for recvfrom

 -- Paolo Pisati <email address hidden> Tue, 16 Apr 2024 18:29:17 +0200

Changed in linux (Ubuntu Noble):
status: In Progress → Fix Released
Revision history for this message
Bun K Tan (bktan1) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.