aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 95cb19f4e06f..f4e4168455a8 100644
--- a/arch/x86/events/intel/uncore_snbep.c
+++ b/arch/x86/events/intel/uncore_snbep.c
@@ -3035,11 +3035,19 @@ static struct intel_uncore_type *bdx_msr_uncores[] = {
3035 NULL, 3035 NULL,
3036}; 3036};
3037 3037
3038/* Bit 7 'Use Occupancy' is not available for counter 0 on BDX */
3039static struct event_constraint bdx_uncore_pcu_constraints[] = {
3040 EVENT_CONSTRAINT(0x80, 0xe, 0x80),
3041 EVENT_CONSTRAINT_END
3042};
3043
3038void bdx_uncore_cpu_init(void) 3044void bdx_uncore_cpu_init(void)
3039{ 3045{
3040 if (bdx_uncore_cbox.num_boxes > boot_cpu_data.x86_max_cores) 3046 if (bdx_uncore_cbox.num_boxes > boot_cpu_data.x86_max_cores)
3041 bdx_uncore_cbox.num_boxes = boot_cpu_data.x86_max_cores; 3047 bdx_uncore_cbox.num_boxes = boot_cpu_data.x86_max_cores;
3042 uncore_msr_uncores = bdx_msr_uncores; 3048 uncore_msr_uncores = bdx_msr_uncores;
3049
3050 hswep_uncore_pcu.constraints = bdx_uncore_pcu_constraints;
3043} 3051}
3044 3052
3045static struct intel_uncore_type bdx_uncore_ha = { 3053static struct intel_uncore_type bdx_uncore_ha = {