Skip to content

Commit 2cc81c6

Browse files
xiaochenshenKAGA-KOKO
authored andcommitted
x86/intel_rdt: Show missing resctrl mount options
In resctrl filesystem, mount options exist to enable L3/L2 CDP and MBA Software Controller features if the platform supports them: mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps]] /sys/fs/resctrl But currently only "cdp" option is displayed in /proc/mounts. "cdpl2" and "mba_MBps" options are not shown even when they are active. Before: # mount -t resctrl resctrl -o cdp,mba_MBps /sys/fs/resctrl # grep resctrl /proc/mounts /sys/fs/resctrl /sys/fs/resctrl resctrl rw,relatime,cdp 0 0 After: # mount -t resctrl resctrl -o cdp,mba_MBps /sys/fs/resctrl # grep resctrl /proc/mounts /sys/fs/resctrl /sys/fs/resctrl resctrl rw,relatime,cdp,mba_MBps 0 0 Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com> Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: "H Peter Anvin" <hpa@zytor.com> Cc: "Tony Luck" <tony.luck@intel.com> Link: https://lkml.kernel.org/r/1536796118-60135-1-git-send-email-fenghua.yu@intel.com
1 parent 8215987 commit 2cc81c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/x86/kernel/cpu/intel_rdt_rdtgroup.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,6 +2795,13 @@ static int rdtgroup_show_options(struct seq_file *seq, struct kernfs_root *kf)
27952795
{
27962796
if (rdt_resources_all[RDT_RESOURCE_L3DATA].alloc_enabled)
27972797
seq_puts(seq, ",cdp");
2798+
2799+
if (rdt_resources_all[RDT_RESOURCE_L2DATA].alloc_enabled)
2800+
seq_puts(seq, ",cdpl2");
2801+
2802+
if (is_mba_sc(&rdt_resources_all[RDT_RESOURCE_MBA]))
2803+
seq_puts(seq, ",mba_MBps");
2804+
27982805
return 0;
27992806
}
28002807

0 commit comments

Comments
 (0)