OSDN Git Service

perf/x86/intel: Fix the FRONTEND encoding on GNR and MTL
authorKan Liang <kan.liang@linux.intel.com>
Thu, 15 Jun 2023 17:32:42 +0000 (10:32 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 16 Jun 2023 14:46:33 +0000 (16:46 +0200)
commita6742cb90b567f952a95efa27dee345748d09fc7
treeaf072b33cd22c040affc46c08fbb89461f805165
parentb50f26a44887f3f71ff5457135ee1d5f1d542d7d
perf/x86/intel: Fix the FRONTEND encoding on GNR and MTL

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: bc4000fdb009 ("perf/x86/intel: Add Granite Rapids")
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20230615173242.3726364-1-kan.liang@linux.intel.com
arch/x86/events/intel/core.c