summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2023-01-06 08:04:46 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-09 11:28:12 +0100
commite095f0d86e3a43d3448768b5dcbd08dbf3d18523 (patch)
tree81da3bc65f367ba070d34c10d47c76d76d559b0a
parentfcf8b1a6d5b86a16b986746ed99a4a7665838af6 (diff)
downloadlinux-stable-e095f0d86e3a43d3448768b5dcbd08dbf3d18523.tar.gz
linux-stable-e095f0d86e3a43d3448768b5dcbd08dbf3d18523.tar.bz2
linux-stable-e095f0d86e3a43d3448768b5dcbd08dbf3d18523.zip
perf/x86/intel: Add Emerald Rapids
[ Upstream commit 6795e558e9cc6123c24e2100a2ebe88e58a792bc ] 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: Kan Liang <kan.liang@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20230106160449.3566477-1-kan.liang@linux.intel.com Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--arch/x86/events/intel/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c
index 1b92bf05fd65..5a1d0ea402e4 100644
--- a/arch/x86/events/intel/core.c
+++ b/arch/x86/events/intel/core.c
@@ -6342,6 +6342,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));