]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
perf/x86/intel: Update event constraints for ICX
authorKan Liang <kan.liang@linux.intel.com>
Tue, 28 Sep 2021 15:19:03 +0000 (08:19 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 5 Nov 2021 08:12:50 +0000 (09:12 +0100)
BugLink: https://bugs.launchpad.net/bugs/1947888
[ Upstream commit ecc2123e09f9e71ddc6c53d71e283b8ada685fe2 ]

According to the latest event list, the event encoding 0xEF is only
available on the first 4 counters. Add it into the event constraints
table.

Fixes: 6017608936c1 ("perf/x86/intel: Add Icelake 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/1632842343-25862-1-git-send-email-kan.liang@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/x86/events/intel/core.c

index 9cb3266e148dcffbfc01579a4223c009fa6f2c6c..70758f99c9e472427143317194f7a7b948775347 100644 (file)
@@ -259,6 +259,7 @@ static struct event_constraint intel_icl_event_constraints[] = {
        INTEL_EVENT_CONSTRAINT_RANGE(0xa8, 0xb0, 0xf),
        INTEL_EVENT_CONSTRAINT_RANGE(0xb7, 0xbd, 0xf),
        INTEL_EVENT_CONSTRAINT_RANGE(0xd0, 0xe6, 0xf),
+       INTEL_EVENT_CONSTRAINT(0xef, 0xf),
        INTEL_EVENT_CONSTRAINT_RANGE(0xf0, 0xf4, 0xf),
        EVENT_CONSTRAINT_END
 };