/[packages]/cauldron/kernel/current/PATCHES/patches/0037-x86-intel_rdt-Show-missing-resctrl-mount-options.patch
ViewVC logotype

Annotation of /cauldron/kernel/current/PATCHES/patches/0037-x86-intel_rdt-Show-missing-resctrl-mount-options.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1329221 - (hide annotations) (download)
Fri Nov 9 22:05:45 2018 UTC (5 years, 11 months ago) by tmb
File size: 2044 byte(s)
add fixes from sashas autosel queue
1 tmb 1329221 From a8a15f027d412cbb6917306222449644af897eb6 Mon Sep 17 00:00:00 2001
2     From: Xiaochen Shen <xiaochen.shen@intel.com>
3     Date: Wed, 12 Sep 2018 16:48:38 -0700
4     Subject: [PATCH 037/145] x86/intel_rdt: Show missing resctrl mount options
5    
6     [ Upstream commit 2cc81c6992248ea37d0241bc325977bab310bc3b ]
7    
8     In resctrl filesystem, mount options exist to enable L3/L2 CDP and MBA
9     Software Controller features if the platform supports them:
10    
11     mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps]] /sys/fs/resctrl
12    
13     But currently only "cdp" option is displayed in /proc/mounts. "cdpl2" and
14     "mba_MBps" options are not shown even when they are active.
15    
16     Before:
17     # mount -t resctrl resctrl -o cdp,mba_MBps /sys/fs/resctrl
18     # grep resctrl /proc/mounts
19     /sys/fs/resctrl /sys/fs/resctrl resctrl rw,relatime,cdp 0 0
20    
21     After:
22     # mount -t resctrl resctrl -o cdp,mba_MBps /sys/fs/resctrl
23     # grep resctrl /proc/mounts
24     /sys/fs/resctrl /sys/fs/resctrl resctrl rw,relatime,cdp,mba_MBps 0 0
25    
26     Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com>
27     Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
28     Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
29     Cc: "H Peter Anvin" <hpa@zytor.com>
30     Cc: "Tony Luck" <tony.luck@intel.com>
31     Link: https://lkml.kernel.org/r/1536796118-60135-1-git-send-email-fenghua.yu@intel.com
32     Signed-off-by: Sasha Levin <sashal@kernel.org>
33     ---
34     arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 7 +++++++
35     1 file changed, 7 insertions(+)
36    
37     diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
38     index b140c68bc14b..643670fb8943 100644
39     --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
40     +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
41     @@ -2805,6 +2805,13 @@ static int rdtgroup_show_options(struct seq_file *seq, struct kernfs_root *kf)
42     {
43     if (rdt_resources_all[RDT_RESOURCE_L3DATA].alloc_enabled)
44     seq_puts(seq, ",cdp");
45     +
46     + if (rdt_resources_all[RDT_RESOURCE_L2DATA].alloc_enabled)
47     + seq_puts(seq, ",cdpl2");
48     +
49     + if (is_mba_sc(&rdt_resources_all[RDT_RESOURCE_MBA]))
50     + seq_puts(seq, ",mba_MBps");
51     +
52     return 0;
53     }
54    
55     --
56     2.19.1
57    

  ViewVC Help
Powered by ViewVC 1.1.30