Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2747227lqo; Mon, 20 May 2024 15:50:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWggEA6oNRd0Y40/PbY38DL8qgP9pjBWeBs73tcOpQuH155cqlSFpwNnMpusWxzJlVjBeImEUbqANTfkmkGA0p3O2vYaca7cOzA2HwRpg== X-Google-Smtp-Source: AGHT+IGr5ngjAOxVrRHyl+q7RSm8WZoQPw0hvz8ac5Gz2j0mP8jPzrF7O0QAJumWjaCVE58LvMws X-Received: by 2002:a05:6a20:9150:b0:1ad:90dc:4a65 with SMTP id adf61e73a8af0-1afde11c12bmr31516574637.27.1716245456491; Mon, 20 May 2024 15:50:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245456; cv=pass; d=google.com; s=arc-20160816; b=bsnbpAqDjltgBGdfgwCn5KGEjSYPXb6xe2JoEkcvTG3jpIMQ1OnXNkendRhf5A6KUi U80GbQM04+ouMCJek9S+Ptkb/JBCUDzOEtliBJ23h4dWDlkWnfp+Wf6QW88u9WTx/X9F 1VgIkEo94tU0/oJHW4cMI2y/Q+f+KfL0DrVV6XdHMdO24hr2pJP8O4W66iyHtJH7PDOA bj7HVt2J0g7tqYOOD9k8VsvrjoVyOewBBNwpbch7nOV34ov4CdiXI37yI03GSL9E/59Y oHtispsRDXLv9uy81X4oTWfVIKdDrwn1XEwEcsKIl8jTkmfZT+zLVR2Q3eMBDEn/wDZ+ skCg== 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=BB/vtvW9ineVOQ0LRwUK2jk031n/EaXk07ny2XPnfq8=; fh=PjyMTzs7UvWP3U+/qUdzJByTpVUxubPCVIU2iQaWnTI=; b=0N/xvkiloajrsSwnIboobc7l4ehGN0zBl31BitxUsx4mdq3QOD76ix+9zNgP0KxIav HV8TUlfBuvdsoPgQiJ+J33CrQFtN4gkh8ekcaMxGKBK94HweqwGc7CSfOobq3UMtYMsO gw02GirikyUbqFDnBpzL+1UQo9OW1sbBz/V9M67HsaEYt42Q0rgxPMeppts6jcKU23UO lWsQIU9yQ+NWXtFpa+TVr8z59nL+lrZs3GYDnLLu2yrdJgUzjcO0aWC4vjVx1lq0eveS Ox3tq3FvDDykrMceVKFeRmHW9Px3tepKRREcLZ7w//e6bfJ/tXN6YS5d7SxSJKsf0RgV tCpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LokOjLfj; 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-184252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-658d6391bd9si9622948a12.176.2024.05.20.15.50.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:50:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LokOjLfj; 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-184252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184252-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9A10C281D05 for ; Mon, 20 May 2024 22:50:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBEAE13C81B; Mon, 20 May 2024 22:46:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LokOjLfj" 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 33CFF13BACC for ; Mon, 20 May 2024 22:46:48 +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=1716245210; cv=none; b=GDt0VrN1ktsz8HXJmLQ+X90OY3EeOiyjoa6ipRfYbblvXFnLONLXh1CygKXndcXUrBHDkpnyxwQvlt6CNGAw8elCYL9cOdbgzmr7k4+EQ8DEPVzIem5tVm0QZIT0EivNF0HtzcsUl9PCT5lVFwjXjGsTwsWQNUbxt8t9Y9dxJYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245210; c=relaxed/simple; bh=rwri8jBEq7rYQ3kqqSBg1ylAIT9NhdjG7ASmrOmfXDA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OM6KYEAj2Zw2oZKOA7jbGtc3w3BKB277rUcWAlGDdRl1n9fUfJ32M5VbRMz2/8TVmgRpwwFgUMv6C8iKdBgX/Y6GeBAU/hpRIvqxHVOuO7dXtjooTTlvPzxguKvZ3CCOvirad8tv8j2/ebuuVD3yf1WpgVs7p7o/rbdywX4jCbk= 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=LokOjLfj; 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=1716245208; x=1747781208; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rwri8jBEq7rYQ3kqqSBg1ylAIT9NhdjG7ASmrOmfXDA=; b=LokOjLfj8b8VbfB04oQof4anKZTjqeyFo7rIRFw6W0UafJj7VAkGZKdd zdttS02Z3rUww3hBUqWqzbnODx9sKPSVuvbLbkDVHbgwD5lZGy7y3VAYK djVAYcVouEOQkPJDFXZLzcIKjqayzQlRTtzr2uEBiJY1bchIyhYjplHG0 6DH/pmSVTnCAbKEQxAigMY3NkRUdvCjaVfEdNFdBgXt1DRdizH/y16ebq 12zKMth2slIWfZmGXvkFkeQFNYEBslvINjSCFAl/dUw7+0ku5V4R6I8tD VyAHTztgSbIjrAjpzD/caaPXSkan9D+xo2viO2ljpatzV+8jlpIE8YfhS A==; X-CSE-ConnectionGUID: 1RUGE7O3SW6kKeh5WwyUGg== X-CSE-MsgGUID: Ezro+SKgQtiNUBp+VYYjUg== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199767" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199767" 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:38 -0700 X-CSE-ConnectionGUID: FztG9Ou+RESzMOqFyPwPAw== X-CSE-MsgGUID: Rnxll98ZSOSjAegawaf+GA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593454" 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:38 -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, Hans de Goede Subject: [PATCH v6 24/49] platform/x86/intel: pmc: Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:55 -0700 Message-ID: <20240520224620.9480-25-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: Hans de Goede --- drivers/platform/x86/intel/pmc/pltdrv.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/platform/x86/intel/pmc/pltdrv.c b/drivers/platform/x86/intel/pmc/pltdrv.c index ddfba38c2104..22cfcd431987 100644 --- a/drivers/platform/x86/intel/pmc/pltdrv.c +++ b/drivers/platform/x86/intel/pmc/pltdrv.c @@ -35,14 +35,14 @@ static struct platform_device *pmc_core_device; * other list may grow, but this list should not. */ static const struct x86_cpu_id intel_pmc_core_platform_ids[] = { - X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE_L, &pmc_core_device), - X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE, &pmc_core_device), - X86_MATCH_INTEL_FAM6_MODEL(KABYLAKE_L, &pmc_core_device), - X86_MATCH_INTEL_FAM6_MODEL(KABYLAKE, &pmc_core_device), - X86_MATCH_INTEL_FAM6_MODEL(CANNONLAKE_L, &pmc_core_device), - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_L, &pmc_core_device), - X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, &pmc_core_device), - X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE_L, &pmc_core_device), + X86_MATCH_VFM(INTEL_SKYLAKE_L, &pmc_core_device), + X86_MATCH_VFM(INTEL_SKYLAKE, &pmc_core_device), + X86_MATCH_VFM(INTEL_KABYLAKE_L, &pmc_core_device), + X86_MATCH_VFM(INTEL_KABYLAKE, &pmc_core_device), + X86_MATCH_VFM(INTEL_CANNONLAKE_L, &pmc_core_device), + X86_MATCH_VFM(INTEL_ICELAKE_L, &pmc_core_device), + X86_MATCH_VFM(INTEL_COMETLAKE, &pmc_core_device), + X86_MATCH_VFM(INTEL_COMETLAKE_L, &pmc_core_device), {} }; MODULE_DEVICE_TABLE(x86cpu, intel_pmc_core_platform_ids); -- 2.45.0