Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Babu Moger and committed by
Borislav Petkov (AMD)
4d4840b1 3767def1

+15 -12
+1 -1
Documentation/admin-guide/kernel-parameters.txt
··· 6207 6207 rdt= [HW,X86,RDT] 6208 6208 Turn on/off individual RDT features. List is: 6209 6209 cmt, mbmtotal, mbmlocal, l3cat, l3cdp, l2cat, l2cdp, 6210 - mba, smba, bmec, abmc. 6210 + mba, smba, bmec, abmc, sdciae. 6211 6211 E.g. to turn on cmt and turn off mba use: 6212 6212 rdt=cmt,!mba 6213 6213
+12 -11
Documentation/filesystems/resctrl.rst
··· 17 17 This feature is enabled by the CONFIG_X86_CPU_RESCTRL and the x86 /proc/cpuinfo 18 18 flag bits: 19 19 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 + =============================================================== ================================ 31 32 32 33 Historically, new features were made visible by default in /proc/cpuinfo. This 33 34 resulted in the feature flags becoming hard to parse by humans. Adding a new
+2
arch/x86/kernel/cpu/resctrl/core.c
··· 719 719 RDT_FLAG_SMBA, 720 720 RDT_FLAG_BMEC, 721 721 RDT_FLAG_ABMC, 722 + RDT_FLAG_SDCIAE, 722 723 }; 723 724 724 725 #define RDT_OPT(idx, n, f) \ ··· 746 745 RDT_OPT(RDT_FLAG_SMBA, "smba", X86_FEATURE_SMBA), 747 746 RDT_OPT(RDT_FLAG_BMEC, "bmec", X86_FEATURE_BMEC), 748 747 RDT_OPT(RDT_FLAG_ABMC, "abmc", X86_FEATURE_ABMC), 748 + RDT_OPT(RDT_FLAG_SDCIAE, "sdciae", X86_FEATURE_SDCIAE), 749 749 }; 750 750 #define NUM_RDT_OPTIONS ARRAY_SIZE(rdt_options) 751 751