[PATCH v1 0/2] platform/x86/intel-uncore-freq: Expose instance ID in the sysfs
From: Maciej Wieczor-Retman
Date: Fri Mar 27 2026 - 11:44:03 EST
In TPMI devices, an instance is a feature copy that's local to the TPMI
device. It has its own control and header registers and it is tied to a
die that is a unit of uncore control.
Uncore Frequency Scaling (UFS) is a special feature in the sense that it
can have instances further split into clusters if there is more than one
per-die.
On older systems the domain_id value exported in sysfs matches the
instance value, as in it is unique in the single TPMI device scope. But
on newer systems that can have multiple clusters on a single die, the
intel-uncore-freq driver behaves differently and the domain_id is a
globally unique value - unique on all TPMI devices. Therefore it's
difficult to match a specific instance to a set of UFS registers for
example visible through /sys/kernel/debug/tpmi directories.
Separately exporting the instance value that's local to a TPMI device
and not globally unique can help restore the now lost value association.
Maciej Wieczor-Retman (2):
platform/x86/intel-uncore-freq: Rename instance_id
platform/x86/intel-uncore-freq: Expose instance ID in the sysfs
.../uncore-frequency/uncore-frequency-common.c | 16 +++++++++++++---
.../uncore-frequency/uncore-frequency-common.h | 8 ++++++--
.../uncore-frequency/uncore-frequency-tpmi.c | 17 ++++++++++++++++-
3 files changed, 35 insertions(+), 6 deletions(-)
--
2.53.0