Skip to content

Commit a76f65c

Browse files
babumogerbp3tk0v
authored andcommitted
x86/resctrl: Include new features in command line options
Add the command line options to enable or disable the new resctrl features: smba: Slow Memory Bandwidth Allocation bmec: Bandwidth Monitor Event Configuration. Signed-off-by: Babu Moger <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 78335aa commit a76f65c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5221,7 +5221,7 @@
52215221
rdt= [HW,X86,RDT]
52225222
Turn on/off individual RDT features. List is:
52235223
cmt, mbmtotal, mbmlocal, l3cat, l3cdp, l2cat, l2cdp,
5224-
mba.
5224+
mba, smba, bmec.
52255225
E.g. to turn on cmt and turn off mba use:
52265226
rdt=cmt,!mba
52275227

arch/x86/kernel/cpu/resctrl/core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ enum {
659659
RDT_FLAG_L2_CAT,
660660
RDT_FLAG_L2_CDP,
661661
RDT_FLAG_MBA,
662+
RDT_FLAG_SMBA,
663+
RDT_FLAG_BMEC,
662664
};
663665

664666
#define RDT_OPT(idx, n, f) \
@@ -682,6 +684,8 @@ static struct rdt_options rdt_options[] __initdata = {
682684
RDT_OPT(RDT_FLAG_L2_CAT, "l2cat", X86_FEATURE_CAT_L2),
683685
RDT_OPT(RDT_FLAG_L2_CDP, "l2cdp", X86_FEATURE_CDP_L2),
684686
RDT_OPT(RDT_FLAG_MBA, "mba", X86_FEATURE_MBA),
687+
RDT_OPT(RDT_FLAG_SMBA, "smba", X86_FEATURE_SMBA),
688+
RDT_OPT(RDT_FLAG_BMEC, "bmec", X86_FEATURE_BMEC),
685689
};
686690
#define NUM_RDT_OPTIONS ARRAY_SIZE(rdt_options)
687691

0 commit comments

Comments
 (0)