Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1072873lqs; Fri, 14 Jun 2024 14:10:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjVqcbYihZrv1EyW/Otbtnzyogd9a7+VmT4Y4So+vNBMofFoi6xwjROq8m2CG8WTIvQ0NQ7TkonlZmGCkdTu+P2s1aXUeD9OsK/7k6/A== X-Google-Smtp-Source: AGHT+IEAsvXDLkLXWsaVRh7D6iH7mUVY/q2HjJPXBTrMwA3/6lgC7icyKyWN8uzif9u2YE7YAm2T X-Received: by 2002:a05:6214:f6a:b0:6ab:9214:ffd3 with SMTP id 6a1803df08f44-6b2a343ccf8mr118402446d6.25.1718399434648; Fri, 14 Jun 2024 14:10:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718399434; cv=pass; d=google.com; s=arc-20160816; b=D0RbqHQplb75hi8m7s9sgS7NefBRqd7GwnfmNfn3D6lbhdDI7bwvgv/HM0qcwTpTYa gDuDsan3p5lvdPjm9U44oj9J5KIoGDtmQ4pPAHG6K/6yiiBEhxxOpNQbOwyyeYp577JL GmgJsMzT8RXtM6hAFeN37/RCvs77Jp8lhlvbW800ibzMszzUg+wzWob9NgDXJH5wMBIM p+XQXlpMQnlzIAUlZYKZ7Zzv1/x6kqJa+bPFjjaljE/FNQlO/D5Ym9T9jpmm7KhpU4jT lILp/H+EFgzCILeqZ37l7N6b2IEZBhE18ZTEQ8aDjbWoAJSJrTXDryQ6Viqd0BCIXdbB jrLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=5DD33TNZdzpnfzkHxcvJ88LhPtSyNrfLAWzY5GMvRqs=; fh=rnxKYiqWxvUFvIgkleqViXPlmrcbHCY/GfGgovU1oFU=; b=IhMgJPq0ofCX+cRedzUYH9AH1pUBZKsRHHqHwtqsMYCc8shi3oe9pdUrYcA0wAiOS7 a18UUeU1PlIo+QTs83k4za+5a4zqy2JaXTJSDyf7WG3dnStWyPTlvO/WxEbNYnFjaP// Bfl3KpmgbIFkP2SacTt326RQaN4hcHSWRaXzKpjS3u2zWRo4FzN0jvHz7MElEp/9gyYA OnDZbmdu2Q7Y2swDSWtznCo1l8UXxAZ+QyEPTX9j7DYTDTYkD2FgPsL8eab8QqtPtO3h UI1C+oyCsG6SVZnRDqFYQPh7/ZXL2H7ggZYoVOwxRVhgCCeHYbK3jjSHPRiFHXPk7y3s bjPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="i3tf/jKJ"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-215491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5b35e2asi48068196d6.399.2024.06.14.14.10.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 14:10:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215491-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=@intel.com header.s=Intel header.b="i3tf/jKJ"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-215491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215491-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 603F11C214A2 for ; Fri, 14 Jun 2024 21:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A51D31836FB; Fri, 14 Jun 2024 21:10:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="i3tf/jKJ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 236E219D8A2; Fri, 14 Jun 2024 21:10:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718399425; cv=none; b=OpSSw7H7j/e9L4HULgB6GXPsNzh91Aohtlcj7csuV8zFiYRFd/REKCwvKIQvH2txYqZuulJ28RXQvB2yvVHn+tfBqUAztcNbEQRKAoB9PJxOyt5cW60+DN1aH67XrMdK54OMrGn9Ov9/JnzX9ZTQDaoL57wnIjTH8xzlbtCVgQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718399425; c=relaxed/simple; bh=4mjMC/xDz9CA4GaT7S07dgppyXWHHGmuedBGK3qo/Ss=; h=From:To:Cc:Subject:Date:Message-Id; b=JKldWAA7j2nevFxyVdWDPlWj4PH+BZ3/ijch+1LCAoms1weAewi4w9sxTdYjKlVjCyWk48ZDhWUcYLCwE91or/213ItH5J1LJsBtWDxiSMKwEOthcUhchiUwTff3v7lRhKFsSfwt9ms9UlVt1HZ4vwF0/z+x4U9+xIzPKYsi9D4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=i3tf/jKJ; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718399424; x=1749935424; h=from:to:cc:subject:date:message-id; bh=4mjMC/xDz9CA4GaT7S07dgppyXWHHGmuedBGK3qo/Ss=; b=i3tf/jKJFB1J/KKHpZ7caLpbMAcIxm9VCBlQ+KsUlv759VJlzGemo9p9 D2PIZsnJ7S3NogT4rLFs/W+kQp2sMBR10NAFj0Yuai5JZWQE5FklvpjP8 XrG7HLqPIvoXeXcYzZB0XEqEpiXwX34z2dE/tUvcDNmZe2H1xiiKGVGDb 0y8h1ke5xVNb4RupJYvJhixlEGOPLRtJ4wK0fckEjjJCFbdF5SRIplBiK b9kljmB4w2CPy9FjTtYIDdmKAlDjYjG2BNcBcQGh6891OzoMSjMy7ItOO HJB7aaUfJGTWvW1RUpnt67gYo51+HLzhZ320xduOZPhBucO4LzkK3c+2R Q==; X-CSE-ConnectionGUID: nAlgoZLBQpqZ6qmf11vqCQ== X-CSE-MsgGUID: 9o5V90u5T/ONh/dtX3ohYw== X-IronPort-AV: E=McAfee;i="6700,10204,11103"; a="18230024" X-IronPort-AV: E=Sophos;i="6.08,238,1712646000"; d="scan'208";a="18230024" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2024 14:10:23 -0700 X-CSE-ConnectionGUID: o/AQPzhzQWq3ekGEt7+Euw== X-CSE-MsgGUID: SRqBPx19QreJiw5BDTlpSw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,238,1712646000"; d="scan'208";a="44992970" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by fmviesa003.fm.intel.com with ESMTP; 14 Jun 2024 14:10:23 -0700 From: Ricardo Neri To: "Rafael J. Wysocki" , Zhang Rui Cc: Srinivas Pandruvada , Lukasz Luba , Daniel Lezcano , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Neri Subject: [PATCH v3 0/2] drivers: thermal: intel: Use model-specific bitmasks for temperature registers Date: Fri, 14 Jun 2024 14:16:04 -0700 Message-Id: <20240614211606.5896-1-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Hi, Here is v3 of the patchset to use model-specific bitmasks to read TCC offset and the digital temperature readout of IA32_[PACKAGE]_THERM_STATUS. You can read the details and motivation in the cover letter of v1[1]. V2 is here [2]. Changes since v2: * Dropped patch 3/3 ("hwmon: (coretemp) Extend the bitmask to read temperature to 0xff") as it has been merged in v6.10-rc1. * Used the new X86_MATCH_VFM() macro. (Rafael) * Added Reviewed-by tags from Rui. Thanks! * Rebased on Rafael's testing branch (based on v6.10-rc3). I have tested these patches on Alder Lake, Meteor Lake, and Grand Ridge systems. These patches apply cleanly on top of the `testing` branch of the linux-pm repository. Thanks and BR, Ricardo [1]. https://lore.kernel.org/linux-pm/20240406010416.4821-1-ricardo.neri-calderon@linux.intel.com/ [2]. https://lore.kernel.org/all/20240425171311.19519-1-ricardo.neri-calderon@linux.intel.com/ Ricardo Neri (2): thermal: intel: intel_tcc: Add model checks for temperature registers thermal: intel: intel_tcc_cooling: Use a model-specific bitmask for TCC offset drivers/thermal/intel/intel_tcc.c | 177 +++++++++++++++++++++- drivers/thermal/intel/intel_tcc_cooling.c | 2 +- include/linux/intel_tcc.h | 1 + 3 files changed, 174 insertions(+), 6 deletions(-) -- 2.34.1