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

perf/x86/intel: Fix the FRONTEND encoding on GNR and MTL

mainline inclusion
from mainline-v6.4
commit a6742cb9
category: feature
feature: GNR core PMU
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8RV41
CVE: NA

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



Intel-SIG: commit a6742cb9 perf/x86/intel: Fix the FRONTEND encoding on GNR and MTL
Backport a following upstream bugfix for GNR core PMU support.

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

When counting a FRONTEND event, the MSR_PEBS_FRONTEND is not correctly
set on GNR and MTL p-core.

The umask value for the FRONTEND events is changed on GNR and MTL. The
new umask is missing in the extra_regs[] table.

Add a dedicated intel_gnr_extra_regs[] for GNR and MTL p-core.

Fixes: bc4000fd ("perf/x86/intel: Add Granite Rapids")
Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20230615173242.3726364-1-kan.liang@linux.intel.com


Signed-off-by: default avatarYunying Sun <yunying.sun@intel.com>
parent 0889138f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment