lkml.org 
[lkml]   [2024]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v4 20/71] perf/x86/intel/pt: Switch to new Intel CPU model defines
From
On 4/24/24 11:15, Tony Luck wrote:
> /* model-specific quirks */
> - switch (boot_cpu_data.x86_model) {
> - case INTEL_FAM6_BROADWELL:
> - case INTEL_FAM6_BROADWELL_D:
> - case INTEL_FAM6_BROADWELL_G:
> - case INTEL_FAM6_BROADWELL_X:
> + switch (boot_cpu_data.x86_vfm) {
> + case INTEL_BROADWELL:
> + case INTEL_BROADWELL_D:
> + case INTEL_BROADWELL_G:
> + case INTEL_BROADWELL_X:
> /* not setting BRANCH_EN will #GP, erratum BDM106 */
> pt_pmu.branch_en_always_on = true;
> break;

Hah, and this actually fixes a theoretical bug because there's no check
for family 6 in this code.

\
 
 \ /
  Last update: 2024-05-27 18:04    [W:0.549 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site