@@ -4698,8 +4698,8 @@ static void intel_pmu_check_extra_regs(struct extra_reg *extra_regs);
4698
4698
static inline bool intel_pmu_broken_perf_cap (void )
4699
4699
{
4700
4700
/* The Perf Metric (Bit 15) is always cleared */
4701
- if (( boot_cpu_data .x86_model == INTEL_FAM6_METEORLAKE ) ||
4702
- ( boot_cpu_data .x86_model == INTEL_FAM6_METEORLAKE_L ) )
4701
+ if (boot_cpu_data .x86_vfm == INTEL_METEORLAKE ||
4702
+ boot_cpu_data .x86_vfm == INTEL_METEORLAKE_L )
4703
4703
return true;
4704
4704
4705
4705
return false;
@@ -6238,19 +6238,19 @@ __init int intel_pmu_init(void)
6238
6238
/*
6239
6239
* Install the hw-cache-events table:
6240
6240
*/
6241
- switch (boot_cpu_data .x86_model ) {
6242
- case INTEL_FAM6_CORE_YONAH :
6241
+ switch (boot_cpu_data .x86_vfm ) {
6242
+ case INTEL_CORE_YONAH :
6243
6243
pr_cont ("Core events, " );
6244
6244
name = "core" ;
6245
6245
break ;
6246
6246
6247
- case INTEL_FAM6_CORE2_MEROM :
6247
+ case INTEL_CORE2_MEROM :
6248
6248
x86_add_quirk (intel_clovertown_quirk );
6249
6249
fallthrough ;
6250
6250
6251
- case INTEL_FAM6_CORE2_MEROM_L :
6252
- case INTEL_FAM6_CORE2_PENRYN :
6253
- case INTEL_FAM6_CORE2_DUNNINGTON :
6251
+ case INTEL_CORE2_MEROM_L :
6252
+ case INTEL_CORE2_PENRYN :
6253
+ case INTEL_CORE2_DUNNINGTON :
6254
6254
memcpy (hw_cache_event_ids , core2_hw_cache_event_ids ,
6255
6255
sizeof (hw_cache_event_ids ));
6256
6256
@@ -6262,9 +6262,9 @@ __init int intel_pmu_init(void)
6262
6262
name = "core2" ;
6263
6263
break ;
6264
6264
6265
- case INTEL_FAM6_NEHALEM :
6266
- case INTEL_FAM6_NEHALEM_EP :
6267
- case INTEL_FAM6_NEHALEM_EX :
6265
+ case INTEL_NEHALEM :
6266
+ case INTEL_NEHALEM_EP :
6267
+ case INTEL_NEHALEM_EX :
6268
6268
memcpy (hw_cache_event_ids , nehalem_hw_cache_event_ids ,
6269
6269
sizeof (hw_cache_event_ids ));
6270
6270
memcpy (hw_cache_extra_regs , nehalem_hw_cache_extra_regs ,
@@ -6296,11 +6296,11 @@ __init int intel_pmu_init(void)
6296
6296
name = "nehalem" ;
6297
6297
break ;
6298
6298
6299
- case INTEL_FAM6_ATOM_BONNELL :
6300
- case INTEL_FAM6_ATOM_BONNELL_MID :
6301
- case INTEL_FAM6_ATOM_SALTWELL :
6302
- case INTEL_FAM6_ATOM_SALTWELL_MID :
6303
- case INTEL_FAM6_ATOM_SALTWELL_TABLET :
6299
+ case INTEL_ATOM_BONNELL :
6300
+ case INTEL_ATOM_BONNELL_MID :
6301
+ case INTEL_ATOM_SALTWELL :
6302
+ case INTEL_ATOM_SALTWELL_MID :
6303
+ case INTEL_ATOM_SALTWELL_TABLET :
6304
6304
memcpy (hw_cache_event_ids , atom_hw_cache_event_ids ,
6305
6305
sizeof (hw_cache_event_ids ));
6306
6306
@@ -6313,11 +6313,11 @@ __init int intel_pmu_init(void)
6313
6313
name = "bonnell" ;
6314
6314
break ;
6315
6315
6316
- case INTEL_FAM6_ATOM_SILVERMONT :
6317
- case INTEL_FAM6_ATOM_SILVERMONT_D :
6318
- case INTEL_FAM6_ATOM_SILVERMONT_MID :
6319
- case INTEL_FAM6_ATOM_AIRMONT :
6320
- case INTEL_FAM6_ATOM_AIRMONT_MID :
6316
+ case INTEL_ATOM_SILVERMONT :
6317
+ case INTEL_ATOM_SILVERMONT_D :
6318
+ case INTEL_ATOM_SILVERMONT_MID :
6319
+ case INTEL_ATOM_AIRMONT :
6320
+ case INTEL_ATOM_AIRMONT_MID :
6321
6321
memcpy (hw_cache_event_ids , slm_hw_cache_event_ids ,
6322
6322
sizeof (hw_cache_event_ids ));
6323
6323
memcpy (hw_cache_extra_regs , slm_hw_cache_extra_regs ,
@@ -6335,8 +6335,8 @@ __init int intel_pmu_init(void)
6335
6335
name = "silvermont" ;
6336
6336
break ;
6337
6337
6338
- case INTEL_FAM6_ATOM_GOLDMONT :
6339
- case INTEL_FAM6_ATOM_GOLDMONT_D :
6338
+ case INTEL_ATOM_GOLDMONT :
6339
+ case INTEL_ATOM_GOLDMONT_D :
6340
6340
memcpy (hw_cache_event_ids , glm_hw_cache_event_ids ,
6341
6341
sizeof (hw_cache_event_ids ));
6342
6342
memcpy (hw_cache_extra_regs , glm_hw_cache_extra_regs ,
@@ -6362,7 +6362,7 @@ __init int intel_pmu_init(void)
6362
6362
name = "goldmont" ;
6363
6363
break ;
6364
6364
6365
- case INTEL_FAM6_ATOM_GOLDMONT_PLUS :
6365
+ case INTEL_ATOM_GOLDMONT_PLUS :
6366
6366
memcpy (hw_cache_event_ids , glp_hw_cache_event_ids ,
6367
6367
sizeof (hw_cache_event_ids ));
6368
6368
memcpy (hw_cache_extra_regs , glp_hw_cache_extra_regs ,
@@ -6391,9 +6391,9 @@ __init int intel_pmu_init(void)
6391
6391
name = "goldmont_plus" ;
6392
6392
break ;
6393
6393
6394
- case INTEL_FAM6_ATOM_TREMONT_D :
6395
- case INTEL_FAM6_ATOM_TREMONT :
6396
- case INTEL_FAM6_ATOM_TREMONT_L :
6394
+ case INTEL_ATOM_TREMONT_D :
6395
+ case INTEL_ATOM_TREMONT :
6396
+ case INTEL_ATOM_TREMONT_L :
6397
6397
x86_pmu .late_ack = true;
6398
6398
memcpy (hw_cache_event_ids , glp_hw_cache_event_ids ,
6399
6399
sizeof (hw_cache_event_ids ));
@@ -6420,7 +6420,7 @@ __init int intel_pmu_init(void)
6420
6420
name = "Tremont" ;
6421
6421
break ;
6422
6422
6423
- case INTEL_FAM6_ATOM_GRACEMONT :
6423
+ case INTEL_ATOM_GRACEMONT :
6424
6424
intel_pmu_init_grt (NULL );
6425
6425
intel_pmu_pebs_data_source_grt ();
6426
6426
x86_pmu .pebs_latency_data = adl_latency_data_small ;
@@ -6432,8 +6432,8 @@ __init int intel_pmu_init(void)
6432
6432
name = "gracemont" ;
6433
6433
break ;
6434
6434
6435
- case INTEL_FAM6_ATOM_CRESTMONT :
6436
- case INTEL_FAM6_ATOM_CRESTMONT_X :
6435
+ case INTEL_ATOM_CRESTMONT :
6436
+ case INTEL_ATOM_CRESTMONT_X :
6437
6437
intel_pmu_init_grt (NULL );
6438
6438
x86_pmu .extra_regs = intel_cmt_extra_regs ;
6439
6439
intel_pmu_pebs_data_source_cmt ();
@@ -6446,9 +6446,9 @@ __init int intel_pmu_init(void)
6446
6446
name = "crestmont" ;
6447
6447
break ;
6448
6448
6449
- case INTEL_FAM6_WESTMERE :
6450
- case INTEL_FAM6_WESTMERE_EP :
6451
- case INTEL_FAM6_WESTMERE_EX :
6449
+ case INTEL_WESTMERE :
6450
+ case INTEL_WESTMERE_EP :
6451
+ case INTEL_WESTMERE_EX :
6452
6452
memcpy (hw_cache_event_ids , westmere_hw_cache_event_ids ,
6453
6453
sizeof (hw_cache_event_ids ));
6454
6454
memcpy (hw_cache_extra_regs , nehalem_hw_cache_extra_regs ,
@@ -6477,8 +6477,8 @@ __init int intel_pmu_init(void)
6477
6477
name = "westmere" ;
6478
6478
break ;
6479
6479
6480
- case INTEL_FAM6_SANDYBRIDGE :
6481
- case INTEL_FAM6_SANDYBRIDGE_X :
6480
+ case INTEL_SANDYBRIDGE :
6481
+ case INTEL_SANDYBRIDGE_X :
6482
6482
x86_add_quirk (intel_sandybridge_quirk );
6483
6483
x86_add_quirk (intel_ht_bug );
6484
6484
memcpy (hw_cache_event_ids , snb_hw_cache_event_ids ,
@@ -6491,7 +6491,7 @@ __init int intel_pmu_init(void)
6491
6491
x86_pmu .event_constraints = intel_snb_event_constraints ;
6492
6492
x86_pmu .pebs_constraints = intel_snb_pebs_event_constraints ;
6493
6493
x86_pmu .pebs_aliases = intel_pebs_aliases_snb ;
6494
- if (boot_cpu_data .x86_model == INTEL_FAM6_SANDYBRIDGE_X )
6494
+ if (boot_cpu_data .x86_vfm == INTEL_SANDYBRIDGE_X )
6495
6495
x86_pmu .extra_regs = intel_snbep_extra_regs ;
6496
6496
else
6497
6497
x86_pmu .extra_regs = intel_snb_extra_regs ;
@@ -6517,8 +6517,8 @@ __init int intel_pmu_init(void)
6517
6517
name = "sandybridge" ;
6518
6518
break ;
6519
6519
6520
- case INTEL_FAM6_IVYBRIDGE :
6521
- case INTEL_FAM6_IVYBRIDGE_X :
6520
+ case INTEL_IVYBRIDGE :
6521
+ case INTEL_IVYBRIDGE_X :
6522
6522
x86_add_quirk (intel_ht_bug );
6523
6523
memcpy (hw_cache_event_ids , snb_hw_cache_event_ids ,
6524
6524
sizeof (hw_cache_event_ids ));
@@ -6534,7 +6534,7 @@ __init int intel_pmu_init(void)
6534
6534
x86_pmu .pebs_constraints = intel_ivb_pebs_event_constraints ;
6535
6535
x86_pmu .pebs_aliases = intel_pebs_aliases_ivb ;
6536
6536
x86_pmu .pebs_prec_dist = true;
6537
- if (boot_cpu_data .x86_model == INTEL_FAM6_IVYBRIDGE_X )
6537
+ if (boot_cpu_data .x86_vfm == INTEL_IVYBRIDGE_X )
6538
6538
x86_pmu .extra_regs = intel_snbep_extra_regs ;
6539
6539
else
6540
6540
x86_pmu .extra_regs = intel_snb_extra_regs ;
@@ -6556,10 +6556,10 @@ __init int intel_pmu_init(void)
6556
6556
break ;
6557
6557
6558
6558
6559
- case INTEL_FAM6_HASWELL :
6560
- case INTEL_FAM6_HASWELL_X :
6561
- case INTEL_FAM6_HASWELL_L :
6562
- case INTEL_FAM6_HASWELL_G :
6559
+ case INTEL_HASWELL :
6560
+ case INTEL_HASWELL_X :
6561
+ case INTEL_HASWELL_L :
6562
+ case INTEL_HASWELL_G :
6563
6563
x86_add_quirk (intel_ht_bug );
6564
6564
x86_add_quirk (intel_pebs_isolation_quirk );
6565
6565
x86_pmu .late_ack = true;
@@ -6589,10 +6589,10 @@ __init int intel_pmu_init(void)
6589
6589
name = "haswell" ;
6590
6590
break ;
6591
6591
6592
- case INTEL_FAM6_BROADWELL :
6593
- case INTEL_FAM6_BROADWELL_D :
6594
- case INTEL_FAM6_BROADWELL_G :
6595
- case INTEL_FAM6_BROADWELL_X :
6592
+ case INTEL_BROADWELL :
6593
+ case INTEL_BROADWELL_D :
6594
+ case INTEL_BROADWELL_G :
6595
+ case INTEL_BROADWELL_X :
6596
6596
x86_add_quirk (intel_pebs_isolation_quirk );
6597
6597
x86_pmu .late_ack = true;
6598
6598
memcpy (hw_cache_event_ids , hsw_hw_cache_event_ids , sizeof (hw_cache_event_ids ));
@@ -6631,8 +6631,8 @@ __init int intel_pmu_init(void)
6631
6631
name = "broadwell" ;
6632
6632
break ;
6633
6633
6634
- case INTEL_FAM6_XEON_PHI_KNL :
6635
- case INTEL_FAM6_XEON_PHI_KNM :
6634
+ case INTEL_XEON_PHI_KNL :
6635
+ case INTEL_XEON_PHI_KNM :
6636
6636
memcpy (hw_cache_event_ids ,
6637
6637
slm_hw_cache_event_ids , sizeof (hw_cache_event_ids ));
6638
6638
memcpy (hw_cache_extra_regs ,
@@ -6651,15 +6651,15 @@ __init int intel_pmu_init(void)
6651
6651
name = "knights-landing" ;
6652
6652
break ;
6653
6653
6654
- case INTEL_FAM6_SKYLAKE_X :
6654
+ case INTEL_SKYLAKE_X :
6655
6655
pmem = true;
6656
6656
fallthrough ;
6657
- case INTEL_FAM6_SKYLAKE_L :
6658
- case INTEL_FAM6_SKYLAKE :
6659
- case INTEL_FAM6_KABYLAKE_L :
6660
- case INTEL_FAM6_KABYLAKE :
6661
- case INTEL_FAM6_COMETLAKE_L :
6662
- case INTEL_FAM6_COMETLAKE :
6657
+ case INTEL_SKYLAKE_L :
6658
+ case INTEL_SKYLAKE :
6659
+ case INTEL_KABYLAKE_L :
6660
+ case INTEL_KABYLAKE :
6661
+ case INTEL_COMETLAKE_L :
6662
+ case INTEL_COMETLAKE :
6663
6663
x86_add_quirk (intel_pebs_isolation_quirk );
6664
6664
x86_pmu .late_ack = true;
6665
6665
memcpy (hw_cache_event_ids , skl_hw_cache_event_ids , sizeof (hw_cache_event_ids ));
@@ -6708,16 +6708,16 @@ __init int intel_pmu_init(void)
6708
6708
name = "skylake" ;
6709
6709
break ;
6710
6710
6711
- case INTEL_FAM6_ICELAKE_X :
6712
- case INTEL_FAM6_ICELAKE_D :
6711
+ case INTEL_ICELAKE_X :
6712
+ case INTEL_ICELAKE_D :
6713
6713
x86_pmu .pebs_ept = 1 ;
6714
6714
pmem = true;
6715
6715
fallthrough ;
6716
- case INTEL_FAM6_ICELAKE_L :
6717
- case INTEL_FAM6_ICELAKE :
6718
- case INTEL_FAM6_TIGERLAKE_L :
6719
- case INTEL_FAM6_TIGERLAKE :
6720
- case INTEL_FAM6_ROCKETLAKE :
6716
+ case INTEL_ICELAKE_L :
6717
+ case INTEL_ICELAKE :
6718
+ case INTEL_TIGERLAKE_L :
6719
+ case INTEL_TIGERLAKE :
6720
+ case INTEL_ROCKETLAKE :
6721
6721
x86_pmu .late_ack = true;
6722
6722
memcpy (hw_cache_event_ids , skl_hw_cache_event_ids , sizeof (hw_cache_event_ids ));
6723
6723
memcpy (hw_cache_extra_regs , skl_hw_cache_extra_regs , sizeof (hw_cache_extra_regs ));
@@ -6752,13 +6752,13 @@ __init int intel_pmu_init(void)
6752
6752
name = "icelake" ;
6753
6753
break ;
6754
6754
6755
- case INTEL_FAM6_SAPPHIRERAPIDS_X :
6756
- case INTEL_FAM6_EMERALDRAPIDS_X :
6755
+ case INTEL_SAPPHIRERAPIDS_X :
6756
+ case INTEL_EMERALDRAPIDS_X :
6757
6757
x86_pmu .flags |= PMU_FL_MEM_LOADS_AUX ;
6758
6758
x86_pmu .extra_regs = intel_glc_extra_regs ;
6759
6759
fallthrough ;
6760
- case INTEL_FAM6_GRANITERAPIDS_X :
6761
- case INTEL_FAM6_GRANITERAPIDS_D :
6760
+ case INTEL_GRANITERAPIDS_X :
6761
+ case INTEL_GRANITERAPIDS_D :
6762
6762
intel_pmu_init_glc (NULL );
6763
6763
if (!x86_pmu .extra_regs )
6764
6764
x86_pmu .extra_regs = intel_rwc_extra_regs ;
@@ -6776,11 +6776,11 @@ __init int intel_pmu_init(void)
6776
6776
name = "sapphire_rapids" ;
6777
6777
break ;
6778
6778
6779
- case INTEL_FAM6_ALDERLAKE :
6780
- case INTEL_FAM6_ALDERLAKE_L :
6781
- case INTEL_FAM6_RAPTORLAKE :
6782
- case INTEL_FAM6_RAPTORLAKE_P :
6783
- case INTEL_FAM6_RAPTORLAKE_S :
6779
+ case INTEL_ALDERLAKE :
6780
+ case INTEL_ALDERLAKE_L :
6781
+ case INTEL_RAPTORLAKE :
6782
+ case INTEL_RAPTORLAKE_P :
6783
+ case INTEL_RAPTORLAKE_S :
6784
6784
/*
6785
6785
* Alder Lake has 2 types of CPU, core and atom.
6786
6786
*
@@ -6838,8 +6838,8 @@ __init int intel_pmu_init(void)
6838
6838
name = "alderlake_hybrid" ;
6839
6839
break ;
6840
6840
6841
- case INTEL_FAM6_METEORLAKE :
6842
- case INTEL_FAM6_METEORLAKE_L :
6841
+ case INTEL_METEORLAKE :
6842
+ case INTEL_METEORLAKE_L :
6843
6843
intel_pmu_init_hybrid (hybrid_big_small );
6844
6844
6845
6845
x86_pmu .pebs_latency_data = mtl_latency_data_small ;
0 commit comments