Commit fc3a2990 authored by Kan Liang's avatar Kan Liang Committed by Yunying Sun
Browse files

perf/x86/intel: Add Emerald Rapids

mainline inclusion
from mainline-v6.2-rc6
commit 6795e558
category: feature
feature: EMR PMU support
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I6YO4Z
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6795e558e9cc6123c24e2100a2ebe88e58a792bc



Intel-SIG: commit 6795e558 perf/x86/intel: Add Emerald Rapids
Backport for adding EMR PMU support to OLK-5.10 kernel.

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

From core PMU's perspective, Emerald Rapids is the same as the Sapphire
Rapids. The only difference is the event list, which will be
supported in the perf tool later.

Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230106160449.3566477-1-kan.liang@linux.intel.com


Signed-off-by: default avatarYunying Sun <yunying.sun@intel.com>
parent 72a65d81
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5790,6 +5790,7 @@ __init int intel_pmu_init(void)
		break;

	case INTEL_FAM6_SAPPHIRERAPIDS_X:
	case INTEL_FAM6_EMERALDRAPIDS_X:
		pmem = true;
		x86_pmu.late_ack = true;
		memcpy(hw_cache_event_ids, spr_hw_cache_event_ids, sizeof(hw_cache_event_ids));