Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1229139lqa; Mon, 29 Apr 2024 02:02:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0NvXrmf1NOqN6NEJAlHLFjp+7VeA5wi5Dl9xtahAqQLgqg42bSDLWvuICc902sxaxBKc7wvdPMbJaiaS7UOcWB90Z730OKJeEyEPfGQ== X-Google-Smtp-Source: AGHT+IEJI1Mn5Pi0eajwYkqDMWDAjEMcOnLvmljLVZUEkf56Da9Qd+az1IFTKNSCWmt3N6gY8Iza X-Received: by 2002:a17:903:40cf:b0:1e7:b6f4:2d75 with SMTP id t15-20020a17090340cf00b001e7b6f42d75mr13170858pld.6.1714381363061; Mon, 29 Apr 2024 02:02:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714381363; cv=pass; d=google.com; s=arc-20160816; b=RZ8qGK6HsTN3MjAf0hbmdVD3f1ZscdgS1oDzrD2+bfgPcBt55AjYxI50zooz3TMTaN duOzJB/LsLzaD/BVcMNIBwP83tFXZx+fESAQND0a8o66E+vVS40oT/w1Ayau67flDrWx FZj4ZZit/FMP0RW7o/cg42vBZBLC0cE5VehDDl798/DaeK8QPSbonvkrwcOnH6ARR0Iy KizysBD/f78/zS12MuWbKesaGV5vvYhd6HONV5G9tXUYsxU/hsauTYmTmCmSrijRSCWh 3DzEPpDVtZ20zTsTKiC8yLuRhmqdizJGkOwbOr2kEDwoL9urDX1Qtcj3eCGOJgZJkbBX DoSA== 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=vppM6fRfRxF2LNHbRHR3s8eGVhgCzGCOOJ+5hrrvhFY=; fh=JTk9+qr5gpUHTA82NAoTC2Dn364LtWPF0bcXdXoFHrA=; b=Zns4ixZLGDfnrDAuDrTSldaLzpM84ZE7nbbLDQ7NSab0KPcLPqqaAL/SzrG/TsjecE pCaR21dJND82b1eewTTxyQsVgStJPU/WgTiyuUoaHd2wVtu84EKdScLw7Up9chUtmIZZ cOkX6PfRJ3dRxT1OQAsAwZNS6Jyvh1IvhGeLthMc8tviTxvpgDKp2iqSqAYJouR70bdw 04iVPw3mrvu+WKpx4yuh5XvhHVunhgdaqi9C/I5LNF33ARrZ19OmkkQFaj8sQuOb7S58 vokko+eJ+jFYTkRUgfFwB0jtf8e7vZ+swGw++NSmjkhDf8bzlOOTx8IbeJNOhAg+45K6 1IsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="p/R0Kk8p"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=LqehEpHw; 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-161947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y8-20020a170902b48800b001eb30bc8362si4489182plr.209.2024.04.29.02.02.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 02:02:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="p/R0Kk8p"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=LqehEpHw; 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-161947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161947-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 33393281517 for ; Mon, 29 Apr 2024 09:02:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD01F2941E; Mon, 29 Apr 2024 09:02:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="p/R0Kk8p"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LqehEpHw" 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 42DF3199C7; Mon, 29 Apr 2024 09:02:01 +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=1714381324; cv=none; b=EA3XbJWEnGG/vTaAry/ezwBvk0e0msATxh4KuD/hp4pNzdA7JB4u/VKHort9MIs7tgFytJg8aEyqDTuhNFVxp8HNPyKQR0tfU8bdBuNIZsTtfeiwwn+WIZkBZMKuEWyhjwiQrOfIsUK+gBe0oSEyFAmm9JrpZkkboaUURNYNcvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714381324; c=relaxed/simple; bh=szM/oj8H6MkK5P0WosI/YkwUD+vH3mnJjuOkpqWpAIY=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=siZhasS04wMCBmJ7ZZj6tPl9YRi465aaMe9PHRDNyAi+6IhCpFFoC/OB/na8YwnOXmlaQKSvee6c5fI6GQmhJ7VwHO5FVnZGSH8C5l8Nmu9DveqGV9ZvP8LDS3BMm6+6uvXkQPxvo5Tq/cE32Atg4AwavRfIVGmwWPWBoFJ5j0E= 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=p/R0Kk8p; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=LqehEpHw; 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: Mon, 29 Apr 2024 09:01:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714381314; 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=vppM6fRfRxF2LNHbRHR3s8eGVhgCzGCOOJ+5hrrvhFY=; b=p/R0Kk8pA5Io6hbJZ4T14TUXiNq3dZ6ovPXF/+1+ihMpgn5GyzXV4fa0sG8e8I3/k5Pgrz TCN3dsM0UF8YWdbNwGnlHnqZMC2dq/veEaOblI6Vc92AqQszW42nqAnuJCLPkxTNZV8/82 rRQp2HZaLcMngRsyyeNSIgBYDy2cLbeNzKfeyLkdQFjRbeQV5OnmXi1hskDhWNt+7lPG2S rsWgLzYki9xCwJel9Lqp7wDo42ips1qhs9b4e+KKmhS2j2zl3OXcwVPw+4kYu+6p98cfIv 652zF4WTh6U0yC02WTNghI/1a3YR73wlzxtPPobxMfpwlmg53G87fWNwgNQyyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714381314; 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=vppM6fRfRxF2LNHbRHR3s8eGVhgCzGCOOJ+5hrrvhFY=; b=LqehEpHwv2Zm3ZU9VaX8MXXBNS+DBPCQix/a43CQZvPuiHyjFMwWPqFjG6gN+hzIaFlXUB UwMM7/xanOKNMoCw== 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] x86/tsc: Switch to new Intel CPU model defines Cc: Tony Luck , Dave Hansen , "Borislav Petkov (AMD)" , 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: <171438131383.10875.2260333950581084127.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: f21b075b672411772a5fe359c29aff2b70fcc51d Gitweb: https://git.kernel.org/tip/f21b075b672411772a5fe359c29aff2b70fcc51d Author: Tony Luck AuthorDate: Wed, 24 Apr 2024 11:15:17 -07:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 29 Apr 2024 10:31:32 +02:00 x86/tsc: 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 Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/all/20240424181517.41907-1-tony.luck%40intel.com --- arch/x86/kernel/tsc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 5a69a49..c474514 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include @@ -682,7 +682,7 @@ unsigned long native_calibrate_tsc(void) * clock. */ if (crystal_khz == 0 && - boot_cpu_data.x86_model == INTEL_FAM6_ATOM_GOLDMONT_D) + boot_cpu_data.x86_vfm == INTEL_ATOM_GOLDMONT_D) crystal_khz = 25000; /* @@ -713,7 +713,7 @@ unsigned long native_calibrate_tsc(void) * For Atom SoCs TSC is the only reliable clocksource. * Mark TSC reliable so no watchdog on it. */ - if (boot_cpu_data.x86_model == INTEL_FAM6_ATOM_GOLDMONT) + if (boot_cpu_data.x86_vfm == INTEL_ATOM_GOLDMONT) setup_force_cpu_cap(X86_FEATURE_TSC_RELIABLE); #ifdef CONFIG_X86_LOCAL_APIC