[PATCH v7 02/10] x86/resctrl: Add SDCIAE feature in the command line options

Babu Moger posted 10 patches 2 months, 4 weeks ago
There is a newer version of this series
[PATCH v7 02/10] x86/resctrl: Add SDCIAE feature in the command line options
Posted by Babu Moger 2 months, 4 weeks ago
Add the command line options to enable or disable the new resctrl feature
L3 Smart Data Cache Injection Allocation Enforcement (SDCIAE).

Signed-off-by: Babu Moger <babu.moger@amd.com>
---
v7: No changes.

v6: No changes.

v5: No changes.

v4: No changes.

v3: No changes.

v2: No changes.
---
 Documentation/admin-guide/kernel-parameters.txt | 2 +-
 arch/x86/kernel/cpu/resctrl/core.c              | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 07e22ba5bfe3..aa1c5948bec2 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -6066,7 +6066,7 @@
 	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, sdciae.
 			E.g. to turn on cmt and turn off mba use:
 				rdt=cmt,!mba
 
diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c
index 187d527ef73b..f6d84882cc4e 100644
--- a/arch/x86/kernel/cpu/resctrl/core.c
+++ b/arch/x86/kernel/cpu/resctrl/core.c
@@ -707,6 +707,7 @@ enum {
 	RDT_FLAG_MBA,
 	RDT_FLAG_SMBA,
 	RDT_FLAG_BMEC,
+	RDT_FLAG_SDCIAE,
 };
 
 #define RDT_OPT(idx, n, f)	\
@@ -732,6 +733,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_SDCIAE,    "sdciae",	X86_FEATURE_SDCIAE),
 };
 #define NUM_RDT_OPTIONS ARRAY_SIZE(rdt_options)
 
-- 
2.34.1
Re: [PATCH v7 02/10] x86/resctrl: Add SDCIAE feature in the command line options
Posted by Reinette Chatre 2 months, 2 weeks ago
Hi Babu,

On 7/10/25 10:16 AM, Babu Moger wrote:
> Add the command line options to enable or disable the new resctrl feature
> L3 Smart Data Cache Injection Allocation Enforcement (SDCIAE).
> 
> Signed-off-by: Babu Moger <babu.moger@amd.com>
> ---
...
> ---
>  Documentation/admin-guide/kernel-parameters.txt | 2 +-
>  arch/x86/kernel/cpu/resctrl/core.c              | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)

Could you please also add associated update to
Documentation/filesystems/resctrl.rst ? For reference, the similar
ABMC change:
https://lore.kernel.org/lkml/00cd603997e3ee6a389f83aef066fe7313b1abaf.1752013061.git.babu.moger@amd.com/

Reinette
Re: [PATCH v7 02/10] x86/resctrl: Add SDCIAE feature in the command line options
Posted by Moger, Babu 2 months, 1 week ago
Hi Reinette,

On 7/21/25 18:29, Reinette Chatre wrote:
> Hi Babu,
> 
> On 7/10/25 10:16 AM, Babu Moger wrote:
>> Add the command line options to enable or disable the new resctrl feature
>> L3 Smart Data Cache Injection Allocation Enforcement (SDCIAE).
>>
>> Signed-off-by: Babu Moger <babu.moger@amd.com>
>> ---
> ...
>> ---
>>  Documentation/admin-guide/kernel-parameters.txt | 2 +-
>>  arch/x86/kernel/cpu/resctrl/core.c              | 2 ++
>>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> Could you please also add associated update to
> Documentation/filesystems/resctrl.rst ? For reference, the similar
> ABMC change:
> https://lore.kernel.org/lkml/00cd603997e3ee6a389f83aef066fe7313b1abaf.1752013061.git.babu.moger@amd.com/
> 

Sure. Will take care of it.
-- 
Thanks
Babu Moger