]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/power turbostat: Handle non-root legacy-uncore sysfs permissions
authorLen Brown <len.brown@intel.com>
Sat, 9 Aug 2025 20:31:31 +0000 (16:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:36:25 +0000 (18:36 +0200)
commit06cd171bc335fd47b75ca01f37dbdd29a5991f13
tree0f3c3e68224350f3a78f245abd4dee42c6020352
parentad96ead7c734b1263d82ad69c4e9fac0deba9f32
tools/power turbostat: Handle non-root legacy-uncore sysfs permissions

[ Upstream commit e60a13bcef206795d3ddf82f130fe8f570176d06 ]

/sys/devices/system/cpu/intel_uncore_frequency/package_X_die_Y/
may be readable by all, but
/sys/devices/system/cpu/intel_uncore_frequency/package_X_die_Y/current_freq_khz
may be readable only by root.

Non-root turbostat users see complaints in this scenario.

Fail probe of the interface if we can't read current_freq_khz.

Reported-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Original-patch-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/x86/turbostat/turbostat.c