perf/x86/intel/uncore: Fix M2M event umask for Ice Lake server
authorKan Liang <kan.liang@linux.intel.com>
Tue, 1 Jun 2021 13:09:03 +0000 (06:09 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 1 Jun 2021 14:00:05 +0000 (16:00 +0200)
commit848ff3768684701a4ce73a2ec0e5d438d4e2b0da
tree0a2d8e49e71684d51b9459df0124d5840e4ad2c2
parent4a0e3ff30980b7601b13dd3b7ee275212b852843
perf/x86/intel/uncore: Fix M2M event umask for Ice Lake server

Perf tool errors out with the latest event list for the Ice Lake server.

event syntax error: 'unc_m2m_imc_reads.to_pmm'
                           \___ value too big for format, maximum is 255

The same as the Snow Ridge server, the M2M uncore unit in the Ice Lake
server has the unit mask extension field as well.

Fixes: 2b3b76b5ec67 ("perf/x86/intel/uncore: Add Ice Lake server uncore support")
Reported-by: Jin Yao <yao.jin@linux.intel.com>
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/1622552943-119174-1-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_snbep.c