OSDN Git Service

perf/x86/intel: Update the FRONTEND MSR mask on Sapphire Rapids
authorKan Liang <kan.liang@linux.intel.com>
Mon, 28 Mar 2022 15:49:03 +0000 (08:49 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Apr 2022 07:59:44 +0000 (09:59 +0200)
commite590928de7547454469693da9bc7ffd562e54b7e
tree6ca3d5e4bb1f46152e815b09f3501b7a38a4c45f
parent4a263bf331c512849062805ef1b4ac40301a9829
perf/x86/intel: Update the FRONTEND MSR mask on Sapphire Rapids

On Sapphire Rapids, the FRONTEND_RETIRED.MS_FLOWS event requires the
FRONTEND MSR value 0x8. However, the current FRONTEND MSR mask doesn't
support it.

Update intel_spr_extra_regs[] to support it.

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/1648482543-14923-2-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/core.c