Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp611588lqd; Wed, 24 Apr 2024 11:23:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkdkRIurjYArWH2YatF+BglORRWGVC173JcgOXGqYBkTPRUnqGalU4A87cUGQIKN7smKKEFlt/kI00sLDR8me6GuSWHBgPfcT7rKUr6g== X-Google-Smtp-Source: AGHT+IHMgiaeUfV8MYf2npbosNU1pXSt9H+ogGG222/T11Cp1gjCAKsTy/HTbd7GhRzusFvIqEcW X-Received: by 2002:a05:6512:3095:b0:51c:9d2:f43e with SMTP id z21-20020a056512309500b0051c09d2f43emr2021318lfd.36.1713983025895; Wed, 24 Apr 2024 11:23:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983025; cv=pass; d=google.com; s=arc-20160816; b=jaXIU/grcLwW5cVHfT+A+tyElRSU52l//PxMFBXEJTWF+nWeZWYI+hMEYK4atuEPKE YHziDBSqac7WvLvDYIiIFLGyEh+cBU5ftYLSzOJ2CCaPZmm57fUWYi3TLHmPL8QQ81nR s0qlg4284eRR3q8g9h079ceiVZYzGXcKvEMXU6h7C6Av30ujmfEyvJ9rx1FPTk9UWm1T gnt5UjFmDQ5XiyJ3nNIc/qxLLluD4VKOJliuXN5qLbjtMy1eG0HOrm1KzFJfuLAJxUEZ v+TkHOQ9cvKk2nitPJD9+fHSOyJuXP2utK9wfrTb1oSNoMAjKRDS++hvQBclw/PgQb3d 5Fag== 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=AruvmebApX1j7M0SdGcDVNONT+8ic9+V2TfL49ZtkgM=; fh=rMUER6/6LDUD3IphtgJcluSYLmip6tPJI1NKc16IHHU=; b=fZlTLljGCukDumCzOcwrHq18UIvtNOhhm6ZtdlFJt7aZrYCvBlW7Ukvh20t/2t2WFc ztY94cqJEZUx31XYrORDcQCb6ZzDpmZ0TpttPmvDoRhqz6nFz9JFHoEmoMbGFody25gp BTjXgh/26PPvU76s8iqA3RYcIAspy4HKQOLqfHqdDzjrTK5Wly0YCqsS+Kpk1+M5mhYp osYbLkseMOqtLxecB7q04sI/obuvFPzdKc3xA94sGnR4YNW5XPZ0T+WQgI8rFnc+gIuL xkGqTzh6Tj0buBVZ3gMVIzfNh3AB48XkrSXMqIXdB14MgWQrOSIihDKwIS8WfAY+EvVK 2PLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Z/nX5rg9"; 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-157496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gb25-20020a170907961900b00a55bfeb0638si3750173ejc.675.2024.04.24.11.23.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:23:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157496-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=@intel.com header.s=Intel header.b="Z/nX5rg9"; 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-157496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157496-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 943061F21012 for ; Wed, 24 Apr 2024 18:23:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBB481A38FF; 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="Z/nX5rg9" 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 E2DC2199EA9 for ; Wed, 24 Apr 2024 18:15:28 +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=1713982530; cv=none; b=dDEu2HXN7BYuab+f5H2vqeT8ZQ7ovpeYdBtOksP+uS7E/vy3pDN1YiWy7UYt+HN0aMeUHuu33ZPRyVbgCt6wNpbCMV9LNMwgA4THe6QiueQHkNjDA6KofV8FdSizkxG7eF/HLLiJwrtDm/zd/J2rxzeokaLyemHaV03eUjUk0qs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982530; c=relaxed/simple; bh=dCC5e5zdUWP8nN10zczP7r4e33cRc3Nah82w39Vvy74=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dQciXMpMoIvmiuzfsNCzG76FwsDFnJMWX9MVQOaiLNtGvIhLuSzC26bA5QXu6vEcuXFBy8fBxlCOB5wSiAVi0JAgeR67sT6a6KzHE5uSn+CwLInf08+eooX7QQhjuOJ/UinkevY3rrP+10ISWfFER/xNu6WA74Q8+kIzgyUGvUI= 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=Z/nX5rg9; 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=1713982529; x=1745518529; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dCC5e5zdUWP8nN10zczP7r4e33cRc3Nah82w39Vvy74=; b=Z/nX5rg93JZVjrZu/ez6E9VE7I8Ly6AAk30qaxSdbXFR73mMYjZY69zH Bm15k/CX0NKz627oU2u0a24pJF0tctsSBMCgkcLju47JQ3NIYk37wU2lB Wbpj+Ys2lbAqCbLx7CMv0KQmWu0MWuqbBkuubuqyT7Zuul31maEwPvM1H pZVKmR1yTtXiPmHHZwxVQP/gbBU/e8mgwZM8XD/GO8pGy9sqYrq6Zq4yi pSLNfG/bHGgXL3QSBSu2fCGVopKtU2Hzlu9rTpKZfr/ypcOvHkRMKqNpa 9jaKmIaC+ED9zFlpPcXtt9wMe9Bte4HhGZaz4mkw2+G1XuH66cMY/qY4a Q==; X-CSE-ConnectionGUID: EU/b5jb6T8iGI40zBOWe6A== X-CSE-MsgGUID: ynEM4odkSpKb+RD5gkAjRw== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9482072" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9482072" 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:18 -0700 X-CSE-ConnectionGUID: mgTPo2hJR/2Epmgb3jkRYA== X-CSE-MsgGUID: HLu4AdKOSLGC4CcDZD7aOA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262788" 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:18 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , Tony Luck , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH v4 40/71] x86/tsc_msr: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:18 -0700 Message-ID: <20240424181518.41927-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_msr.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/tsc_msr.c b/arch/x86/kernel/tsc_msr.c index 6555a857a1e6..deeb02825670 100644 --- a/arch/x86/kernel/tsc_msr.c +++ b/arch/x86/kernel/tsc_msr.c @@ -147,13 +147,13 @@ static const struct freq_desc freq_desc_lgm = { }; static const struct x86_cpu_id tsc_msr_cpu_ids[] = { - X86_MATCH_INTEL_FAM6_MODEL(ATOM_SALTWELL_MID, &freq_desc_pnw), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_SALTWELL_TABLET,&freq_desc_clv), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_SILVERMONT, &freq_desc_byt), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_SILVERMONT_MID, &freq_desc_tng), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_AIRMONT, &freq_desc_cht), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_AIRMONT_MID, &freq_desc_ann), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_AIRMONT_NP, &freq_desc_lgm), + X86_MATCH_VFM(INTEL_ATOM_SALTWELL_MID, &freq_desc_pnw), + X86_MATCH_VFM(INTEL_ATOM_SALTWELL_TABLET, &freq_desc_clv), + X86_MATCH_VFM(INTEL_ATOM_SILVERMONT, &freq_desc_byt), + X86_MATCH_VFM(INTEL_ATOM_SILVERMONT_MID, &freq_desc_tng), + X86_MATCH_VFM(INTEL_ATOM_AIRMONT, &freq_desc_cht), + X86_MATCH_VFM(INTEL_ATOM_AIRMONT_MID, &freq_desc_ann), + X86_MATCH_VFM(INTEL_ATOM_AIRMONT_NP, &freq_desc_lgm), {} }; -- 2.44.0