]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitced4428adee01a2772ad0b97d317e0b111724c38
treea06fe28ca2ea59a83187d9226113cf227176d7f6
parentcf6e6d5164a84191ace68044dcea8b3d0121b79e
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: 23dcad95692a ("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