Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1267272lqd; Thu, 25 Apr 2024 10:12:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcjYzJzrGAPgc7trM8ygSFiixIDyz2LB/Qjqn8JOnDs6Bozseh7Qsccbo2vRuYx+9e8qCT9cH/WFkH+ViwOqzRslyAJlskKJCcUXW+8Q== X-Google-Smtp-Source: AGHT+IGyVGJSdgKX7PD6gjNNT+1U5jBfS8nszgcasxtg1DKuHQFP48Jcy26bZzo7K0AsLpXTBO9o X-Received: by 2002:a50:9313:0:b0:572:315b:441 with SMTP id m19-20020a509313000000b00572315b0441mr186016eda.42.1714065138604; Thu, 25 Apr 2024 10:12:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714065138; cv=pass; d=google.com; s=arc-20160816; b=pZxqJFx91zCkJ3uPKZl0qsghLx3EK+67ts9nynuMXUYS7zXFpmRerHOB14aBk9bzSv dq+1FlOl7lUEtjRHqv9Ig+wCH5rwuA57YoCctgt51R29RFTpp7sSPsGdS6Ryl1ggkU8J RaAHgEEWgKTyS4GHjiLV+bur6toGo8U8O9fhF6u7pbE73EbfN++4z79QTfLw6t+4UEwk nGj4OKPjA96LYuMtISvCM4dYYT3wij7fWJt7RMrIBR7cjR2AqEjEGG8HHtoQA2qpX6Nr gLp8LG33VQiw4KXZtGHX5m3+wSc7hni8kBkodZcy4tB6NwoDvo/SoZZsXF6co14hYTYS fTag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:cc:subject:to:reply-to:sender:from:dkim-signature :dkim-signature:date; bh=1+pWFK4hcRAFX69KZLNY+3c2XbvWTuBG9wv0obS/yZo=; fh=sRuoxverM9+fK9z5tkT0IKJpR0o28A+KF9ywarzvQRc=; b=zsCKqs9c46vavTrdKFL2ni+aN0pEW+XXKBzzGiGM6mAO/VC8WO3LhzRh6V2KJQPtqI r0FRXkYprzRDbnAxy4LDws5OzXh/rZzFWz03lMJGROr98OG0H1Am7ihmwmnqyBe6fSC8 4g8Z0wX531jO9jOUJP2eWJkq2ku0GIgOE0gslFHnxdTRjrvjWY5ErE5AX4r70XX8G+To 6dMez8itku6Fn5lXHk6YrmEREfcNVHhSjFyuyHApMRDl0oXhyPTAzjjg+qzxSI+nNfvT 5ZEX7N9RltHqkr163wZza6mDXWssWTUDITWsDXag3iZCnZ+qgZAQbEfmyhm8Sn/WmaCL 3I/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=emLN7CcV; dkim=neutral (no key) header.i=@linutronix.de header.b=QquhhDQl; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-158952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s16-20020a50d490000000b0057247cf575esi410968edi.611.2024.04.25.10.12.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 10:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=emLN7CcV; dkim=neutral (no key) header.i=@linutronix.de header.b=QquhhDQl; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-158952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D762F1F21C1A for ; Thu, 25 Apr 2024 17:12:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 822E01514EE; Thu, 25 Apr 2024 17:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="emLN7CcV"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QquhhDQl" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0741514E2F9; Thu, 25 Apr 2024 17:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714065044; cv=none; b=OYVkFfmgAiGgI9uK5usGf40pU1iCCfvVXJ9+jnuJJH0PeQJBqiCGsUfjuERUUL80qsKRIK8GGmcYu2lpeKC6jdY1ogNlrJmZlf4xyqBASdjWluRtDNZUQ6Az7+KeqNH99hyEZTkdFvQRocEGQreaEUMOsaogqxdu2PT2/ZI5QTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714065044; c=relaxed/simple; bh=3ryby7FrlSdmqF0o+30MAmVhtK9nWVScXXMQ0nrtd04=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=MG5+i89HVmmU/b+G6IqE1F7RTUszaz+OhAEmMDr2miqZYxiH4uq3qE/ySkcmZyr110psJ5Xq6e7rQljcLJixAB3JsxQ/ThOT4PPzPfyCiBq4gnnLqYUyppu7RWACX0X0SyZjtr3f3wqWXj4WdlGnVMU1uHB+kRxeTaoN+KH39YI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=emLN7CcV; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QquhhDQl; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 25 Apr 2024 17:10:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714065037; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1+pWFK4hcRAFX69KZLNY+3c2XbvWTuBG9wv0obS/yZo=; b=emLN7CcVnbKjlAUO0+CqQ6ORrD88Wfzcr4KyS+qCFRaeQzyfFWNo+7Hd4jFFwKREY61aqK f8QQsjUXqmpP/8Lrw7vGt292/WJ74McoczGUdO7mxp5qJN4ikXGT7mj96VCbVSmzW5+i/j p4Te/WREk9rk5r9N84PLEe5ru4BhVo6jTROu/2kv4Nm8W2xfJ3YG4QUTqD3W04Bz2xDSd/ fUy8uD0V7X7l6vLjejvZHPsRKexPdoAO38vDP+ZgXKGsH2b43Ofbh3+FA0bHuJ+zQP3gve YOQiIsFtzh51dGwvzzWNozLfJaRqgN6xAxxDy/oH16h3pjnYzoFJS+4HrGIwng== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714065037; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1+pWFK4hcRAFX69KZLNY+3c2XbvWTuBG9wv0obS/yZo=; b=QquhhDQlQaHlwXtpOi7B/b0Jq17/DLGW8JEmS8BmtQUpkc7V7sO7FcF2EasOBFQWkQP419 2YdlV69H3EnSQsAg== From: "tip-bot2 for Tony Luck" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] perf/x86/lbr: Switch to new Intel CPU model defines Cc: Tony Luck , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171406503678.10875.542718220159370060.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 0011a51d73d57866c8d7ee8be2ff1e5baa17f6ca Gitweb: https://git.kernel.org/tip/0011a51d73d57866c8d7ee8be2ff1e5baa17f6ca Author: Tony Luck AuthorDate: Wed, 24 Apr 2024 11:15:00 -07:00 Committer: Dave Hansen CommitterDate: Thu, 25 Apr 2024 09:04:32 -07:00 perf/x86/lbr: Switch to new Intel CPU model defines New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck Signed-off-by: Dave Hansen Link: https://lore.kernel.org/all/20240424181500.41519-1-tony.luck%40intel.com --- 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 78cd508..8627719 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;