@@ -4485,6 +4485,7 @@ __init int intel_pmu_init(void)
4485
4485
struct event_constraint * c ;
4486
4486
unsigned int unused ;
4487
4487
struct extra_reg * er ;
4488
+ bool pmem = false;
4488
4489
int version , i ;
4489
4490
char * name ;
4490
4491
@@ -4936,9 +4937,10 @@ __init int intel_pmu_init(void)
4936
4937
name = "knights-landing" ;
4937
4938
break ;
4938
4939
4940
+ case INTEL_FAM6_SKYLAKE_X :
4941
+ pmem = true;
4939
4942
case INTEL_FAM6_SKYLAKE_MOBILE :
4940
4943
case INTEL_FAM6_SKYLAKE_DESKTOP :
4941
- case INTEL_FAM6_SKYLAKE_X :
4942
4944
case INTEL_FAM6_KABYLAKE_MOBILE :
4943
4945
case INTEL_FAM6_KABYLAKE_DESKTOP :
4944
4946
x86_add_quirk (intel_pebs_isolation_quirk );
@@ -4970,8 +4972,7 @@ __init int intel_pmu_init(void)
4970
4972
td_attr = hsw_events_attrs ;
4971
4973
mem_attr = hsw_mem_events_attrs ;
4972
4974
tsx_attr = hsw_tsx_events_attrs ;
4973
- intel_pmu_pebs_data_source_skl (
4974
- boot_cpu_data .x86_model == INTEL_FAM6_SKYLAKE_X );
4975
+ intel_pmu_pebs_data_source_skl (pmem );
4975
4976
4976
4977
if (boot_cpu_has (X86_FEATURE_TSX_FORCE_ABORT )) {
4977
4978
x86_pmu .flags |= PMU_FL_TFA ;
@@ -4985,7 +4986,11 @@ __init int intel_pmu_init(void)
4985
4986
name = "skylake" ;
4986
4987
break ;
4987
4988
4989
+ case INTEL_FAM6_ICELAKE_X :
4990
+ case INTEL_FAM6_ICELAKE_XEON_D :
4991
+ pmem = true;
4988
4992
case INTEL_FAM6_ICELAKE_MOBILE :
4993
+ case INTEL_FAM6_ICELAKE_DESKTOP :
4989
4994
x86_pmu .late_ack = true;
4990
4995
memcpy (hw_cache_event_ids , skl_hw_cache_event_ids , sizeof (hw_cache_event_ids ));
4991
4996
memcpy (hw_cache_extra_regs , skl_hw_cache_extra_regs , sizeof (hw_cache_extra_regs ));
@@ -5009,7 +5014,7 @@ __init int intel_pmu_init(void)
5009
5014
tsx_attr = icl_tsx_events_attrs ;
5010
5015
x86_pmu .rtm_abort_event = X86_CONFIG (.event = 0xca , .umask = 0x02 );
5011
5016
x86_pmu .lbr_pt_coexist = true;
5012
- intel_pmu_pebs_data_source_skl (false );
5017
+ intel_pmu_pebs_data_source_skl (pmem );
5013
5018
pr_cont ("Icelake events, " );
5014
5019
name = "icelake" ;
5015
5020
break ;
0 commit comments