]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/resctrl: Enable RDT_RESOURCE_PERF_PKG
authorTony Luck <tony.luck@intel.com>
Thu, 8 Jan 2026 17:42:27 +0000 (09:42 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sat, 10 Jan 2026 10:48:13 +0000 (11:48 +0100)
commit4bbfc90122e974ccbd9aa80c964413052b9519f3
tree4704c5de4c8d237b35b09a2ed5c8bc4539d8c207
parentd0891647fbc6e931f27517364cbc4ee1811d76db
x86/resctrl: Enable RDT_RESOURCE_PERF_PKG

Since telemetry events are enumerated on resctrl mount the RDT_RESOURCE_PERF_PKG
resource is not considered "monitoring capable" during early resctrl initialization.
This means that the domain list for RDT_RESOURCE_PERF_PKG is not built when the CPU
hotplug notifiers are registered and run for the first time right after resctrl
initialization.

Mark the RDT_RESOURCE_PERF_PKG as "monitoring capable" upon successful telemetry
event enumeration to ensure future CPU hotplug events include this resource and
initialize its domain list for CPUs that are already online.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/20251217172121.12030-1-tony.luck@intel.com
arch/x86/kernel/cpu/resctrl/core.c
arch/x86/kernel/cpu/resctrl/intel_aet.c