Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp614432lqd; Wed, 24 Apr 2024 11:28:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDtl6l+2oLOK3tcslv4/JUxqpWHOvBdGYVHMaqBzVqEkFoWAoqL4i/jy9Mrt8TtKRjRUJu83Oypj8CflOUYUiJ2ze7ohCpZxbn+FVCgw== X-Google-Smtp-Source: AGHT+IFiDACmd+hWJGGmxl29oe43vNi66sjfD5YH+tyjiZdrzM+mSe852P3SiVgSOEE7zHJTb0Cw X-Received: by 2002:a05:6a00:23d4:b0:6ed:d8d2:5040 with SMTP id g20-20020a056a0023d400b006edd8d25040mr4620283pfc.21.1713983337313; Wed, 24 Apr 2024 11:28:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983337; cv=pass; d=google.com; s=arc-20160816; b=ohIe6uKRAbf+/4OCzCyxirBnN21CTu92HWw+bhSh+Z3VnhyRNBh39Jmm5bQ4IMFY+S ZaYZKBHx2sxxROVuwYqQcBA+mQhB0xZfGy8uoFkrL3+4/U68A9HgFDP6ez4vv1rKDoH9 J+ggfm0LzIMIVKj1YwxfMLfnxU/EYSe0uEg7drEu2ciqZawNUi7hRd3NFTWqstf1Sqfz 5q3Y/DY63TTWRLYUS+1DiWrUEmGjD5QG3RCzKSneX18hiNcPrtBx7B3fe/9iknoY6eG2 +cqS+4AkeGgSg5m4UvDLeq+dM5/itI+Q6T2qPJZ2XVESYLGIJGP3mTnOpwKhn0un0RIw 3WXg== 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=pr3/uQ4SGl6yZoetZmaxUJkPXAIW6/Bdso5uZRafoug=; fh=F3JAqd0OIbSM13QE4ILEhI6sQwEtR3fLL5GkqXhrCxA=; b=WZcElVjqRL0kafY5DDC3n5MCzhBYW5VNmUw9HX85wEL+dKXtnpgrJt0eCilYO1ajQW aPrjvl35mJvVzQc65eLS2D3dq2myCfbLx4W6I70U3OK/cC6lQGjOcgCEGMm8F6Iv5bDW XYS5CvQljf5wadTj/2hYXnEzmgF/CATa+HruveV1JAiAnBxSrfOPp68rx+LC3IMUzhBz cxHYIJeYIv3iJFR0ZD2bmfACZLuOSX5OwO2UGAgJYeZKmzJ2d3TbhmLA6AN0hjlc60AC 104C3ENaB9UKuPE2EuZA2WcwHcMsgYEl0/lEx+pbXsdjESfCsd+4D8lD0mqQ/VudaG8P jSPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ErBr7CUA; 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-157504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157504-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 fc16-20020a056a002e1000b006e733588b4bsi3803415pfb.59.2024.04.24.11.28.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157504-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=ErBr7CUA; 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-157504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157504-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 402B1286541 for ; Wed, 24 Apr 2024 18:25:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE3241A0AEA; Wed, 24 Apr 2024 18:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ErBr7CUA" 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 B5F3E194C75; Wed, 24 Apr 2024 18:15:35 +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=1713982537; cv=none; b=GaOMmmQNLBWUSj4XDa1EJ6FAJypdLZ6gAWOkTreOvKh39cemYWZhACgTC5arkAQO1ibevKsuETjPAJM/XPklnMKxhDrVyIwZ88dvdQsy6+pFULRvyhKV0RE/t77mssduhiG588AgRv4OvZw0lzUwxrhXLcTUSDFARUqmEk29l7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982537; c=relaxed/simple; bh=VOMc5HL2Yym/lNFPXw4JQY/s2kqTbaWlnvcMPB56V7I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qCHCIgt3xkPbM6ARCoyCcAKbL/eyTQ86b9N2PD6+1FEuIE5p6AzdKx5dRXqOQJxkbHFcnTtCTmDlbQ1b9sbMwEIioFgy6WV45QAUTsuhYMpUtTybGkKtNRnQkGCFx+XQ2bBa23H7YeF+VvgYC3d58H/9Fzsv5LTEecTR8xsT/kk= 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=ErBr7CUA; 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=1713982535; x=1745518535; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VOMc5HL2Yym/lNFPXw4JQY/s2kqTbaWlnvcMPB56V7I=; b=ErBr7CUAhT+8KQIjoQ8mF0t5ie4ZBvcZ+bm+uKAvYWsfxuOVk7FTlJqx ftQsWYeOztmjInX4YqkF2nkELY4n4jKA8s41yXgnnwgcy9Vu8uiiBffvS 4AASfip6aCxYjRmqJr+Nu2GmkdvWr3665sQegiF6YNJNDMrlYCCSHTkqU dtoZdNl2nJnhcnVwakAWu2bX2JF5RciLQrhYEd4T9mzUzlA8t9HzMgUfe eX72ADNl/hq30Yjvbu/Qk9h4DpbA0SeEe4NKfhoEB99cgm0RtmwiKIlPG 6/dVBVy8A0j2R366U6XHdQ2JyCz9o6QKt6i7YnzTn2d29e2Az3qYo2sGs g==; X-CSE-ConnectionGUID: XcsYK0ThTRSZkyiVehgf+Q== X-CSE-MsgGUID: SCP2wnwiTLmfNSeGmzXI5w== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503655" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503655" 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:35 -0700 X-CSE-ConnectionGUID: Uj2SbWfbQx23lWiZ7/VFOw== X-CSE-MsgGUID: 0KTWpr7DT6WRpayO81znJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55750236" 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:35 -0700 From: Tony Luck To: Borislav Petkov , Jean Delvare , Guenter Roeck Cc: Iwona Winiarska , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 55/71] hwmon: (peci/cputemp) Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:34 -0700 Message-ID: <20240424181534.42216-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/hwmon/peci/cputemp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/peci/cputemp.c b/drivers/hwmon/peci/cputemp.c index a812c15948d9..e8dafa748a41 100644 --- a/drivers/hwmon/peci/cputemp.c +++ b/drivers/hwmon/peci/cputemp.c @@ -361,9 +361,9 @@ static int init_core_mask(struct peci_cputemp *priv) /* Get the RESOLVED_CORES register value */ switch (peci_dev->info.model) { - case INTEL_FAM6_ICELAKE_X: - case INTEL_FAM6_ICELAKE_D: - case INTEL_FAM6_SAPPHIRERAPIDS_X: + case VFM_MODEL(INTEL_ICELAKE_X): + case VFM_MODEL(INTEL_ICELAKE_D): + case VFM_MODEL(INTEL_SAPPHIRERAPIDS_X): ret = peci_ep_pci_local_read(peci_dev, 0, reg->bus, reg->dev, reg->func, reg->offset + 4, &data); if (ret) -- 2.44.0