Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp611471lqd; Wed, 24 Apr 2024 11:23:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqAZQVpLaJC9+xUcFB9Wq6xuyU6Fom0k8h9br5i9vYFZOkQRo8gz+XDoKVLCZDra7aie12eSK9bcP4aquj3ngjRyjn+md9C56zpTdRdg== X-Google-Smtp-Source: AGHT+IFkiIdTaiWpDQh3Dd5zmnj2sUsrZhlIuGyBCoJZD99ct2Tm4I0Vcha8BRdUJq+L5K37OB/3 X-Received: by 2002:a05:620a:8110:b0:78d:5652:5bc8 with SMTP id os16-20020a05620a811000b0078d56525bc8mr3508351qkn.25.1713983007681; Wed, 24 Apr 2024 11:23:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983007; cv=pass; d=google.com; s=arc-20160816; b=vU4fLCqvBjG5bLHcKgANxuYUUCYDTPg0s3S3vcmdBb7y6Qgl6Z6zckZgUNovGbK8nj vtcvaJ9sNpR7t8J8Et/yeZpXpJe3epgsY9/Xn82mHHFQ9W+k+IgqnpB68U19xxaX0VBD zkHCyRevwNjBcSZDqy08D5dwRMZQOXVrWq6q8aqFXUxuh1jvLR0dDdXe7NoUa0a83dul 3G5BxFCQ17dbPOy+X2puvrD0CdyhVIlj/Zn8wc/O7qBEbPg12oLnRnxrdr63VC9giSu/ x9euPFZMODjC6iiOksJXLn3toXaPGWBSgt52LRSHQIOyJGUmtQswFNEFGJlWV9hDYZM+ hlCQ== 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=lZ02SuegyS2XrBjx/7IHBnp7iK9c9gDgby/K+U9OJAU=; fh=CYZQ059j2/BfUGuJH1yOQ3HqH1cK9BxAm3hSPNicXtQ=; b=gIZS0XNi4JwyU1obl73fen72WK/RL3zXSjQ6vIM6YwItDWkaJeQOZBxvlDDOjPFyZr QneysPEAbdrTjSAgeja5OxHeazLNhHQnjQr2HwSzJa7uKycbzoftKYMRLbmg2FKoUDtO hzfkWAUbeCPA2e7d14bA+Vqg6lJ4JjyRCyaW8R8Czsyh1D4nnhwby14GSB7D7Szk0jVM 0lpBf9PfIYfe8doqqEQSCZV4ZSzwTvoLGGryr5io5igvV186RJ7d5yD2p0V0RL+Stxoh mhbaBHxe+51MFI1z2i5e7WyezDTgClRYsdt1WCcnbxnRWBiMGmkPArqtW+k1Og116Zeo Fp5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WVSzOgU8; 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-157492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g4-20020a05620a108400b0078d6c0cd0bfsi15851297qkk.46.2024.04.24.11.23.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:23:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WVSzOgU8; 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-157492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157492-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3F3101C225E7 for ; Wed, 24 Apr 2024 18:23:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17B1E1A38CD; Wed, 24 Apr 2024 18:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WVSzOgU8" 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 E93D919066D for ; Wed, 24 Apr 2024 18:15:27 +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=1713982529; cv=none; b=DyAbZasNR0jxmOb6cTC0KAd2/UgZaI9OQgAJJW+q+9ScRGFqg936PBptXlSoFXM/Vo0G+HDzxF3pgBbKxYJhcCyrTqv+86wIBuRs5f0LuvQu930uF/bkpS2biz4qoRoUgO7na5rI5J+03i7MXmLHciSpTwZEM+SN+i5kCjYG6H8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982529; c=relaxed/simple; bh=ebqOtnUkt/A9psEl5cZDP3DS54C80vHz8/R3RNrcpS8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Lh25ef1JVLNYf8IfGGCl8m5rnLiGHWRy6clyW9nb/IZjH0RvFFlOX3T0Z9L+h4TeenaIZe1p13HGh51+8/WERd0GjF7Q20mWZ9WGtbbuTtsGIZoUyghusxhTV1gkw9rZB7zvxmOkcI7NotBoHXYDDJ8BRXFC3tRRl6bbLMxX9Os= 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=WVSzOgU8; 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=1713982528; x=1745518528; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ebqOtnUkt/A9psEl5cZDP3DS54C80vHz8/R3RNrcpS8=; b=WVSzOgU8UJ7xnqkty8AZCf79VQBIJSbkpVB/1nNdIUwi/hk/TgNcV1Lp da4a7q7osIATK8XqEwdxB8MPVrxInmRhoYcvJ/w+MwNpbE0CvbWMcLvdm LwfattwQrBpOuRhaqaigj/QD/S9yhT8jCrq3rfzq/QrYTyRpgTaWn1qwQ 9B1fDoQYmtXq9L0DCnWjZyUMG4weZW8L+JEbBoTsY5tkHoW7t+oxQywlU WX4zNhWBetCCbAmW6VV+MrY7dEAzSkkzbDEMobeB3AGtHgb70SrhNCUcf VhKxWwYveJtnpq5CVTBVECEDYtvoJV5jC1p4eWZu96hW+ufW/mc66ovxS A==; X-CSE-ConnectionGUID: Gx+bneXRR62Z5c4b7s5x6A== X-CSE-MsgGUID: T2Il1whRTpWmk+EdkWAMfA== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9482061" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9482061" 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:17 -0700 X-CSE-ConnectionGUID: JpdAqOPdReKZb5fPA5G9Eg== X-CSE-MsgGUID: 8NhhASDjSpKDp8oAugHh2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262785" 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:17 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , Peter Hilber , Peter Zijlstra , "Paul E. McKenney" , Feng Tang , Tony Luck , Randy Dunlap , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH v4 39/71] x86/tsc: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:17 -0700 Message-ID: <20240424181517.41907-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/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 5a69a49acc96..c4745141dd17 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 -- 2.44.0