Skip to content

Commit 4d4840b

Browse files
babumogerbp3tk0v
authored andcommitted
x86/resctrl: Add SDCIAE feature in the command line options
Add a kernel command-line parameter to enable or disable the exposure of the L3 Smart Data Cache Injection Allocation Enforcement (SDCIAE) 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://patch.msgid.link/c623edf7cb369ba9da966de47d9f1b666778a40e.1762995456.git.babu.moger@amd.com
1 parent 3767def commit 4d4840b

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6207,7 +6207,7 @@
62076207
rdt= [HW,X86,RDT]
62086208
Turn on/off individual RDT features. List is:
62096209
cmt, mbmtotal, mbmlocal, l3cat, l3cdp, l2cat, l2cdp,
6210-
mba, smba, bmec, abmc.
6210+
mba, smba, bmec, abmc, sdciae.
62116211
E.g. to turn on cmt and turn off mba use:
62126212
rdt=cmt,!mba
62136213

Documentation/filesystems/resctrl.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ AMD refers to this feature as AMD Platform Quality of Service(AMD QoS).
1717
This feature is enabled by the CONFIG_X86_CPU_RESCTRL and the x86 /proc/cpuinfo
1818
flag bits:
1919

20-
=============================================== ================================
21-
RDT (Resource Director Technology) Allocation "rdt_a"
22-
CAT (Cache Allocation Technology) "cat_l3", "cat_l2"
23-
CDP (Code and Data Prioritization) "cdp_l3", "cdp_l2"
24-
CQM (Cache QoS Monitoring) "cqm_llc", "cqm_occup_llc"
25-
MBM (Memory Bandwidth Monitoring) "cqm_mbm_total", "cqm_mbm_local"
26-
MBA (Memory Bandwidth Allocation) "mba"
27-
SMBA (Slow Memory Bandwidth Allocation) ""
28-
BMEC (Bandwidth Monitoring Event Configuration) ""
29-
ABMC (Assignable Bandwidth Monitoring Counters) ""
30-
=============================================== ================================
20+
=============================================================== ================================
21+
RDT (Resource Director Technology) Allocation "rdt_a"
22+
CAT (Cache Allocation Technology) "cat_l3", "cat_l2"
23+
CDP (Code and Data Prioritization) "cdp_l3", "cdp_l2"
24+
CQM (Cache QoS Monitoring) "cqm_llc", "cqm_occup_llc"
25+
MBM (Memory Bandwidth Monitoring) "cqm_mbm_total", "cqm_mbm_local"
26+
MBA (Memory Bandwidth Allocation) "mba"
27+
SMBA (Slow Memory Bandwidth Allocation) ""
28+
BMEC (Bandwidth Monitoring Event Configuration) ""
29+
ABMC (Assignable Bandwidth Monitoring Counters) ""
30+
SDCIAE (Smart Data Cache Injection Allocation Enforcement) ""
31+
=============================================================== ================================
3132

3233
Historically, new features were made visible by default in /proc/cpuinfo. This
3334
resulted in the feature flags becoming hard to parse by humans. Adding a new

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ enum {
719719
RDT_FLAG_SMBA,
720720
RDT_FLAG_BMEC,
721721
RDT_FLAG_ABMC,
722+
RDT_FLAG_SDCIAE,
722723
};
723724

724725
#define RDT_OPT(idx, n, f) \
@@ -745,6 +746,7 @@ static struct rdt_options rdt_options[] __ro_after_init = {
745746
RDT_OPT(RDT_FLAG_SMBA, "smba", X86_FEATURE_SMBA),
746747
RDT_OPT(RDT_FLAG_BMEC, "bmec", X86_FEATURE_BMEC),
747748
RDT_OPT(RDT_FLAG_ABMC, "abmc", X86_FEATURE_ABMC),
749+
RDT_OPT(RDT_FLAG_SDCIAE, "sdciae", X86_FEATURE_SDCIAE),
748750
};
749751
#define NUM_RDT_OPTIONS ARRAY_SIZE(rdt_options)
750752

0 commit comments

Comments
 (0)