mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/2] platform/x86/intel-uncore-freq: Expose instance ID in the sysfs
@ 2026-03-27 15:36 Maciej Wieczor-Retman
  2026-03-27 15:36 ` [PATCH v1 1/2] platform/x86/intel-uncore-freq: Rename instance_id Maciej Wieczor-Retman
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Maciej Wieczor-Retman @ 2026-03-27 15:36 UTC (permalink / raw)
  To: hansg, srinivas.pandruvada, ilpo.jarvinen
  Cc: linux-kernel, platform-driver-x86, dedekind1, artem.bityutskiy,
	m.wieczorretman

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-03-30 17:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-27 15:36 [PATCH v1 0/2] platform/x86/intel-uncore-freq: Expose instance ID in the sysfs Maciej Wieczor-Retman
2026-03-27 15:36 ` [PATCH v1 1/2] platform/x86/intel-uncore-freq: Rename instance_id Maciej Wieczor-Retman
2026-03-27 17:56   ` Artem Bityutskiy
2026-03-27 21:06     ` Maciej Wieczor-Retman
2026-03-27 15:36 ` [PATCH v1 2/2] platform/x86/intel-uncore-freq: Expose instance ID in the sysfs Maciej Wieczor-Retman
2026-03-27 17:51 ` [PATCH v1 0/2] " Artem Bityutskiy
2026-03-27 21:03   ` Maciej Wieczor-Retman
2026-03-29 19:30     ` srinivas pandruvada
2026-03-30  8:11       ` Maciej Wieczor-Retman
2026-03-30 17:10         ` srinivas pandruvada
2026-03-30 17:52           ` Maciej Wieczor-Retman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome