[tip: x86/urgent] x86/resctrl: Add SNC support for Granite Rapids "D" CPU

From: tip-bot2 for Tony Luck

Date: Thu Nov 19 2026 - 20:34:45 EST


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

Commit-ID: 0833bc1d4ad71144500f6ca8601672580624f24f
Gitweb: https://git.kernel.org/tip/0833bc1d4ad71144500f6ca8601672580624f24f
Author: Tony Luck <tony.luck@xxxxxxxxx>
AuthorDate: Thu, 19 Nov 2026 10:45:24 -08:00
Committer: Borislav Petkov (AMD) <bp@xxxxxxxxx>
CommitterDate: Thu, 19 Nov 2026 17:19:54 -08:00

x86/resctrl: Add SNC support for Granite Rapids "D" CPU

Sub-NUMA Cluster (SNC) mode divides available RMID counters between
NUMA nodes that share an instance of an L3 cache.

Granite Rapids "D" CPUs can enable SNC mode, so Linux must adjust
when SNC is enabled.

Update the table of SNC capable CPU models.

Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Cc: <stable@xxxxxxxxxx>
Link: https://patch.msgid.link/20261119184524.12846-1-tony.luck@xxxxxxxxx
---
arch/x86/kernel/cpu/resctrl/monitor.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c
index a6a9090..eee7657 100644
--- a/arch/x86/kernel/cpu/resctrl/monitor.c
+++ b/arch/x86/kernel/cpu/resctrl/monitor.c
@@ -381,6 +381,7 @@ static const struct x86_cpu_id snc_cpu_ids[] __initconst = {
X86_MATCH_VFM(INTEL_GRANITERAPIDS_X, 0),
X86_MATCH_VFM(INTEL_ATOM_CRESTMONT_X, 0),
X86_MATCH_VFM(INTEL_ATOM_DARKMONT_X, 0),
+ X86_MATCH_VFM(INTEL_GRANITERAPIDS_D, 0),
{}
};