Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2178195lqa; Tue, 30 Apr 2024 10:03:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNVuYFL9Akut/cmKGFRNPdHKxIQYaAC37w+eIZJT3P18QsOa+jBcIWUCWj/qSuMLvJkFwhoKY8Jld94FA6Nhn+atkQ+8R5NVGI0/STlw== X-Google-Smtp-Source: AGHT+IE5lYWZwz3LPjXYAMfQIIuiKbVHHRlIUdMlZyPXY/LHrIW1+vymHxx3ByZuZ3UPaT+hUaCr X-Received: by 2002:a19:5f43:0:b0:51c:f21c:518f with SMTP id a3-20020a195f43000000b0051cf21c518fmr66819lfj.12.1714496587549; Tue, 30 Apr 2024 10:03:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714496587; cv=pass; d=google.com; s=arc-20160816; b=wP7GctpAChVPfVF1ypsH8xIW7oS8OIO9NAJ0dBL4vj26bs14peSYJhNPMyjB6bZXKO 7NtH/JSwE+9WiahG9+tkhnLUK71ncvV3sNrbHhj72abbBjdp6u0fM2RQuC9N84CP5bTj QFnXqaSlGITAfhq3p/gDpxCTuCUumGXrpRr7WjNlkjxsGPdJmu5iLLe3aKzZkwLqA1C5 bsbmyRy2mjuDlveOlbj2haIRF1JeykQyaHPOEo7y0aF3MwcG4IjWygZN7X+ORsh9LA4A 4oCVgnH22sHO1D2cGOhufy4wQR8c4ZOFRzeNgIKx8I84qRgJKvNgdVbeiMylXlBpuyIp sIZg== 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=IGKsdxqi0d85Gx3BRmeVOOy/kSFFDDXNDpFIXwSd0eA=; fh=ZKPtbC90TMF6RZ8lI/QQU1R8geJjepZUrgEniJtOKq0=; b=zTwesnGDImIMNai+UN2R2Rn7PWlv2KcnElCBV0ElLNp/whyQLaxMu3rno2BGRiYyVZ xEwRDm+OHMDQSC331dPKdKEGQLvU7h+PAVy+NCiiiVDt2yfb4tPs1J46dGWRr5C2HM4N 6I9JPY49deAOYCF7lLrJJONoqKfmBjBC0O7f3igUGGe5QPy2su0JQ29VOxyKJHYSZBXc aPwJTQ6oMWHmAbhTWDjW1blb2OFuiCgYzKfvZ4p/KMd6k8rJWuzjGX9yydg41/KPquh5 TLXUH8CXasH+wcNSHFHLYX5OTcPDpzmvWSB1q28E+b113VVxcRODnl88kWJiwggogdLC tw0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mI29TojT; 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-164444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164444-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i23-20020a170906251700b00a4745ab9cb1si14862597ejb.847.2024.04.30.10.03.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mI29TojT; 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-164444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164444-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 E80BF1F2794A for ; Tue, 30 Apr 2024 16:53:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5262C18412A; Tue, 30 Apr 2024 16:51:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mI29TojT" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 73803194C79 for ; Tue, 30 Apr 2024 16:51:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495901; cv=none; b=bDeGhIRlN86DkFL/nBVauF3N6hOYfgdpuqMJo1LwdL3T0PYslP00fsd+CE6HpXViB8/AYkR7GqbgBH6x7wlncyyxnnBwWKvS2cD6ttEu6/U4aPyWIAM62YcqdHwonFOmgWenkDf6EnPZ0rW2HxifyHuRL+errOA9zcNgf2n+1tE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495901; c=relaxed/simple; bh=q3BBtHJVAXkjvTLokwR5tXg0C/b4tgQNWa/vTlNkxd8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Oa3Gp8DbAI0EoCrT004iyEKNd61BQ/P40zQTP45ygEDEgoAWdu605BMhK6cFbpQOwQWS0kElubDlVPiMm0lHXsCze3VeNakx+GgznRNHeIsXwBa2PirMm9YbpFu4CUDQvToGA9cTzSpfCuWoIxUkUs3goRuUnPgEuxlA9rFdVsc= 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=mI29TojT; arc=none smtp.client-ip=198.175.65.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=1714495900; x=1746031900; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q3BBtHJVAXkjvTLokwR5tXg0C/b4tgQNWa/vTlNkxd8=; b=mI29TojT5Gz+WMaTKG9Okgagzbov3e1f1SG6J5AIs8ap2JljL57WsIIm IvegmyAZvAn0m5ymgE6/kXf+F2c8C3lDaHgDjqbvqvMCS28g4TmWRUNMW KnwF3dTkf2d/stcsdrFLORtOI8DD+UY7S4fuH6Qpq7w9yMs7Zd5t5vlz+ u7Cb2Qn+GlkY25MVkCo7CnwSKPCdaFLd/j5zr05pCt4ZdZ9c3+fN3aYcj mosn6p2ADnLjmwairKHgoj5izTPbTk2IFu0rQNOmT0HYmXRXtDDVfb4Ye U7b/dhaxzrm43te+YREreIWN8jLYttistzT7TiTn1Ak0/1m3JdE0CcPQT A==; X-CSE-ConnectionGUID: arBBb1zfQjCQdu7m1zlE+g== X-CSE-MsgGUID: 3bfJs7w9RsWXhdDQpJbmlw== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10075678" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10075678" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:51:21 -0700 X-CSE-ConnectionGUID: PbPaOW5yRoug4yZgIP17dA== X-CSE-MsgGUID: 6nsfq/q0RUuHJS+QLF9HmQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26515443" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:51:13 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck , Srinivas Pandruvada , Hans de Goede Subject: [PATCH v5 16/47] platform/x86: intel-uncore-freq: Switch to new Intel CPU model defines Date: Tue, 30 Apr 2024 09:50:29 -0700 Message-ID: <20240430165100.73491-16-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430165100.73491-1-tony.luck@intel.com> References: <20240430164913.73473-1-tony.luck@intel.com> <20240430165100.73491-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.44.0