Skip to content

Commit 272d9bd

Browse files
aeglguojinhui-liam
authored andcommitted
x86/resctrl: Support Sub-NUMA cluster mode SNC6
commit 9bce6e94c4b39b6baa649784d92f908aa9168a45 upstream. Support Sub-NUMA cluster mode with 6 nodes per L3 cache (SNC6) on some Intel platforms. Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Link: https://lore.kernel.org/r/20241031220213.17991-1-tony.luck@intel.com Signed-off-by: Chuyi Zhou <zhouchuyi@bytedance.com>
1 parent f7d5977 commit 272d9bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
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;

0 commit comments

Comments
 (0)