Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Jones <tonyj@suse.de>2018-08-03 02:43:49 +0200
committerTony Jones <tonyj@suse.de>2018-08-03 02:45:15 +0200
commit136771d3c9e60c32b1c773c8d996c30002abd0c6 (patch)
treeac7224ceb056ee33602da7ca1afb9d93a61ae06b
parentb7a9fa6d53714aac0b53f2469f2e3fbe8b5b9bd6 (diff)
perf/x86/intel/uncore: Add event constraint for BDX PCU
(bsc#1087202). suse-commit: be407613d34d14f84c3b18f3bd5dbbd741b33ea0
-rw-r--r--arch/x86/events/intel/uncore_snbep.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/events/intel/uncore_snbep.c b/arch/x86/events/intel/uncore_snbep.c
index 2dadc06552bd..63b50f2367a7 100644
--- a/arch/x86/events/intel/uncore_snbep.c
+++ b/arch/x86/events/intel/uncore_snbep.c
@@ -3034,11 +3034,19 @@ static struct intel_uncore_type *bdx_msr_uncores[] = {
NULL,
};
+/* Bit 7 'Use Occupancy' is not available for counter 0 on BDX */
+static struct event_constraint bdx_uncore_pcu_constraints[] = {
+ EVENT_CONSTRAINT(0x80, 0xe, 0x80),
+ EVENT_CONSTRAINT_END
+};
+
void bdx_uncore_cpu_init(void)
{
if (bdx_uncore_cbox.num_boxes > boot_cpu_data.x86_max_cores)
bdx_uncore_cbox.num_boxes = boot_cpu_data.x86_max_cores;
uncore_msr_uncores = bdx_msr_uncores;
+
+ hswep_uncore_pcu.constraints = bdx_uncore_pcu_constraints;
}
static struct intel_uncore_type bdx_uncore_ha = {