Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp248664lqb; Tue, 16 Apr 2024 14:42:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdxLYZNx9gAmdt/OD6Xgm11KkWxEF4DcEIOOfvvjONQi1HKyHl36e2VZZ4iPJAlpDq3kRuP5Nlj2wiTfOlmvy8WMg55jpvTYaotPYquw== X-Google-Smtp-Source: AGHT+IHKkoH8lY1mdjBAZxOZnMhRq8QEZrPz1qBNBwOI6YR7Wsnz7d/k3NDR1dbvsWDlmjgLuJNX X-Received: by 2002:a05:6e02:b24:b0:36a:3d00:365f with SMTP id e4-20020a056e020b2400b0036a3d00365fmr16836264ilu.11.1713303749646; Tue, 16 Apr 2024 14:42:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713303749; cv=pass; d=google.com; s=arc-20160816; b=KSeuX+lScovEF3lzlnK0hA3TS0Zx2lQHAF9/RaXEKxkk0Am3BkybPnp9QO16cmAE/f gco1GzwlwY1O8OTSkWJPNshhbD2wnZXwUT92IrxVCd5tRw5iIzrb3QcQfS6RA7db1bu/ J9CH/uOcC1Hg8LGwQFf+/51zEP7foekv9UwWsBT+s6v2Qxb1LG59O8HxoW16AOUxYBQ8 WSnflJ2PZv+ASxdNjizYF9ZpOPIG0T3bfneCq2fn0hg19oLbiCXRKlnrqJZynDw8Yi4v 3lX38dGMXlcyJ/BU0Uz9ibRJ3mNw/auhn+jm7NzALU1Iehkhq7PcYIPGXLMiKub/+6hg FB2g== 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=ckmFyCM+T409vzen1JfVpc0Rr3Kc6oTdC+NMBq1d0Us=; fh=p6nMYmp8DXEF4PIXDDkz2b06Q61SlxvDW75F3RkYG+k=; b=YNpkAlyyVLzupTz9N1NWkJPCIQeA8cC3jb4yOLCI2XZUXeWd5cjROssgxm4iEFMQgz 6VxkZj5reuJYYAN9yvvlahsRogE4LjevsBgJ4EtPXAGiQPAuj41e7hKRzLON7wwJohuJ HpKZ5hkNBag7CCkks4pWqTG0R/LeXjQZrZa3gU5GonqemweoIjqU++IUDLVijhw73Qha E+UDBQ/2VzZcC6a4A3yGc2rFVW4Td6VoeQoyToOXZ7RMhRBjtizRZ1TR+Gq7WdCH+VdK 6k59vzNegQ22ITSmvsd+2Jlw92LuRRJAgMaRb9uihDZ+1y+R+a48saAlKBOX7Mkstls/ +bQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GxB5YqeC; 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-147616-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w2-20020a63f502000000b005dc423d758dsi10206400pgh.116.2024.04.16.14.42.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147616-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GxB5YqeC; 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-147616-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147616-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 861CCB253CF for ; Tue, 16 Apr 2024 21:32:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B626152E08; Tue, 16 Apr 2024 21:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GxB5YqeC" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 EB62D15253B for ; Tue, 16 Apr 2024 21:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302544; cv=none; b=j9DvzDIn7XJqFrJ/pWFygus9m6Df48ZWl31PoLjtMvueZ1HeGumxteI+A7NnJNol/E95a4hb0AoqyG1wW1sgogW1BFTAiEhBKBO76uop3Uo5IlmSP+5Ao1CAw6fuVJN2d/l3ceVk4LhAGPfkMQlMWIzemaxaZZL5vAjJkWAyNI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302544; c=relaxed/simple; bh=2gPGaDcRT5gcL/MB7CRiRDvqupdeUr0UkHk3k5ZMu6g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SuO4PDJIIOoDCy3amV6RE36/gd8ZZ0EoMy4oI7xQOh8fh2PckrbhGOGuMDTyEZjO8jZkY+Lft565FQtYNJhZwwf/uX1HzQJ2R4Sce8Lo/u2Rte5+qX/FL+Gyg/D+T26TGwviD1q6IV1lVizWtb4aKIh1RGN5LvvmrSg4cs5FxAQ= 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=GxB5YqeC; arc=none smtp.client-ip=198.175.65.10 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=1713302543; x=1744838543; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2gPGaDcRT5gcL/MB7CRiRDvqupdeUr0UkHk3k5ZMu6g=; b=GxB5YqeCwn6CgKcMBvmAOqX30+J6FnS074o3xzv4WKuv67xfMmnPKt0U fxS1zVBtFiX6ns4YkDAkM/xps3h2fhi09JRsRujoorzR+SxmBI2tT7QFr b80g6xprTKA3w0ETeJfr9r/DcedBDjQBD1DYF/sX4Mz0Wf515YiMlKydW MCwcUjhbOHkYuBG0ybCHtXVglXRuTv8LJ8jdRKPJcav18t6y/WlToXzEz lU+jLZyFOfhRaPD9JM9LbUXKNbUKDygfH7xLZmI/x2Ji7Uj9FrPWMtUa3 V02eEBvEeLjcKoSvGir8ePALkLGRsHfRdFoIC5nYLYAzlXkL0EQ8YGX8F w==; X-CSE-ConnectionGUID: lFed9T8ST4CG/4/FgLgm9g== X-CSE-MsgGUID: rUtIYag+RCSgUfhSxY1w8Q== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="26234924" X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="26234924" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:22:23 -0700 X-CSE-ConnectionGUID: Pi2uSVG5SZCFXfiEfYLbUQ== X-CSE-MsgGUID: HaRXpSXaQd+o5xzaVUPZtw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="22267095" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:22:22 -0700 From: Tony Luck To: linux-kernel@vger.kernel.org Cc: Iwona Winiarska , openbmc@lists.ozlabs.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v3 53/74] x86/cpu/vfm: Update drivers/peci/cpu.c Date: Tue, 16 Apr 2024 14:22:21 -0700 Message-ID: <20240416212221.9662-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240416211941.9369-1-tony.luck@intel.com> References: <20240416211941.9369-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 --- include/linux/peci-cpu.h | 1 + drivers/peci/cpu.c | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/include/linux/peci-cpu.h b/include/linux/peci-cpu.h index ff8ae9c26c80..2c972b728524 100644 --- a/include/linux/peci-cpu.h +++ b/include/linux/peci-cpu.h @@ -6,6 +6,7 @@ #include +#include "../../arch/x86/include/asm/cpu_device_id.h" #include "../../arch/x86/include/asm/intel-family.h" #define PECI_PCS_PKG_ID 0 /* Package Identifier Read */ diff --git a/drivers/peci/cpu.c b/drivers/peci/cpu.c index bd990acd92b8..8e8292c05551 100644 --- a/drivers/peci/cpu.c +++ b/drivers/peci/cpu.c @@ -294,38 +294,38 @@ peci_cpu_probe(struct peci_device *device, const struct peci_device_id *id) static const struct peci_device_id peci_cpu_device_ids[] = { { /* Haswell Xeon */ - .family = 6, - .model = INTEL_FAM6_HASWELL_X, + .family = VFM_FAMILY(INTEL_HASWELL_X), + .model = VFM_MODEL(INTEL_HASWELL_X), .data = "hsx", }, { /* Broadwell Xeon */ - .family = 6, - .model = INTEL_FAM6_BROADWELL_X, + .family = VFM_FAMILY(INTEL_BROADWELL_X), + .model = VFM_MODEL(INTEL_BROADWELL_X), .data = "bdx", }, { /* Broadwell Xeon D */ - .family = 6, - .model = INTEL_FAM6_BROADWELL_D, + .family = VFM_FAMILY(INTEL_BROADWELL_D), + .model = VFM_MODEL(INTEL_BROADWELL_D), .data = "bdxd", }, { /* Skylake Xeon */ - .family = 6, - .model = INTEL_FAM6_SKYLAKE_X, + .family = VFM_FAMILY(INTEL_SKYLAKE_X), + .model = VFM_MODEL(INTEL_SKYLAKE_X), .data = "skx", }, { /* Icelake Xeon */ - .family = 6, - .model = INTEL_FAM6_ICELAKE_X, + .family = VFM_FAMILY(INTEL_ICELAKE_X), + .model = VFM_MODEL(INTEL_ICELAKE_X), .data = "icx", }, { /* Icelake Xeon D */ - .family = 6, - .model = INTEL_FAM6_ICELAKE_D, + .family = VFM_FAMILY(INTEL_ICELAKE_D), + .model = VFM_MODEL(INTEL_ICELAKE_D), .data = "icxd", }, { /* Sapphire Rapids Xeon */ - .family = 6, - .model = INTEL_FAM6_SAPPHIRERAPIDS_X, + .family = VFM_FAMILY(INTEL_SAPPHIRERAPIDS_X), + .model = VFM_MODEL(INTEL_SAPPHIRERAPIDS_X), .data = "spr", }, { } -- 2.44.0