mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/resctrl: Support Sub-NUMA cluster mode SNC6
@ 2024-10-31 22:02 Tony Luck
  2024-11-06  0:41 ` Reinette Chatre
  2024-11-06 10:03 ` [tip: x86/cache] " tip-bot2 for Tony Luck
  0 siblings, 2 replies; 3+ messages in thread
From: Tony Luck @ 2024-10-31 22:02 UTC (permalink / raw)
  To: Fenghua Yu, Reinette Chatre, Maciej Wieczor-Retman, Peter Newman,
	James Morse, Babu Moger, Drew Fustini, Dave Martin
  Cc: Borislav Petkov, x86, linux-kernel, patches, Tony Luck

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>
---
 arch/x86/kernel/cpu/resctrl/monitor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c
index 851b561850e0..5fcb3d635d91 100644
--- a/arch/x86/kernel/cpu/resctrl/monitor.c
+++ b/arch/x86/kernel/cpu/resctrl/monitor.c
@@ -1158,11 +1158,12 @@ static __init int snc_get_config(void)
 
 	ret = cpus_per_l3 / cpus_per_node;
 
-	/* sanity check: Only valid results are 1, 2, 3, 4 */
+	/* sanity check: Only valid results are 1, 2, 3, 4, 6 */
 	switch (ret) {
 	case 1:
 		break;
 	case 2 ... 4:
+	case 6:
 		pr_info("Sub-NUMA Cluster mode detected with %d nodes per L3 cache\n", ret);
 		rdt_resources_all[RDT_RESOURCE_L3].r_resctrl.mon_scope = RESCTRL_L3_NODE;
 		break;
-- 
2.47.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/resctrl: Support Sub-NUMA cluster mode SNC6
  2024-10-31 22:02 [PATCH] x86/resctrl: Support Sub-NUMA cluster mode SNC6 Tony Luck
@ 2024-11-06  0:41 ` Reinette Chatre
  2024-11-06 10:03 ` [tip: x86/cache] " tip-bot2 for Tony Luck
  1 sibling, 0 replies; 3+ messages in thread
From: Reinette Chatre @ 2024-11-06  0:41 UTC (permalink / raw)
  To: Tony Luck, Fenghua Yu, Maciej Wieczor-Retman, Peter Newman,
	James Morse, Babu Moger, Drew Fustini, Dave Martin
  Cc: Borislav Petkov, x86, linux-kernel, patches

Hi Tony,

On 10/31/24 3:02 PM, Tony Luck wrote:
> 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>
> ---

Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>

Reinette

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip: x86/cache] x86/resctrl: Support Sub-NUMA cluster mode SNC6
  2024-10-31 22:02 [PATCH] x86/resctrl: Support Sub-NUMA cluster mode SNC6 Tony Luck
  2024-11-06  0:41 ` Reinette Chatre
@ 2024-11-06 10:03 ` tip-bot2 for Tony Luck
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Tony Luck @ 2024-11-06 10:03 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Tony Luck, Borislav Petkov (AMD), Reinette Chatre, x86, linux-kernel

The following commit has been merged into the x86/cache branch of tip:

Commit-ID:     9bce6e94c4b39b6baa649784d92f908aa9168a45
Gitweb:        https://git.kernel.org/tip/9bce6e94c4b39b6baa649784d92f908aa9168a45
Author:        Tony Luck <tony.luck@intel.com>
AuthorDate:    Thu, 31 Oct 2024 15:02:13 -07:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Wed, 06 Nov 2024 10:49:04 +01:00

x86/resctrl: Support Sub-NUMA cluster mode SNC6

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
---
 arch/x86/kernel/cpu/resctrl/monitor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c
index 851b561..5fcb3d6 100644
--- a/arch/x86/kernel/cpu/resctrl/monitor.c
+++ b/arch/x86/kernel/cpu/resctrl/monitor.c
@@ -1158,11 +1158,12 @@ static __init int snc_get_config(void)
 
 	ret = cpus_per_l3 / cpus_per_node;
 
-	/* sanity check: Only valid results are 1, 2, 3, 4 */
+	/* sanity check: Only valid results are 1, 2, 3, 4, 6 */
 	switch (ret) {
 	case 1:
 		break;
 	case 2 ... 4:
+	case 6:
 		pr_info("Sub-NUMA Cluster mode detected with %d nodes per L3 cache\n", ret);
 		rdt_resources_all[RDT_RESOURCE_L3].r_resctrl.mon_scope = RESCTRL_L3_NODE;
 		break;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-06 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-31 22:02 [PATCH] x86/resctrl: Support Sub-NUMA cluster mode SNC6 Tony Luck
2024-11-06  0:41 ` Reinette Chatre
2024-11-06 10:03 ` [tip: x86/cache] " tip-bot2 for Tony Luck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®