Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp661916lqd; Wed, 24 Apr 2024 13:00:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGNNpHCa8Jg+62qS9/huityI0dE3NBPotgHEAgagf5DE3aG4qFNFIKnfbxgo3CwFRry5ToWMShNJDsYdY3OtdICpsSJMIW8V+6Hzmxzw== X-Google-Smtp-Source: AGHT+IGqDgelHJ5Ljiey0Snjg166AA010/6asJMu8+1zdtQLf/oOZQfncCUvch4FJoax+3OYFK5S X-Received: by 2002:a0c:f50c:0:b0:6a0:5978:6595 with SMTP id j12-20020a0cf50c000000b006a059786595mr3747216qvm.4.1713988858000; Wed, 24 Apr 2024 13:00:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713988857; cv=pass; d=google.com; s=arc-20160816; b=lJGBhwXbDuUHs7spIEXkxwIF0ZYlbKR8q0Gicpf+1YCifKj2gbJcVr71YecOYBUK/K aJuBQrIOMRGJQWDobThYGXaVEyNWOevbyII4t4br6OIu80IZPbkTcsKzYcvIrOm2Mlj6 FUVn4lEGbu19W5PiZvVqp4wsj7pcooYuN9sYtjdX1oopBaSzOwUix+ESs7wMso7u7GBP p9yQ5oe09mxCw7i+TnOh10Mq5i9v0SNh97PhBRLfgBtmpryOYD7BRGsw3gB0pDg6Dj3w F/wk+nm7fcWqMBGHxosKxDXWf6BD0THYKXuicmaT9Xm+BXG5bYc5U65NHZyIZtCF8H2n XW4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=jV6MUXeyQ8mtFanrkE7vNSEtzBB22JlN0e9Q4p3iGe0=; fh=iWlUnoIP190TiO7NdGUK7Ou6Ew1oFdrQNPPvfurOwVM=; b=Y4F9DkttMSnCy8hyG8UjYRBoby8DY32ZACsd2AShuo1xWLOGjJFnRcW6JNO/UKv4AM 6qhcSNMBhf4Nh14FvIg8BI77P6TV0peiQ9eU9d4i4k8pmCkvoEGf/+dDSrdC89i+xq4f zY/djLmNLcavCKgGhQxjL/praaeoQzHsdhi8wRlPfe/huK2aha7jd38aTqRcuwWTqCAj s6CBsOepJ+A98IaBauSbZD9MQHoVFTHFhfYwAQ3Mdl51LuYZaAG11JyroG2Cgbed2I1A 9r/Hts6/VokxVEdF4Fa1xRbhd6zK2BHI7eKKIjCcaXs+OPoFoxldcNy2l4xs0EHigKql 0h7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EDcyreCe; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-157637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157637-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 8-20020a05621420c800b0069b50a68648si5060850qve.423.2024.04.24.13.00.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 13:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EDcyreCe; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-157637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157637-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AC20A1C22B20 for ; Wed, 24 Apr 2024 20:00:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E354213BC20; Wed, 24 Apr 2024 20:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EDcyreCe" Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E35ED134A8; Wed, 24 Apr 2024 20:00:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713988850; cv=none; b=iyKSMl1kUAKA8maViUNMXJRflltIEOhBjO8grHs9cYH53yqjKf8pCYaEhr3Ijnx27W0RKOh/eJ9BjUvf/pDIT/y4GYPVKSE9mysm3x5RA9A75cCRQtNeQ4KohLTIwD0pndeENlaM7s9svs40hv3Y7+yGqpxIMA/E+yOyqFvYrwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713988850; c=relaxed/simple; bh=vtAPjlWlcBGTRf8Hs0iaIMYlThoupqnIr67GAokTmTM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sclt8BCSicfLq6eGpzTANvRINhvJN0rtXW8VJpTV7cBogk/zkaeIRITsZZl//3xQsbYapchna5yxWWqAH56Q/MXTQIUymxQlqjILo5su3aCp92QQNtYnET4+S2Vcu6G4rsCGUgQTAlFT+Ym4SPlKHvFNLZvsRvwRR1Lf7g5Enmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EDcyreCe; arc=none smtp.client-ip=209.85.215.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-6001399f22bso197198a12.0; Wed, 24 Apr 2024 13:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713988847; x=1714593647; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=jV6MUXeyQ8mtFanrkE7vNSEtzBB22JlN0e9Q4p3iGe0=; b=EDcyreCe838k3yqGDE8pH23TeoEESEr6r+CZyO+EOZi8pbd0R3jY5/GmsZoyP7mShI 3xhJ7x5S+Vp/eKhdHPet/Y8nlFnYx0W8RmueUbc91ElInJs9SqkhJLwE+prEtPwvsLB7 G9csp7tG2fVqKuzkKadQrPtnQhLLTGccKTAXk0FIpSg4jXD62rg+XPugzT35R4/22FOM xl2oEvAAw8jVkOt8p/E4mX7FbJdYqc1EujadEFp13479LCuS/AP0jDvn5y7+P/qlDYP3 prvLItpa/6V51Qvn7LXoBRv53YsH/l6D9sJlYArKX8/g1mRWR+kJgP8oW+TomYeDHqi2 +mxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713988847; x=1714593647; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jV6MUXeyQ8mtFanrkE7vNSEtzBB22JlN0e9Q4p3iGe0=; b=L+hf65MnvbQKsEkiwSenSgQoh8w1q+/7FQDouhPXTiiSJfU5p17uVrj8gBRHVDD/ok x8YW+2Bo/7bp1KlFoIpYy3li70FIQLmT3qomBRxovZJ9AsCXqA0Xbv4VaybStVKGNTP2 PTeDKAikXUSCxi9xItWb71eQS3jTbUnoCrbuUVMJTMa3r4PlDctg1sYsUEpari+NewYy /epW83tRmTYC2m24pR71u0tC11edbn6a7XK06X7LBVif5SVJKFmW97fVbJWL3mZsLljI I09rm/ahbfuOIFEmz/ItBoCouP0gBneW5xjqiHSXqkGddfsrYbytoiyiDlyEK0SwdM4a kjjQ== X-Forwarded-Encrypted: i=1; AJvYcCUS/r0kOEBXEaXd+A/e9/vvT6daEu/YMjAZAdVrxWEAzoXUx3wp+/4yqDW7Grj/2DV/m7c+bLxSZVyXth7BDu5r4lGDMBaVWgAoc/fZVBwcJ4GdZOIGj2B6Ytn9oEEPu/8vmJ4LiJ19Y1U= X-Gm-Message-State: AOJu0YxwxIjI1W7kqjBNUadPQtaeH+qYc+SwZ5yRTO16+YGsQdLM6C4x IOuJ+qwxxpKg0UHanGWeR6dn0/yA3Cmvyhc/dzpEBv/HMLPpPT6q X-Received: by 2002:a17:90b:4d88:b0:2a5:c3a7:39d9 with SMTP id oj8-20020a17090b4d8800b002a5c3a739d9mr3315119pjb.45.1713988847192; Wed, 24 Apr 2024 13:00:47 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id a5-20020a1709027d8500b001e3c77db2aesm12349458plm.88.2024.04.24.13.00.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Apr 2024 13:00:46 -0700 (PDT) Sender: Guenter Roeck Message-ID: <8b138aec-9565-4847-8c7c-8a1fe6972a04@roeck-us.net> Date: Wed, 24 Apr 2024 13:00:45 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 55/71] hwmon: (peci/cputemp) Switch to new Intel CPU model defines To: Tony Luck , Borislav Petkov , Jean Delvare Cc: Iwona Winiarska , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev References: <20240424181245.41141-1-tony.luck@intel.com> <20240424181534.42216-1-tony.luck@intel.com> Content-Language: en-US From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+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7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20240424181534.42216-1-tony.luck@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/24/24 11:15, Tony Luck wrote: > New CPU #defines encode vendor and family as well as model. > > Signed-off-by: Tony Luck Acked-by: Guenter Roeck > --- > 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)