Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp697901lqh; Fri, 31 May 2024 13:38:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/nrAcwWngClLacCPCLQnf6bcovrtUqLaqM+8IF0nl7sfJjm03vwtGEE81Po7wPiZ7rvrcKAMKpXiPbFCAp+t06bOUdx77zOwIVPFbCg== X-Google-Smtp-Source: AGHT+IFppik5Go1Bje6oguXCjIEP++gEKqXq6tbO6Nr4QOj/SNPbkUIEqQXbssWheyb000ltOHg8 X-Received: by 2002:a05:6214:4189:b0:6ad:9edd:2c9e with SMTP id 6a1803df08f44-6aecd577c75mr30247536d6.10.1717187926942; Fri, 31 May 2024 13:38:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717187926; cv=pass; d=google.com; s=arc-20160816; b=e4hC8m0Y0hs8qFA5pBetvND8KDeErIas5fq7T7D/akKI0xVVh8tOo/7zJ/35nmUbT7 QbFo9WVINFb6l6q9gQO0EnHRxXzewakWQ0u/dax4jYbJV6prp9OnJM4jfq575MJEMXOo MCmE8EqppX/2Di5zvX6zcgf32XTQDop4NhGOogOR/AxgVwymwcqA4VxtNoXwqWp07LgV jUPGR1C8OyREJp6U9jPyYvq4b/s+ZMn20OwYe5ExXfrAkbindpsaSJ5+6oXR+KS8jL7Q SqZTDFdoXOEgGDcKFX+kc41ng6J2dDRdz+46nTiT8PsQ8+Nf5PCKuQX1Lvbe+6yXngiH hA0Q== 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=FY+WJBtii9lySPAZpzSUo5t4b0obBTh4tnZPxWTIV9E=; b=BlqrCtbtyOrxoCYpNA8Km1bibVTzcuYCa13RbseJBaYJ6Rn6yqkyi6WY+HJMpzi5xJ icLVMWmDrxvwJEHoEEoroPFRVYkEWJmYxAL6CjF+b5g8wpn5ldqtlcqyewaJgqeHF7+o nAGjgYKMFJs8T7bcGPp6/oXeU7KEmrKeEv3lgPxBb8IARKnOZURbpdH3UmWHUlJEFHy2 9xt4IfC1o4BTreYlFA9KwxHHp88ANOiundXszVtWICCMldygiVWhLeLcScEp6Q9mTX3i r3bFKZXhbVHdwzbLP2QRu7u+3rgKNGH7Jd6oKAFObI18oxUneRekq9hY9xC1KvxHX2ym Y9LQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gu59g7Wi; 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-197457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197457-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 6a1803df08f44-6ae4b4022bdsi29127906d6.227.2024.05.31.13.38.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 13:38:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197457-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=Gu59g7Wi; 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-197457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197457-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 63E551C2499C for ; Fri, 31 May 2024 20:38:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85BE817DE17; Fri, 31 May 2024 20:37:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Gu59g7Wi" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 E413217FACA; Fri, 31 May 2024 20:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717187837; cv=none; b=ccVWDhSOsrkkL2PmOyueFSKoS63iHbc4KsBIedSCo2gpG0/lGavbpcP8Df1B/xnI0uVeowXCQSJj7359HZi4ovlHMkKIYJN5JLkGLllPGrAO9MC4aOE3EnXls1WOgV/mlSqyAmXD/qSkqlCaQZun6Ht5xABi+wNsVr6Fjhj6M50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717187837; c=relaxed/simple; bh=yaJboBMEPLKvR1jTeG+KSsAACemlTofNhMPhw7StcCg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kPrWIXNExnX16hdKOkaVYqMeJ9c1Zgi9TnfmjMGt8MV727ZeHlK43cWZRPLgjeZFMy/Wt8xbZXqsuryLosoZFLrnGk7ErHp5o0U6pT4TruSsX7aGnLmHZ6pzovN38/tmM4DI0yn4Qb1NcxwAE5Hllx1LRQnzARKtzC6oc6Lyvlw= 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=Gu59g7Wi; arc=none smtp.client-ip=198.175.65.17 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=1717187836; x=1748723836; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yaJboBMEPLKvR1jTeG+KSsAACemlTofNhMPhw7StcCg=; b=Gu59g7Wiw9JuAvaQ8xn4ouRAiDw+4Nw/sIebxNY1HSLmZHIUa/kFpFfD dysf4hXyIkyhtY+bAKcoq75jTS9iSLA9NOtsw1CXRc6PlJ+kA0tjpFGUq NDTMys8Eadg+oGn8sAswIX2bgQHa+K9aLWAEkgphcZ87AkMPwhnXigqk/ g4VgkocAsw238jRU2ykl7tNX5cBFUgG9HS7AASBSSTmrr7xn9TXqji/mD lKRbWpjSZmDDA7ZgqqzBYV/yNBfTQxc5/TR42VFL2rxjDdhwRnulsuNOj Q1vPeKMSxf8F+CoCDti7W6BIRGd5I9gaytSxwRQPlndxxrevo+n3eZOjZ w==; X-CSE-ConnectionGUID: 9vqynYZRSGulGB4DcBzBCQ== X-CSE-MsgGUID: Br1YLyOEQUytZYuw/jr1gQ== X-IronPort-AV: E=McAfee;i="6600,9927,11089"; a="13871845" X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="13871845" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 13:37:12 -0700 X-CSE-ConnectionGUID: IDdgpq3nQDahYbqebn4ILA== X-CSE-MsgGUID: IA8i6JIZRVWuc17wmtug/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="36355390" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 13:37:13 -0700 From: Tony Luck To: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede Cc: platform-driver-x86@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck , Srinivas Pandruvada Subject: [PATCH 07/11] platform/x86: intel-uncore-freq: Switch to new Intel CPU model defines Date: Fri, 31 May 2024 13:37:03 -0700 Message-ID: <20240531203706.233365-8-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240531203706.233365-1-tony.luck@intel.com> References: <20240531203706.233365-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