]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf/x86/intel/uncore: Fix the bits of the CHA extended umask for SPR
authorKan Liang <kan.liang@linux.intel.com>
Mon, 8 Jul 2024 18:55:24 +0000 (11:55 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 9 Jul 2024 11:26:38 +0000 (13:26 +0200)
commita5a6ff3d639d088d4af7e2935e1ee0d8b4e817d4
tree5482da2ba10c77eba2a5be13cdb23fa48b02b609
parent2b84def990d388bed4afe4f21ae383a01991046c
perf/x86/intel/uncore: Fix the bits of the CHA extended umask for SPR

The perf stat errors out with UNC_CHA_TOR_INSERTS.IA_HIT_CXL_ACC_LOCAL
event.

 $perf stat -e uncore_cha_55/event=0x35,umask=0x10c0008101/ -a -- ls
    event syntax error: '..0x35,umask=0x10c0008101/'
                                      \___ Bad event or PMU

The definition of the CHA umask is config:8-15,32-55, which is 32bit.
However, the umask of the event is bigger than 32bit.
This is an error in the original uncore spec.

Add a new umask_ext5 for the new CHA umask range.

Fixes: 949b11381f81 ("perf/x86/intel/uncore: Add Sapphire Rapids server CHA support")
Closes: https://lore.kernel.org/linux-perf-users/alpine.LRH.2.20.2401300733310.11354@Diego/
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20240708185524.1185505-1-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_snbep.c