Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2746892lqo; Mon, 20 May 2024 15:49:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDUGv/3nxrsjXWNFAJMaqMWlY9n5jmP5iVwi9JuaXE+bgAuwiQMGa859snu185qelG8TXTxczRwXxi0x1nUJT0iSCU+l4O3+owaHOMgg== X-Google-Smtp-Source: AGHT+IHVIB34OMd4/Ym6KdbHtt5r89JHKtrVFe3+sa2nC1krpYBuMbkVPMv4rw2sqMC6Qd+OxFab X-Received: by 2002:a25:4c05:0:b0:de6:1798:3cc9 with SMTP id 3f1490d57ef6-dee4f34400fmr25970992276.18.1716245382879; Mon, 20 May 2024 15:49:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245382; cv=pass; d=google.com; s=arc-20160816; b=ZoIBMgHdh+RhbH7mwga4OWH7Rpx394Qcl73LRcri5y+9PajtxRfo2n+x8qDUGqyiZ5 NSK+rfkZ6UfdR9p5q1E8yn2DMD+cavdfb0wG32xNrjIiUdEehTClPxmpo4NIfDMPDeE9 Ph2C9LXipVOh7f49Q9RfBzdoFwhNjWTJxsAUcjseUZ2zFInYLxfeiMzpMxZVzMErwsTs IJdQua/nai6psIYGpXPmDkJEjnrMMdp9eGQvyiM+/JdKEVBKsTKy0ArTjIQe65ix+ccd 90Cx0JIvRBWPHO5zJK6JD9nYPqd9OHLZaDnAiP+T4hxZRmStndCCPieRy2K4Igo/x5jb Vyqw== 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=CXRe92EZ+djVoE4v8AFmi+a6y4ZVm51rhPxoWk8zo8g=; fh=90UiOfUamF61FdzaLLeWS614dbszuwB4B0fDmE46b8g=; b=xL6BLs6hKDIwIylojypzI6nK8xf4W2yHvo+qugwz/2hE8zBeKdLBjxPjf+M39g/pai E/Lqpf3jD2BiBe0RMRRAOAuzryeTMagQFSpSIzz7f9/KLUMJaCWIRP0fp5Yw1WvVL1e7 YUo51Ds97rGrtiIQUSaQrcAfdelHSPCIeTgnckOgbrIw2tnfcwY4il6kkQcxS22lfguG 8dsggluk+EndLPaA7+kMgzqGRPsjQNngOPb5lQvsxUDpZKLaqnIAU5mj26YhuoTlu+kr KgBkuDQUduWQ3dA7YEn8QALwQHaTHuQUgqsXqg+bVbhT08lixLr/5QZO2+32OnD/nEs8 aVLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KjEMpm5v; 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-184245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184245-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. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a9a8b5b804si3704226d6.317.2024.05.20.15.49.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:49:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KjEMpm5v; 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-184245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184245-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 83E011C20E36 for ; Mon, 20 May 2024 22:49:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F83613BAFB; Mon, 20 May 2024 22:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KjEMpm5v" 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 18D9C13AD22 for ; Mon, 20 May 2024 22:46:45 +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=1716245207; cv=none; b=pHttMBVkyS8Iauk2wohugJW1fhfj8wOCdaXZkKu8IV/nMtmsbwlaY8b1A0YMYeuvIgH12Q88+spAst8KDKLyuZF9YD4jKPMp+FhCa9oqu4+PZSH59RYXCayrYPzF49yU1O651+w0tJ0qf8oUkuh2EUQ9t0T5fWgXnmt8CHmGSzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245207; c=relaxed/simple; bh=yaJboBMEPLKvR1jTeG+KSsAACemlTofNhMPhw7StcCg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Rgsa6ThjFuul/FFlCm3OOAfejLiejiKPic1RoyKEHpACM/regVBr+aVdcwRekrNrO2CI3otGeJWjZYVf7GPh6hV6TgS1LQbIh6KyqDZNVPhpKO3jPIDh/C/Wo3QBjZJ2RHQ8dh2YAbOSNmD5rrQzjcAmwwKX195+4x7q0AEgg+M= 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=KjEMpm5v; 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=1716245205; x=1747781205; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yaJboBMEPLKvR1jTeG+KSsAACemlTofNhMPhw7StcCg=; b=KjEMpm5vFSr19NBf9TNaO6wJZtTAheACIbjCsITj9bcaGCL4J8cxgioy 9t98pbtoLioIRd27n48VYfA7R7PkL4HtbU4sNbkoQNrDtDBLBm/QTRmmJ 7+GjtBcMOdWnJtKNg3OsW38ZGaUFKVLGH59fiqTZ6yYrEeGfKQwLgKrdk 5h2/se1ql7jnJnuX4cVXe3dOwRDIYKpvF75gSDZGcKjMP4GAIwaFR9eQo GSBYYx6CTshJJHwGdva6iksOHlVALciP0NTBPiZsG+l2UaAhlVbb1lMtW kCXzoVaeNCjy6S7kgdllLBRwZ+cy3bEOWFKgfcPEkRFCtReIVf/eqjixF w==; X-CSE-ConnectionGUID: jaDTYVhfRNCGAXUVS7vPRQ== X-CSE-MsgGUID: E9wlgTPZSqms3zbLiw+e+Q== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199701" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199701" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:37 -0700 X-CSE-ConnectionGUID: oug6AUxBQKuX+951Q1CcwQ== X-CSE-MsgGUID: tzverJqoQd2OzgA4pIuA/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593436" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:37 -0700 From: Tony Luck To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , Rick Edgecombe , Arnd Bergmann , Tony Luck , Mateusz Guzik , Thomas Renninger , Andi Kleen , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Srinivas Pandruvada , Hans de Goede Subject: [PATCH v6 18/49] platform/x86: intel-uncore-freq: Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:49 -0700 Message-ID: <20240520224620.9480-19-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240520224620.9480-1-tony.luck@intel.com> References: <20240520224620.9480-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 Acked-by: Srinivas Pandruvada Acked-by: Hans de Goede --- .../intel/uncore-frequency/uncore-frequency.c | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c index b89c0dda9e5d..b80feaf5828f 100644 --- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c +++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c @@ -197,34 +197,34 @@ static struct notifier_block uncore_pm_nb = { }; static const struct x86_cpu_id intel_uncore_cpu_ids[] = { - X86_MATCH_INTEL_FAM6_MODEL(BROADWELL_G, NULL), - X86_MATCH_INTEL_FAM6_MODEL(BROADWELL_X, NULL), - X86_MATCH_INTEL_FAM6_MODEL(BROADWELL_D, NULL), - X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE_X, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_X, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, NULL), - X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, NULL), - X86_MATCH_INTEL_FAM6_MODEL(EMERALDRAPIDS_X, NULL), - X86_MATCH_INTEL_FAM6_MODEL(KABYLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(KABYLAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(CANNONLAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ROCKETLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, NULL), - X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, NULL), - X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE_H, NULL), - X86_MATCH_INTEL_FAM6_MODEL(LUNARLAKE_M, NULL), + X86_MATCH_VFM(INTEL_BROADWELL_G, NULL), + X86_MATCH_VFM(INTEL_BROADWELL_X, NULL), + X86_MATCH_VFM(INTEL_BROADWELL_D, NULL), + X86_MATCH_VFM(INTEL_SKYLAKE_X, NULL), + X86_MATCH_VFM(INTEL_ICELAKE_X, NULL), + X86_MATCH_VFM(INTEL_ICELAKE_D, NULL), + X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, NULL), + X86_MATCH_VFM(INTEL_EMERALDRAPIDS_X, NULL), + X86_MATCH_VFM(INTEL_KABYLAKE, NULL), + X86_MATCH_VFM(INTEL_KABYLAKE_L, NULL), + X86_MATCH_VFM(INTEL_COMETLAKE, NULL), + X86_MATCH_VFM(INTEL_COMETLAKE_L, NULL), + X86_MATCH_VFM(INTEL_CANNONLAKE_L, NULL), + X86_MATCH_VFM(INTEL_ICELAKE, NULL), + X86_MATCH_VFM(INTEL_ICELAKE_L, NULL), + X86_MATCH_VFM(INTEL_ROCKETLAKE, NULL), + X86_MATCH_VFM(INTEL_TIGERLAKE, NULL), + X86_MATCH_VFM(INTEL_TIGERLAKE_L, NULL), + X86_MATCH_VFM(INTEL_ALDERLAKE, NULL), + X86_MATCH_VFM(INTEL_ALDERLAKE_L, NULL), + X86_MATCH_VFM(INTEL_RAPTORLAKE, NULL), + X86_MATCH_VFM(INTEL_RAPTORLAKE_P, NULL), + X86_MATCH_VFM(INTEL_RAPTORLAKE_S, NULL), + X86_MATCH_VFM(INTEL_METEORLAKE, NULL), + X86_MATCH_VFM(INTEL_METEORLAKE_L, NULL), + X86_MATCH_VFM(INTEL_ARROWLAKE, NULL), + X86_MATCH_VFM(INTEL_ARROWLAKE_H, NULL), + X86_MATCH_VFM(INTEL_LUNARLAKE_M, NULL), {} }; MODULE_DEVICE_TABLE(x86cpu, intel_uncore_cpu_ids); -- 2.45.0