OSDN Git Service

perf/x86/intel/uncore: Fix Intel SPR IIO event constraints
authorKan Liang <kan.liang@linux.intel.com>
Thu, 26 Aug 2021 15:32:41 +0000 (08:32 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 31 Aug 2021 11:59:36 +0000 (13:59 +0200)
SPR IIO events have the exact same event constraints as ICX, so add the
constraints.

Fixes: 3ba7095beaec ("perf/x86/intel/uncore: Add Sapphire Rapids server IIO support")
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/1629991963-102621-6-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_snbep.c

index ce85ee5..2d75d21 100644 (file)
@@ -5661,6 +5661,7 @@ static struct intel_uncore_type spr_uncore_iio = {
        .event_mask_ext         = SNR_IIO_PMON_RAW_EVENT_MASK_EXT,
        .format_group           = &snr_uncore_iio_format_group,
        .attr_update            = uncore_alias_groups,
+       .constraints            = icx_uncore_iio_constraints,
 };
 
 static struct attribute *spr_uncore_raw_formats_attr[] = {