Skip to content

Commit bdc0fee

Browse files
Alexander AntonovPeter Zijlstra
authored andcommitted
perf/x86/intel/uncore: Fix IIO event constraints for Snowridge
According to the latest uncore document, DATA_REQ_OF_CPU (0x83), DATA_REQ_BY_CPU (0xc0) and COMP_BUF_OCCUPANCY (0xd5) events have constraints. Add uncore IIO constraints for Snowridge. Fixes: 210cc5f ("perf/x86/intel/uncore: Add uncore support for Snow Ridge server") Signed-off-by: Alexander Antonov <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Kan Liang <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3866ae3 commit bdc0fee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/x86/events/intel/uncore_snbep.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4529,6 +4529,13 @@ static void snr_iio_cleanup_mapping(struct intel_uncore_type *type)
45294529
pmu_iio_cleanup_mapping(type, &snr_iio_mapping_group);
45304530
}
45314531

4532+
static struct event_constraint snr_uncore_iio_constraints[] = {
4533+
UNCORE_EVENT_CONSTRAINT(0x83, 0x3),
4534+
UNCORE_EVENT_CONSTRAINT(0xc0, 0xc),
4535+
UNCORE_EVENT_CONSTRAINT(0xd5, 0xc),
4536+
EVENT_CONSTRAINT_END
4537+
};
4538+
45324539
static struct intel_uncore_type snr_uncore_iio = {
45334540
.name = "iio",
45344541
.num_counters = 4,
@@ -4540,6 +4547,7 @@ static struct intel_uncore_type snr_uncore_iio = {
45404547
.event_mask_ext = SNR_IIO_PMON_RAW_EVENT_MASK_EXT,
45414548
.box_ctl = SNR_IIO_MSR_PMON_BOX_CTL,
45424549
.msr_offset = SNR_IIO_MSR_OFFSET,
4550+
.constraints = snr_uncore_iio_constraints,
45434551
.ops = &ivbep_uncore_msr_ops,
45444552
.format_group = &snr_uncore_iio_format_group,
45454553
.attr_update = snr_iio_attr_update,

0 commit comments

Comments
 (0)