Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp628771lqd; Wed, 24 Apr 2024 11:56:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkIJC0pRTxJsOYmtjZcjJYBuSX7kYC4tySO4pNV3nO3rHKXIj/WM8e929rl+VUBhMFkpLbYciexWxF9BBN5QMEFFx8XmxRd1r7HunKmQ== X-Google-Smtp-Source: AGHT+IHOZWKgbV7V3LQ4sr2tJ2RU9f0aZ7AJ8l9AcnZYJQWQgi2Sga5pzwJpQP8qjSwmOr3iJi4y X-Received: by 2002:a17:902:e750:b0:1e5:375c:429a with SMTP id p16-20020a170902e75000b001e5375c429amr5106087plf.17.1713984994940; Wed, 24 Apr 2024 11:56:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713984994; cv=pass; d=google.com; s=arc-20160816; b=dUjkp5Sr/olcziUMzLX5fNfhpMnzGFK123A1JuOWq7ccZBb5vgPIpS3j9kzBP5H707 sF62vvfph96daY/016KOQFIyN4KU92H0jrOTrs+Ap+rDYlSwFNUbb9VgfzMYk7OOH8Vi CL12UsMwcMpD7yQrIg0kChpy+doPtKEOCN6EUwljsUuMH7i8Cv6eJxxKL82XOMBquR5e +L1vAQ+tjwR59UjTasjR7w8m1Mv70mgY+t3RVwOhgwU5sceYQOd2hbGfYjDqrELiosS0 Nj5Y4qdEZeaYxQDO8rO+HB3Zr+zha/xxDfzGyQoD9rCECWK+i2HCF+Vm8RORo4R52opB PBpQ== 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=39thNRYRlJ+vjDECjVG7boWkXz3g8omId3YLqfULCF8=; fh=9YnMjRaoYqg8UCz4kujDdm3Luse1lMAYnMALuZCjgEA=; b=AeTNpxdAVAZrVd5d4MvmpKcpR4dHfoUe1V7UDq13cpUV2zC3/ZGxdUCj6NvPvGzbrX KEU9SyS+93Z6rXFe6ef3aFI6nO0HPIE6unKxCsVF9U+B1D1uSSe6X+xPOSNa+CGnJSpN WY4KwcgVzBw2yoTv6mtNDyedeVS/jfLTqf/irnuJOM2Htq9kf9qwB6QYVZZxyHlGgHTd ubT/7JaokEUc3u7yQ2pZhribruZq/SD72ahwxudSjSLzVO6pqgYczO0P2Xb7iNbtmwBK L8PpexyKA6UnFN15Zzjew66Il0oX23d6pw76ha04D1qDdOL5n6S2v+N/eQqrjc4tZdrF BnlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fgUp1svT; 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-157515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157515-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d8-20020a170902654800b001e3bfe204c4si11552094pln.650.2024.04.24.11.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fgUp1svT; 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-157515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157515-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AC677B2EB24 for ; Wed, 24 Apr 2024 18:28:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92718201248; Wed, 24 Apr 2024 18:15:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fgUp1svT" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 A45FE1CB32C; Wed, 24 Apr 2024 18:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982547; cv=none; b=D8mofyi3dVshNC5R/R8el9RrSOtKVQqFDzOqb89J4smoEuKLsJPuXcW48kXqmvBSQ+b6BNFY6FfIBOFXE1zjvd986ErMArT4CBMqzD1UJuNjuDLEoZeNFK1fvFCuI/AVS+Cqqtxmui/FJElg3/3cXtNuEUddZQ1ozhpyil0p6Bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982547; c=relaxed/simple; bh=LOzsD5IsD59gKdeksTuIW83sAKQTK/XFVhkG9cKUAsU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gg3xesxRqq8fAi+ndyLPUO3LfsKrg+vbmhfZP3K+pjoqofvTMLUcN6HFPz/3TGiUNIXJOs9Mo5ezhHCeWAyWaQXzEXmF+6h4SlLAw3LRmyWhQWm9lXL7QGpu4rHqoGBxGWf0Apb0CATnM+nYZCLLZNfVQhPJn+fBrjXVd2C9YI4= 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=fgUp1svT; arc=none smtp.client-ip=192.198.163.19 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=1713982545; x=1745518545; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LOzsD5IsD59gKdeksTuIW83sAKQTK/XFVhkG9cKUAsU=; b=fgUp1svTlQRcY/tmqdjudGBuDK9Rcd/UAPtX/8ZW28uazaIzOxbLqa91 goT49f7RyZ1FJHnMF77TDmOV0KAnhZ4yYI457FBPoBRSw4TIbiEhiqpWR cqzlsVHLMi9UmoP7vNo8AjsUucJ974gvgVJw48xpD3yhF8kzAHoBb4EK/ igkq0jFRvYdtxTzJx12DkJFHatO5eX7aoNRqQYDVKQTkDKs3Fr4Q5Ly+d W75+d8F2X0n1K8HVY2JpCeYSRhy+iMnGLVXFYsLuYa918aYsuQRBY80oT AQSFCKqMMCypkrqTBPqPDAHCeYrRbpE4hSi8XFLjO0TxkeDZ/ESL4o4sN A==; X-CSE-ConnectionGUID: IqaPb8niS+C+DzghPLYc4A== X-CSE-MsgGUID: eZy/ZMKSQaSnnwst38AM5g== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503724" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503724" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:45 -0700 X-CSE-ConnectionGUID: Sg/B6JySS/y51w8cThk6ug== X-CSE-MsgGUID: WSHipiGrRDa3mP6dHc/fFw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55750350" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:44 -0700 From: Tony Luck To: Borislav Petkov , Srinivas Pandruvada , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 65/71] platform/x86: intel-uncore-freq: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:44 -0700 Message-ID: <20240424181544.42407-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 --- .../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.44.0