Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp614699lqd; Wed, 24 Apr 2024 11:29:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWco7OpO1xwC7VPKU7K0zj9Sl1REOeTR1C6Ip4AYA1/DK1U8jrHBjUJFHORpM00HygUwBEbZemRc3eszPh6MUofEDxtFUqtMCZhqblR0Q== X-Google-Smtp-Source: AGHT+IFZJFSJurobE1/+Xv/vk4mtyirBGrcwSvwS4RAhXS5lZAJKnf3Vdio/ommj0w9ozGMdudDF X-Received: by 2002:a17:902:d2d2:b0:1e2:ca65:68c2 with SMTP id n18-20020a170902d2d200b001e2ca6568c2mr4541549plc.51.1713983369164; Wed, 24 Apr 2024 11:29:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983369; cv=pass; d=google.com; s=arc-20160816; b=hHJ6Gxl1rmQUEXQpBwkt5sTpRkBrjcgMVkvHN9X/lXbLq2vl8/mA9heDFXLX/ChBQR VlXZKNXJ9oNInkWliGgAklwPFW4Pj2FMw7pKxoc4JnNYqyBJaqnAJSPWrr1kTzKgI49s KimwRA7ZIzIWgJp49k/3St2HC+ITw4Nc//OOhiLcaUnN8Rfc4Q+logaZ55XhBL2VTH/A ZYvCiLASHcsY2YDszMDiZ/sbf4yQoQ3JFPBla7c+34k4LmKBVMOWsRgnbYm0gViLXpeO 6bL2cGeKJ1Q5x+SZhngZ2C9+u57yWeA90PfyQv+9ENJtPsbTWV2x86ryX5YzQ6UPH5e8 NQsw== 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=GMb9emDJ368k4KE+J2ZIHjDhhy9VPj4thxY7O1ejRJ8=; fh=SBhWiecE73vb++GJRzKEqva9Ze1WppW5phVCSxar4Is=; b=XHyrunJZS33FdZE645nsXbJERbdV2Q0H5nCvUuI31Vlqg7c0M9z/uJGWFcNR093m3X FHOd/wmIvGJSXc76uuRf9f0Mayo3Lc+fp8vpi3zZLlsfJZhZ24oGdKoC1z68BHMNTdcl /YtLyvt1hk4BsQReNeMns1pKNbJBKwEY5RJzaoWkBh0gvIgdVBvtlDC4fPEKZYLDVtUI FwX4BmuF9KS62VMnwVfQ4zu0ad9hJzL+c9tVneTjlx4/4xjAV8jT8WVa1wyDdjUZchbd muqsWL3B1vJJdNvWuLBVs1XbQyccqJeWxg5NORuL3QPWdtXvB04DB5CPVw+AyAMwb/om +fHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GoNyV2VL; 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-157506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157506-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. [139.178.88.99]) by mx.google.com with ESMTPS id c10-20020a170902aa4a00b001e0b60f9063si11225365plr.369.2024.04.24.11.29.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:29:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GoNyV2VL; 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-157506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157506-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 AFAD128BD17 for ; Wed, 24 Apr 2024 18:26:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7668F1C68A9; Wed, 24 Apr 2024 18:15:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GoNyV2VL" 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 35F9116F0C1; Wed, 24 Apr 2024 18:15:37 +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=1713982538; cv=none; b=HGifzU/YElS2YUToKgOI/c+5ENDuQsK+MJmTfrjtr1HIR3xCkCAgUnTlx0pUac5p5ud51pDZIJoVG3G0VeeV1R5g4gGvEhLU3IxJOAM9Tw0JDG6gEwA7RKYLQtX5IE6uQFrbgAwbljBtp1zBrTkaFokT7qhssdEtTjrtYgFPHVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982538; c=relaxed/simple; bh=lMiePj5BLeBwTfmhtOWVl7Nr+Y6PBZ2sXOR4c241KGg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aAdvOee6YSIO/75aUCxZBx7IeKSsa08s9Ij7e0ZlVqgCcCHtNXgTN6N4Qq+d7tBnDECLymGeZA+zagvqM6yIV4+n0uv9rejvOXZCSQz95H83kZoknQSmBM1s0kkccymtFn33hXkeJEc2gH7feZ3Bm9kfDtyZV+Z70BFlAIW2fRc= 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=GoNyV2VL; 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=1713982537; x=1745518537; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lMiePj5BLeBwTfmhtOWVl7Nr+Y6PBZ2sXOR4c241KGg=; b=GoNyV2VLtPQ8Py6GUFzIvcL7iushJBBV/rDNwHuGx2jZKtPaBK/eMQYv kpFwpWhSu2nf0MkWVydvvf3vQicKW0uJP3LfZEMo6vpRA7YRHHr0rRksc g3IWgyOQTOOsNJ6ODwxTXFsBakA+ibtlBOwRqYQsGaDnCDnCBONOeXVJK TAygUstHILnzUAPacIB7OE202v0XqFqqVFRD5xHIw2aqFPhWnI48ZlLw9 4QGiUOIqv7CKSYLWWp5+r2FSoFeLxByp2wuppkYbuKjTIydMJ4N5OMxX9 kv0fHkGg8GEirMJZLtMWSmqPDYaf5dyVo85nfsESWZtTzOjUH6IVItHPp A==; X-CSE-ConnectionGUID: +gU+dEzjQu+EYiiS8480aw== X-CSE-MsgGUID: R/iStO+YSpilWMHtGnkXXg== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503665" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503665" 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:37 -0700 X-CSE-ConnectionGUID: ieBqzDj+RyiG+d8oDjUmsQ== X-CSE-MsgGUID: eaYmgGRrQpCoSm0wRmwGBw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55750286" 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:36 -0700 From: Tony Luck To: Borislav Petkov , Rajneesh Bhardwaj , David E Box , 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 57/71] platform/x86/intel/pmc: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:36 -0700 Message-ID: <20240424181536.42254-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 --- drivers/platform/x86/intel/pmc/core.c | 46 +++++++++++++-------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/platform/x86/intel/pmc/core.c b/drivers/platform/x86/intel/pmc/core.c index 10c96c1a850a..054a56532e23 100644 --- a/drivers/platform/x86/intel/pmc/core.c +++ b/drivers/platform/x86/intel/pmc/core.c @@ -1255,29 +1255,29 @@ static void pmc_core_dbgfs_register(struct pmc_dev *pmcdev) } static const struct x86_cpu_id intel_pmc_core_ids[] = { - X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE_L, spt_core_init), - X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE, spt_core_init), - X86_MATCH_INTEL_FAM6_MODEL(KABYLAKE_L, spt_core_init), - X86_MATCH_INTEL_FAM6_MODEL(KABYLAKE, spt_core_init), - X86_MATCH_INTEL_FAM6_MODEL(CANNONLAKE_L, cnp_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_L, icl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_NNPI, icl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, cnp_core_init), - X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE_L, cnp_core_init), - X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE_L, tgl_l_core_init), - X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE, tgl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_TREMONT, tgl_l_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_TREMONT_L, icl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ROCKETLAKE, tgl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, tgl_l_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_GRACEMONT, tgl_l_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, adl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, tgl_l_core_init), - X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, adl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, adl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, mtl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE, arl_core_init), - X86_MATCH_INTEL_FAM6_MODEL(LUNARLAKE_M, lnl_core_init), + X86_MATCH_VFM(INTEL_SKYLAKE_L, spt_core_init), + X86_MATCH_VFM(INTEL_SKYLAKE, spt_core_init), + X86_MATCH_VFM(INTEL_KABYLAKE_L, spt_core_init), + X86_MATCH_VFM(INTEL_KABYLAKE, spt_core_init), + X86_MATCH_VFM(INTEL_CANNONLAKE_L, cnp_core_init), + X86_MATCH_VFM(INTEL_ICELAKE_L, icl_core_init), + X86_MATCH_VFM(INTEL_ICELAKE_NNPI, icl_core_init), + X86_MATCH_VFM(INTEL_COMETLAKE, cnp_core_init), + X86_MATCH_VFM(INTEL_COMETLAKE_L, cnp_core_init), + X86_MATCH_VFM(INTEL_TIGERLAKE_L, tgl_l_core_init), + X86_MATCH_VFM(INTEL_TIGERLAKE, tgl_core_init), + X86_MATCH_VFM(INTEL_ATOM_TREMONT, tgl_l_core_init), + X86_MATCH_VFM(INTEL_ATOM_TREMONT_L, icl_core_init), + X86_MATCH_VFM(INTEL_ROCKETLAKE, tgl_core_init), + X86_MATCH_VFM(INTEL_ALDERLAKE_L, tgl_l_core_init), + X86_MATCH_VFM(INTEL_ATOM_GRACEMONT, tgl_l_core_init), + X86_MATCH_VFM(INTEL_ALDERLAKE, adl_core_init), + X86_MATCH_VFM(INTEL_RAPTORLAKE_P, tgl_l_core_init), + X86_MATCH_VFM(INTEL_RAPTORLAKE, adl_core_init), + X86_MATCH_VFM(INTEL_RAPTORLAKE_S, adl_core_init), + X86_MATCH_VFM(INTEL_METEORLAKE_L, mtl_core_init), + X86_MATCH_VFM(INTEL_ARROWLAKE, arl_core_init), + X86_MATCH_VFM(INTEL_LUNARLAKE_M, lnl_core_init), {} }; -- 2.44.0