Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp617522lqd; Wed, 24 Apr 2024 11:33:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUldw+I5WB2pkRNr2DiufgMnZsH51WVPUvRGmW+WPhZCQe8YNxcwARWpDfSGs07liGEBuMWsNMbkvqrWpSMiCyiGuOZLV+W6FdaWttfGA== X-Google-Smtp-Source: AGHT+IE+HLNWbDeVI90AGLJ7usrgdWFr/5Ssg/vYje1Yi806CHZQiNRBC0HiToU0hV0oWqpGzVD1 X-Received: by 2002:a17:902:d4cc:b0:1e4:3535:a85 with SMTP id o12-20020a170902d4cc00b001e435350a85mr4139479plg.7.1713983634536; Wed, 24 Apr 2024 11:33:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983634; cv=pass; d=google.com; s=arc-20160816; b=XWj3n41CQK1quHFXaDPk7Bhe+ZuDBL3xRKAUOfaq/Q34/nhVBo2bQi7sI21AS1BHUi FFfuCAfc9CBqitYLAu9tFgKmU5bXIHQshhZSGRny2CAGAmpR2r7WEZ2XSSOdJXOzZpNl IF+DDc5B+BTIwuhj0l6v5hklnMKPVIUn0vtRQvOi20AsPdlceN+SPFMtQ4IYxg89Izwf ErQ8G8jrQHVcu/WIbHLvZ67pK8j5rYiK0TjPcFXCmRkDwyh8BVcoBRtLHrvABNB0AS0H jY+Q+RdgGpsOralFy250x+VGvFcCCfBst2pq/QB5Fgzc4XeiBg/0JPHfWTrIREVELV6g nYsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IBbWO0kfrDea/CJlvHQku63/DZ9c45xy7JyZJOunMlE=; fh=5s6W4w6x1Zs0Fr3OEets4qgL7TMNt4/0CDcX9+H43TU=; b=pac7M6iLwg+t3wmDh9ipginIwiuQgSeSqBrzi9+DB+qPfXK8ZDVnukotGnBEhhvfMv 5QvKlt4vIZsX+iVSTUuRmipU7WVa2BNVWq1oij+lCK2qWu3jOLZi+PZ+xHivlzWivazE PO+7GPk7tKDPbVOa9s5t5lfUceyI/oBx3oZog9aPqysbV7BsJpRgvXA2hZfr3j+kF/Au wHsAOx+ToZ06h8GbgLXoE8Njse220wc1/Jq8yvA1W4DHGjUQ4On13lWnvK8HOURbXvfN R8q4fiZz75qCG6t4S61jP0Zmdvnq+sEM2PIPUeWnElKWlO9szDB4YIHwG7wohMfd3urW ZAeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GqxJr+aF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-157468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mb6-20020a170903098600b001e3e64f9515si11841106plb.102.2024.04.24.11.33.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:33:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GqxJr+aF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-157468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C6C128F649 for ; Wed, 24 Apr 2024 18:18:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 000C617BB3A; Wed, 24 Apr 2024 18:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GqxJr+aF" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 594F317AD79; Wed, 24 Apr 2024 18:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982515; cv=none; b=Ufh0Dk5zgZvqYColIL4SWm3+4cRO6p44xnx/g4ikSEPQUsbDseprtFd7cqqELU/g0BLeGqFC5K5GLabzTRPU57qPcIQR8K1E5h43/VLgukfVqEFHb19iw11GE8g0lJ/ysDbeBepmVl54jNNNh1c51G2y3GbP1UMVQ6muKpFQAlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982515; c=relaxed/simple; bh=XAPDGw5vqm4R68C0iiGxVia58si6InFh20Tr6Ma0z9k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fhp2MxkXphxPfLjQfkR3LjOQvBnDORKJKef7EmBR9PwZutT1QTZKpx+u+CCYiq//H9Q8s037O4lHA9ROm+uE7tcT1MV9zWX9Po9iq7Z8q+1BkHRb5MHrDdC5kX9HrmiB1bbwE/nwbAyXHMFWK8e1WMuXrle5v7/ajqLvzSijO3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=GqxJr+aF; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713982513; x=1745518513; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XAPDGw5vqm4R68C0iiGxVia58si6InFh20Tr6Ma0z9k=; b=GqxJr+aFNYl/SWUHOKhd4bWve/bSOE8VxrnP1vhKF7ovBjy6WODJ5HOE fsY0eFyGQHHk/c2c4jtiPgtQou8b6l2LlmDa9SrDs2Oi47+FrbuZ3fn51 XB5tR+fGjV/RFgQtXyAF6GblRufYdzx2GqgiqbWicIqRs9fFL0Mw+hMro 7sQNIId7aVpUZEUBKhvtavi7bwsQPWhlr31GFHzv2iWGaKXe5abDhRg9H wlJUgiw6Ipuw4AJZCEREGhWDD2I0RSlsfggXsCgclDHS/1fC+xIY873LQ QTd2mN8oDGpVmE3JUV2bBaq9+3RrO1B6cVIP01xm0tiKhPZbM7edLd2rz A==; X-CSE-ConnectionGUID: z1xqYCn9Q+qjR0SbgWXQSg== X-CSE-MsgGUID: DWlaDNkdQcChXWgC0FTorA== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9481864" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9481864" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:00 -0700 X-CSE-ConnectionGUID: oL0hbClGS/eFPq2nAJ6efw== X-CSE-MsgGUID: KzqisXLkSG+cK+UlSZDgUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262639" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:00 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Dave Hansen , x86@kernel.org Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , "H. Peter Anvin" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 19/71] perf/x86/lbr: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:00 -0700 Message-ID: <20240424181500.41519-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424181245.41141-1-tony.luck@intel.com> References: <20240424181245.41141-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck --- arch/x86/events/intel/lbr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c index 78cd5084104e..86277196ffad 100644 --- a/arch/x86/events/intel/lbr.c +++ b/arch/x86/events/intel/lbr.c @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -1457,7 +1458,7 @@ void __init intel_pmu_lbr_init_atom(void) * to have an operational LBR which can freeze * on PMU interrupt */ - if (boot_cpu_data.x86_model == 28 + if (boot_cpu_data.x86_vfm == INTEL_ATOM_BONNELL && boot_cpu_data.x86_stepping < 10) { pr_cont("LBR disabled due to erratum"); return; -- 2.44.0