perf/x86/intel: Add more events requires FRONTEND MSR on Sapphire Rapids
authorKan Liang <kan.liang@linux.intel.com>
Fri, 18 Jun 2021 15:12:53 +0000 (08:12 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 23 Jun 2021 16:30:55 +0000 (18:30 +0200)
commitd18216fafecf2a3a7c2b97086892269d6ab3cd5e
treea06fe28ca2ea59a83187d9226113cf227176d7f6
parentee72a94ea4a6d8fa304a506859cd07ecdc0cf5c4
perf/x86/intel: Add more events requires FRONTEND MSR on Sapphire Rapids

On Sapphire Rapids, there are two more events 0x40ad and 0x04c2 which
rely on the FRONTEND MSR. If the FRONTEND MSR is not set correctly, the
count value is not correct.

Update intel_spr_extra_regs[] to support them.

Fixes: 61b985e3e775 ("perf/x86/intel: Add perf core PMU support for Sapphire 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://lore.kernel.org/r/1624029174-122219-3-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/core.c