]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/resctrl: Add ABMC feature in the command line options
authorBabu Moger <babu.moger@amd.com>
Fri, 5 Sep 2025 21:34:05 +0000 (16:34 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 10:05:23 +0000 (12:05 +0200)
Add a kernel command-line parameter to enable or disable the exposure of
the ABMC (Assignable Bandwidth Monitoring Counters) hardware feature to
resctrl.

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
Documentation/admin-guide/kernel-parameters.txt
Documentation/filesystems/resctrl.rst
arch/x86/kernel/cpu/resctrl/core.c

index 5a7a83c411e9c526f8df6d28beb4c784aec3cac9..889e68e83682d1e0b291a286561c26fc0133c0f6 100644 (file)
        rdt=            [HW,X86,RDT]
                        Turn on/off individual RDT features. List is:
                        cmt, mbmtotal, mbmlocal, l3cat, l3cdp, l2cat, l2cdp,
-                       mba, smba, bmec.
+                       mba, smba, bmec, abmc.
                        E.g. to turn on cmt and turn off mba use:
                                rdt=cmt,!mba
 
index c7949dd44f2f3aa007e11a565cf4b1baaaaba9e0..c97fd77a107dc6ed15b3f6e32be45858595daf8f 100644 (file)
@@ -26,6 +26,7 @@ MBM (Memory Bandwidth Monitoring)             "cqm_mbm_total", "cqm_mbm_local"
 MBA (Memory Bandwidth Allocation)              "mba"
 SMBA (Slow Memory Bandwidth Allocation)         ""
 BMEC (Bandwidth Monitoring Event Configuration) ""
+ABMC (Assignable Bandwidth Monitoring Counters) ""
 ===============================================        ================================
 
 Historically, new features were made visible by default in /proc/cpuinfo. This
index fbf019c1ff11bfb0b05129d3b8c3d767e9eba7d1..b07b12a058862b53a1dfd7cdfc5742c547e760a0 100644 (file)
@@ -711,6 +711,7 @@ enum {
        RDT_FLAG_MBA,
        RDT_FLAG_SMBA,
        RDT_FLAG_BMEC,
+       RDT_FLAG_ABMC,
 };
 
 #define RDT_OPT(idx, n, f)     \
@@ -736,6 +737,7 @@ static struct rdt_options rdt_options[]  __ro_after_init = {
        RDT_OPT(RDT_FLAG_MBA,       "mba",      X86_FEATURE_MBA),
        RDT_OPT(RDT_FLAG_SMBA,      "smba",     X86_FEATURE_SMBA),
        RDT_OPT(RDT_FLAG_BMEC,      "bmec",     X86_FEATURE_BMEC),
+       RDT_OPT(RDT_FLAG_ABMC,      "abmc",     X86_FEATURE_ABMC),
 };
 #define NUM_RDT_OPTIONS ARRAY_SIZE(rdt_options)