Skip to content

Commit 848ff37

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
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: 2b3b76b ("perf/x86/intel/uncore: Add Ice Lake server uncore support") Reported-by: Jin Yao <[email protected]> Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent 4a0e3ff commit 848ff37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/events/intel/uncore_snbep.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5099,9 +5099,10 @@ static struct intel_uncore_type icx_uncore_m2m = {
50995099
.perf_ctr = SNR_M2M_PCI_PMON_CTR0,
51005100
.event_ctl = SNR_M2M_PCI_PMON_CTL0,
51015101
.event_mask = SNBEP_PMON_RAW_EVENT_MASK,
5102+
.event_mask_ext = SNR_M2M_PCI_PMON_UMASK_EXT,
51025103
.box_ctl = SNR_M2M_PCI_PMON_BOX_CTL,
51035104
.ops = &snr_m2m_uncore_pci_ops,
5104-
.format_group = &skx_uncore_format_group,
5105+
.format_group = &snr_m2m_uncore_format_group,
51055106
};
51065107

51075108
static struct attribute *icx_upi_uncore_formats_attr[] = {

0 commit comments

Comments
 (0)