]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/resctrl: Add support to enable/disable AMD ABMC feature
authorBabu Moger <babu.moger@amd.com>
Fri, 5 Sep 2025 21:34:08 +0000 (16:34 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 10:09:30 +0000 (12:09 +0200)
commitfaebbc58cde9d8f6050ac152c34c88195ed4abaa
tree547049b9c165a5f8996d4bb6d6de9dc06e67c798
parent13390861b426e936db20d675804a5b405622bc79
x86/resctrl: Add support to enable/disable AMD ABMC feature

Add the functionality to enable/disable the AMD ABMC feature.

The AMD ABMC feature is enabled by setting enabled bit(0) in the
L3_QOS_EXT_CFG MSR. When the state of ABMC is changed, the MSR needs to be
updated on all the logical processors in the QOS Domain.

Hardware counters will reset when ABMC state is changed.

  [ bp: Massage commit message. ]

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
Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/resctrl/internal.h
arch/x86/kernel/cpu/resctrl/monitor.c
include/linux/resctrl.h