提交 f6e576cf 编写于 作者: G Guoqing Jiang 提交者: Yang Yingliang

Intel: perf/x86/intel: Add more Icelake CPUIDs

mainline inclusion
from mainline-v5.3-rc1
commit faaeff98
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I47H3V
CVE: NA

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

commit faaeff98 upstream.

Backport summary: Backport to kernel 4.19.57 for ICX uncore support.

Add new model number for Icelake desktop and server to perf.

The data source encoding for Icelake server is the same as Skylake
server.
Signed-off-by: NKan Liang <kan.liang@linux.intel.com>
Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: bp@alien8.de
Cc: qiuxu.zhuo@intel.com
Cc: rui.zhang@intel.com
Cc: tony.luck@intel.com
Link: https://lkml.kernel.org/r/20190603134122.13853-2-kan.liang@linux.intel.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
Signed-off-by: NYunying Sun <yunying.sun@intel.com>
Signed-off-by: NGuoqing Jiang <jiangguoqing@kylinos.cn>
Signed-off-by: NJackie Liu <liuyun01@kylinos.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NYang Jihong <yangjihong1@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 d603a034
...@@ -4175,6 +4175,7 @@ __init int intel_pmu_init(void) ...@@ -4175,6 +4175,7 @@ __init int intel_pmu_init(void)
struct event_constraint *c; struct event_constraint *c;
unsigned int unused; unsigned int unused;
struct extra_reg *er; struct extra_reg *er;
bool pmem = false;
int version, i; int version, i;
char *name; char *name;
...@@ -4612,9 +4613,10 @@ __init int intel_pmu_init(void) ...@@ -4612,9 +4613,10 @@ __init int intel_pmu_init(void)
name = "knights-landing"; name = "knights-landing";
break; break;
case INTEL_FAM6_SKYLAKE_X:
pmem = true;
case INTEL_FAM6_SKYLAKE_MOBILE: case INTEL_FAM6_SKYLAKE_MOBILE:
case INTEL_FAM6_SKYLAKE_DESKTOP: case INTEL_FAM6_SKYLAKE_DESKTOP:
case INTEL_FAM6_SKYLAKE_X:
case INTEL_FAM6_KABYLAKE_MOBILE: case INTEL_FAM6_KABYLAKE_MOBILE:
case INTEL_FAM6_KABYLAKE_DESKTOP: case INTEL_FAM6_KABYLAKE_DESKTOP:
x86_pmu.late_ack = true; x86_pmu.late_ack = true;
...@@ -4644,8 +4646,7 @@ __init int intel_pmu_init(void) ...@@ -4644,8 +4646,7 @@ __init int intel_pmu_init(void)
extra_attr = merge_attr(extra_attr, skl_format_attr); extra_attr = merge_attr(extra_attr, skl_format_attr);
to_free = extra_attr; to_free = extra_attr;
x86_pmu.cpu_events = get_hsw_events_attrs(); x86_pmu.cpu_events = get_hsw_events_attrs();
intel_pmu_pebs_data_source_skl( intel_pmu_pebs_data_source_skl(pmem);
boot_cpu_data.x86_model == INTEL_FAM6_SKYLAKE_X);
if (boot_cpu_has(X86_FEATURE_TSX_FORCE_ABORT)) { if (boot_cpu_has(X86_FEATURE_TSX_FORCE_ABORT)) {
x86_pmu.flags |= PMU_FL_TFA; x86_pmu.flags |= PMU_FL_TFA;
...@@ -4659,7 +4660,11 @@ __init int intel_pmu_init(void) ...@@ -4659,7 +4660,11 @@ __init int intel_pmu_init(void)
name = "skylake"; name = "skylake";
break; break;
case INTEL_FAM6_ICELAKE_X:
case INTEL_FAM6_ICELAKE_XEON_D:
pmem = true;
case INTEL_FAM6_ICELAKE_MOBILE: case INTEL_FAM6_ICELAKE_MOBILE:
case INTEL_FAM6_ICELAKE_DESKTOP:
x86_pmu.late_ack = true; x86_pmu.late_ack = true;
memcpy(hw_cache_event_ids, skl_hw_cache_event_ids, sizeof(hw_cache_event_ids)); memcpy(hw_cache_event_ids, skl_hw_cache_event_ids, sizeof(hw_cache_event_ids));
memcpy(hw_cache_extra_regs, skl_hw_cache_extra_regs, sizeof(hw_cache_extra_regs)); memcpy(hw_cache_extra_regs, skl_hw_cache_extra_regs, sizeof(hw_cache_extra_regs));
...@@ -4681,7 +4686,7 @@ __init int intel_pmu_init(void) ...@@ -4681,7 +4686,7 @@ __init int intel_pmu_init(void)
extra_attr = merge_attr(extra_attr, skl_format_attr); extra_attr = merge_attr(extra_attr, skl_format_attr);
x86_pmu.cpu_events = get_icl_events_attrs(); x86_pmu.cpu_events = get_icl_events_attrs();
x86_pmu.lbr_pt_coexist = true; x86_pmu.lbr_pt_coexist = true;
intel_pmu_pebs_data_source_skl(false); intel_pmu_pebs_data_source_skl(pmem);
pr_cont("Icelake events, "); pr_cont("Icelake events, ");
name = "icelake"; name = "icelake";
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册