Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp614891lqd; Wed, 24 Apr 2024 11:29:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUv5fw5sPRy02qdcnkh3KVnUaBx+9cm7zy8xA/GRfTLjjcVnCnAUy++eBIgUSAfHX3sfPxSHPoyokF4WA2w/sfotc4wCnx3GyQEluraOw== X-Google-Smtp-Source: AGHT+IGiszQfRz+8sdqx3PtaFBWO6M2/zHwc0xTL+GH883+XqgGuTketbU351elsouOEd/s+dfqn X-Received: by 2002:a17:90a:17a5:b0:29b:fb23:863e with SMTP id q34-20020a17090a17a500b0029bfb23863emr685302pja.17.1713983394849; Wed, 24 Apr 2024 11:29:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983394; cv=pass; d=google.com; s=arc-20160816; b=lG+G6dz/r/BHskEgrAFVNXXTlsF078xesOcaZcRlEQ7Vo7Y6g3A/tmD7HG0E8PSoIZ 47dIniRnUzwLPcjnInB29QZAZq72t7N93FDS3Ys9hXANRuoFUm6EeEzGg+C2M16ds+1T AgrS2h1DFEvZ7KC8yIAVr9p5rL1r4XaPHYm8mTJ2Wtf8yU5YPDElIbY3TRPvHYtGR5bs hhaK1T6m9U1frW22Pi7WflxzBf60J4WDj5uX5rFTW+G0TUoPaOwr+HPdzYndRXiXatkF Ftpp4BQxGw3O/+l+aUlSdgD+wNZyWks6f3pHyoeoP0VeQLN01vpkwKkxvf1fZvqsjPce v4XA== 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=Cnadik/8nwEjBChFp7E2A5UYHlncz5u9B0Xb81/RbSQ=; fh=SBhWiecE73vb++GJRzKEqva9Ze1WppW5phVCSxar4Is=; b=VH+oPI6Wmp2B+GMFgN054oLgDL+JKsRPdoqEBmawEx7H6rblMalDhPoJDbdIQPivM6 sGMjeC/s8q2x5hQyqasSU24KQH1gMCM6Fnie2mgdk9qD1fzNxwf+h68lir+CTJ/TiSge 5jBKGnQ87tNsNl3blbburGOv5bn9nkhrEUt3iDLljf8w2XdQ1M6mvlTxD4rq+ucCfk8J nFoF/qCOxxOdkpDooDTHfx57+cyqiZ5sn7axsBWAWnS5iiXi7/eT4AE7E2sgTo10X7EN b7jK+dsPxPl3SE/T5H04HXvx/ZYLYtveUN4DlsrQxtg9LilclqzdioPvqMB+1bxecXfR wwPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZwHh7fcK; 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-157507-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157507-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 p14-20020a17090a680e00b002a2949ce3b7si7831878pjj.181.2024.04.24.11.29.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:29:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157507-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=ZwHh7fcK; 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-157507-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157507-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 A997428CB9B for ; Wed, 24 Apr 2024 18:26:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DDE51C8FC6; Wed, 24 Apr 2024 18:15:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZwHh7fcK" 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 C90761C6890; Wed, 24 Apr 2024 18:15:38 +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=1713982540; cv=none; b=DhOxbNzYPjUQ/Hn+gherBObr6sWq7SXX+q7NeVcR4q2x5cgntlYxWLhPBYq9YlaIaV3NfPUvCFBy3SWNCphXZQzRSXrX+1Qy8Rnopue3Y5V495a65tJmp46mCKKJf02JjDSQC0V9/3HlYGX23NjVwFM2PtT2oi/yOL1w3zLHGBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982540; c=relaxed/simple; bh=8BfI2hjYKf/TtKpPZBR8m4bVwal0XuuMnwSbzdK8eQk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qhvNwp8+/sjVEs0+DGGw5fNETyiJjb0Wqnd2xGQgPA5oGokweRmPopOYAbcaS+ZWJrKOsMi3WBBL7Hum9U3E57HZm6Y7u/+uqb6nvo/hda00pQhm1nHRKhlGOu+QwOyNO66U22raJ+gQXAugXK7WkubkemmJGPmxtEm4dBsyV24= 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=ZwHh7fcK; 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=1713982538; x=1745518538; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8BfI2hjYKf/TtKpPZBR8m4bVwal0XuuMnwSbzdK8eQk=; b=ZwHh7fcKQ02l6fEz2TDJPUTxXLpzMks+y3VpQyZBRvw1rrVJfqaKaYdO 4NOWCegUVyYfxbtbBuY2RgNqt/m6STXaGmzlJas1BQKCBmWWXlkf/CoBS 83Cd9UfifUBuvns0jN1gQDPbmazpizu/ET9T4bvtcd6j3ytoDGEtIiCWG Nt5vfRTLJpYgb0TNVs8KKwBQF48iq76ZO4QGzS/dMI8SrGWHOTwRoemDn nzvNgNN1jHrPLW5SNfJeu/GFE+0rgeqvJI8TaJegagbdL9Noqf9chZaAe SOYXHa79JcPWryBtVB8/3cBsNoWcIM99MJLNPduKnHqBml9kj6LNwnzXj w==; X-CSE-ConnectionGUID: PDFIXGeWTsO4TGwzFt9h7g== X-CSE-MsgGUID: uqNAoPHKQmqyVQ7m3kj5tQ== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503672" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503672" 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:38 -0700 X-CSE-ConnectionGUID: 0lQNemMKRlO8JoaKAvPz6g== X-CSE-MsgGUID: dsz4QLp2TnG9LXqqTh0Nzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55750293" 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:37 -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 58/71] platform/x86/intel: pmc: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:37 -0700 Message-ID: <20240424181537.42273-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/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.44.0