aboutsummaryrefslogtreecommitdiffstats
path: root/tools/debugging/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorBabu Moger <babu.moger@amd.com>2025-10-20 12:53:08 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-23 16:24:39 +0200
commit265268cebe7fba84827a4c52c77fd26fab130527 (patch)
tree36d6d27f994f3dbccaec09a624489aae07f3cdfd /tools/debugging/git:/ssh:/git@git.zx2c4.com
parentNFSD: Define a proc_layoutcommit for the FlexFiles layout type (diff)
downloadlaptop-kernel-265268cebe7fba84827a4c52c77fd26fab130527.tar.xz
laptop-kernel-265268cebe7fba84827a4c52c77fd26fab130527.zip
x86/resctrl: Refactor resctrl_arch_rmid_read()
[ Upstream commit 7c9ac605e202c4668e441fc8146a993577131ca1 ] resctrl_arch_rmid_read() adjusts the value obtained from MSR_IA32_QM_CTR to account for the overflow for MBM events and apply counter scaling for all the events. This logic is common to both reading an RMID and reading a hardware counter directly. Refactor the hardware value adjustment logic into get_corrected_val() to prepare for support of reading a hardware counter. Signed-off-by: Babu Moger <babu.moger@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Link: https://lore.kernel.org/cover.1757108044.git.babu.moger@amd.com Stable-dep-of: 15292f1b4c55 ("x86/resctrl: Fix miscount of bandwidth event when reactivating previously unavailable RMID") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/debugging/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions