提交 0725d2e7 编写于 作者: K Kan Liang 提交者: Yunying Sun

perf/x86/intel/uncore: Add Sapphire Rapids server UPI support

mainline inclusion
from mainline-v5.15-rc1
commit da5a9156
category: feature
feature: SPR PMU uncore support
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5BECO

Intel-SIG: commit da5a9156 perf/x86/intel/uncore: Add Sapphire
Rapids server UPI support
This commit is backported for SPR PMU uncore support.

-------------------------------------

Sapphire Rapids uses a coherent interconnect for scaling to multiple
sockets known as Intel UPI. Intel UPI technology provides a cache
coherent socket to socket external communication interface between
processors.

The layout of the control registers for a UPI uncore unit is similar to
a M2M uncore unit.
Signed-off-by: NKan Liang <kan.liang@linux.intel.com>
Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: NAndi Kleen <ak@linux.intel.com>
Link: https://lore.kernel.org/r/1625087320-194204-10-git-send-email-kan.liang@linux.intel.comSigned-off-by: NYunying Sun <yunying.sun@intel.com>
上级 2fc2578a
...@@ -5552,6 +5552,11 @@ static struct intel_uncore_type spr_uncore_m2m = { ...@@ -5552,6 +5552,11 @@ static struct intel_uncore_type spr_uncore_m2m = {
.name = "m2m", .name = "m2m",
}; };
static struct intel_uncore_type spr_uncore_upi = {
SPR_UNCORE_PCI_COMMON_FORMAT(),
.name = "upi",
};
#define UNCORE_SPR_NUM_UNCORE_TYPES 12 #define UNCORE_SPR_NUM_UNCORE_TYPES 12
static struct intel_uncore_type *spr_uncores[UNCORE_SPR_NUM_UNCORE_TYPES] = { static struct intel_uncore_type *spr_uncores[UNCORE_SPR_NUM_UNCORE_TYPES] = {
...@@ -5563,7 +5568,7 @@ static struct intel_uncore_type *spr_uncores[UNCORE_SPR_NUM_UNCORE_TYPES] = { ...@@ -5563,7 +5568,7 @@ static struct intel_uncore_type *spr_uncores[UNCORE_SPR_NUM_UNCORE_TYPES] = {
NULL, NULL,
&spr_uncore_imc, &spr_uncore_imc,
&spr_uncore_m2m, &spr_uncore_m2m,
NULL, &spr_uncore_upi,
NULL, NULL,
NULL, NULL,
NULL, NULL,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册