Skip to content

Commit 5a4b3fb

Browse files
committed
Merge tag 'x86_cache_for_v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cache resource control updates from Borislav Petkov: - Add support for 6-node sub-NUMA clustering on Intel - Cleanup * tag 'x86_cache_for_v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/resctrl: Support Sub-NUMA cluster mode SNC6 x86/resctrl: Slightly clean-up mbm_config_show()
2 parents c1f2ffe + 9bce6e9 commit 5a4b3fb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,11 +1158,12 @@ static __init int snc_get_config(void)
11581158

11591159
ret = cpus_per_l3 / cpus_per_node;
11601160

1161-
/* sanity check: Only valid results are 1, 2, 3, 4 */
1161+
/* sanity check: Only valid results are 1, 2, 3, 4, 6 */
11621162
switch (ret) {
11631163
case 1:
11641164
break;
11651165
case 2 ... 4:
1166+
case 6:
11661167
pr_info("Sub-NUMA Cluster mode detected with %d nodes per L3 cache\n", ret);
11671168
rdt_resources_all[RDT_RESOURCE_L3].r_resctrl.mon_scope = RESCTRL_L3_NODE;
11681169
break;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ static void mondata_config_read(struct rdt_mon_domain *d, struct mon_config_info
15961596

15971597
static int mbm_config_show(struct seq_file *s, struct rdt_resource *r, u32 evtid)
15981598
{
1599-
struct mon_config_info mon_info = {0};
1599+
struct mon_config_info mon_info;
16001600
struct rdt_mon_domain *dom;
16011601
bool sep = false;
16021602

0 commit comments

Comments
 (0)