]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/resctrl: Detect Sub-NUMA Cluster (SNC) mode
authorTony Luck <tony.luck@intel.com>
Fri, 28 Jun 2024 21:56:18 +0000 (14:56 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 2 Jul 2024 18:02:11 +0000 (20:02 +0200)
commit13488150f5e2a9b84a335ae18bee33a918ead85d
treed7c270a79092cd0c691071e00db0104fd8d2bcd9
parent21b362cc762aabb3e8496d33d7b4538154c95a0b
x86/resctrl: Detect Sub-NUMA Cluster (SNC) mode

There isn't a simple hardware bit that indicates whether a CPU is running in
Sub-NUMA Cluster (SNC) mode. Infer the state by comparing the number of CPUs
sharing the L3 cache with CPU0 to the number of CPUs in the same NUMA node as
CPU0.

Add the missing definition of pr_fmt() to monitor.c. This wasn't noticed
before as there are only "can't happen" console messages from this file.

  [ bp: Massage commit message. ]

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>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://lore.kernel.org/r/20240628215619.76401-19-tony.luck@intel.com
arch/x86/kernel/cpu/resctrl/monitor.c