Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3089359rwe; Mon, 29 Aug 2022 05:46:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ROtzJ/S0nonoS3u9egenwJ0bVty+9/Ag0Cv/q+TrFEnpjTrtPO7cPmToJx3U5EVJB7Hwr X-Received: by 2002:a17:902:8f87:b0:172:83b5:d771 with SMTP id z7-20020a1709028f8700b0017283b5d771mr16292033plo.159.1661777197395; Mon, 29 Aug 2022 05:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661777197; cv=none; d=google.com; s=arc-20160816; b=UIQF6eZ3EhgtJf3n44Zwe8y+a/i/DXCzi+WNaqolPIlm3LYklng4vLDtgAI0u8o2xG a4C2TNxAhimTLWiebXw+WTpqeuqXnIvbXRcezSdFLfrpvcIkFec0rnN3se8ZUfTj4B40 G1xSvUal3e7Pg+gscv55ivKNg2Z22nPIgOLOD09DNAjJJUxhjNdlWhEuL7xjAmQSC4re CkylTJCssg6cxeKDFk1H8ASBEUtaDw52Je9I6sGV/ghUG3QXJ2a7Ysl0MP1EsjTBhZZJ m/Zc8GIilWMEwasGPhBrJv+eq8R1dlxht6NTTDqA2iDmPX12w8kF6/2nlGh8TlzXGirB /Ruw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date:dkim-signature; bh=FzJ4m4M3w53N7NQdJusfo1VfYGPaC+jsrMKVyE2Cxow=; b=MlDXWP3uJqvju5dVX3Ee1LEwopaQRGDDDr7zaU5AuF9T3UMi8cSGQKKtrUMhi/UAU5 4f0n/RKjXCIJn24Xa13fcVEd77b9EtUq67zYHoIxEg427XSurSDKkYUT+EvjVbZhqnIQ Bo1S2P8G4Xt1Gea1VfxrR7pZdRwpdH3CJ0936qqLyWX54l50syFNAfI2LGaxxXn9l4HY 7Kr3Xx5nZOM9784BRfYW5EwlEEjuheNq82/n7eMAHVmz+SMWQ/Vk2Fs3ez3CWdfnImJc UE2l1WOR15Exx1CfnM6Stipu2ZlqNHVw7gex2rFerQppE080toCqXlHc3k26u2kjEFsU MXaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@att.net header.s=s1024 header.b=k6ixTCTg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a170902e89200b0017298291826si3532124plg.459.2022.08.29.05.46.25; Mon, 29 Aug 2022 05:46:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@att.net header.s=s1024 header.b=k6ixTCTg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230005AbiH2MhU (ORCPT + 99 others); Mon, 29 Aug 2022 08:37:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbiH2Mgz (ORCPT ); Mon, 29 Aug 2022 08:36:55 -0400 Received: from sonic302-24.consmr.mail.ne1.yahoo.com (sonic302-24.consmr.mail.ne1.yahoo.com [66.163.186.150]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99F917436F for ; Mon, 29 Aug 2022 05:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1661775621; bh=FzJ4m4M3w53N7NQdJusfo1VfYGPaC+jsrMKVyE2Cxow=; h=Date:From:Subject:To:Cc:In-Reply-To:References:From:Subject:Reply-To; b=k6ixTCTgmcH5kzoQx4PHGgJ8Dgx4buwrfpX/oKmtFFDdjg28Woux0NgRx2NTKf0Bw/D7s3P9w+rXvt2cM8oK4+dqHzRb2I4lLZXiBVQRDvbStp/aViB94wRvsByRUBdAyL7Z6Ozz85tRFqWQtrNJ16bZdbaOco+AoHYPKYhIWI0= X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661775621; bh=zCVcVuhE/UyhuZQsAwCHlxvG1zZP3IrA1z2QKCElrxm=; h=X-Sonic-MF:Date:From:Subject:To:From:Subject; b=ZtLbG7vRU5yqhDYWObUcNHXQ+Zzf+VViUnD/KuoYfy89hCGZ2G4Hyhi/CEEVfmO8/KLMbsZMsgDzmkD1ecri2rq5I04E97gdGS5B+rOVDsc0ZgFS44l3UNUqUIeT7+/QTLdyXE1HIHoQXe1z+oMeJqiXYvXusqYbW2FmydU9wTDHuM7OumMNwhPpVPEFXVYwOjOMS4pBofetGTpzdzL4lxs4U1QISizQE3Sl2au521ml5uwFs6sOhUZz7Wshs6CwlqwUiOO5DnCr29Kp+uywVZIvC55CYTtDaK/m2pn84KBVjmf4kEsO4UkzuOwRxEXeBg/bcFPu1VVOOE2Yb7EPYg== X-YMail-OSG: aVtxlbYVM1kSbDRjwKQ66EINaVQP3gdReZ9OGxwhKVSU1vZAnXflQQZwXbi.E7f KFWOuBxxOmtgmTPe8Hhza1OnqfADnW.0xmVftJCuuSRYHVLXssK7ayfN6qMYwoRW6j4Dq1g2F.An IOBKL1.YqLL6l7VN_ppPDE63jGqCMpUnQJbh04qNuFfWMRENdIheqYgYYwBP5dT3WCUJ78VGI7vq cfFfWYb54bNuXXQ5Dmb3PEB4XctbuUJvn255bd_2lRRxzYyvuO7zvXIwgMIRCIUFIL0o_RCUtkgI xwpzaU53t1CBx1LnpGpQ.4stjq6CMrcwJ.n..B9SWs4PCYlx725rHx11ppVAtBNIgxF0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GRc 3RQjtljGu5vODNnt8y8WKKRo1aPlh0ksYwKlhhbfXJ30cYX.Pijki7qSNL7NNPTNRAxO6CiO1agd CePzDebDCY3GFsvLharcj92S4vHabrnurb0iX_RXLo8zfk2kXCRk6kwChEqfAWFx2S307Siwqk5m aScp6FuD5rWzHUajjl5dJUBWYfhNOEn_cm.aaMLMJPei.FnNQLkBp5fMgF680tWnSiGWJa9B69Bm GO._jLOghuVf_Adjy2CEeGd4vvBuQSPd_hKokmW_oUCqWfjXyiRdxvHMgu2vEeMcj2WRlx7G7_nM 3_4lKL8WNi2QTs4VZs6QsTdt.JBIw53sZvAmIVCknnlpspxwrb6qM5sZXfEVeHHCXZCZ7UvGVHEg 6ahaimhUqngNutXt5YSXfNpQ3XwhcoTpfNUZUQE8P6_hgA__6CUIR9HQORNZIBztDZpoxyk8cMvY JsN4sczyYYDU1usfyknF1VEcZS.zpKcJ58MCVjt7FK4lx.KbmJ1M1yns1inH227ePLxDcoiGJ4bX tv6V7.ple9Nr2rjqKeMrVo6uiz8ftWbsILM6bc.yMULWtexQo9ny1d5hRf0vNVyffM6JOYYM24tS GAVgA3Wf47Zz.g2UNk6HWflJr6sk1U6i1JoxTK8Qsox4QAXKprS.hUGSUdPbdGZkXUHgcXpxmert HqA2oC14TfPfdRjYDy.VWrNm_uYc9kpyeHV9Y6Yx20aEpnuyj4uJv01YlTf6ESgROW31rNEpsm2Y 14ckgHFk.mxLuZkjv6fWSPXb.mkNoK9hVt6DMXfWnbG33VnsYv86wJer4g5ZEcZvhCpjVmskkEim fjDTuOO33WCHHgPodw07WyNW2 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Mon, 29 Aug 2022 12:20:21 +0000 Received: by hermes--production-gq1-686964ccb6-z2kdz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0b31fffa8eb0473f83fde84cab2d06af; Mon, 29 Aug 2022 12:20:17 +0000 (UTC) Date: Mon, 29 Aug 2022 08:20:09 -0400 From: Steven J Abner Subject: Re: thermal driver patch To: Randy Dunlap Cc: linux-kernel@vger.kernel.org Message-Id: In-Reply-To: <0f961ea6-4948-0b7a-e01d-d62ca4065af8@infradead.org> References: <0f961ea6-4948-0b7a-e01d-d62ca4065af8@infradead.org> X-Mailer: geary/3.36.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 29, 2022 at 05:47, Randy Dunlap wrote: > a. the exact message(s) [copy-paste] > c. what kernel version is causing the problem [ 0.000000] Linux version 5.18.12-051812-generic (kernel@sita) (gcc (Ubuntu 11.3.0-4ubuntu1) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38.50.20220629) #202207150942 SMP PREEMPT_DYNAMIC Fri Jul 15 10:10:55 UTC 2022 [ 5.244369] thermal thermal_zone0: failed to read out thermal zone (-61) [ 0.000000] Linux version 5.4.204-0504204-generic (kernel@kathleen) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #202207071639 SMP Thu Jul 7 16:59:09 UTC 2022 [ 5.207243] thermal thermal_zone0: failed to read out thermal zone (-61) as to reproduce, can only think of saying: boot up kernel without patched? additional info that may? help: I did not trace what calls 'update_temperature', just saw any call to it will cause message due to it's call to 'thermal_zone_get_temp', which states no thermal_zone_device should provide or be requesting an update. It may be that if 'thermal_zone_get_temp' where removed was actual function's intent, and all instances in this file and other function's use was a case of designer debugging or signaling a deprecated API? That was my intent on saying 'for you to do and review', because it looked like a lot of functions could be updated to take into account that no device should call functions that start off by calling 'thermal_zone_get_temp'. It is more probable that my patch suggestion is wrong and calls to 'update_temperature' are suppose to fail with return -ENODEV always allowing other calls to 'update_temperature' to fail also. With proposed code, I've not seen adverse side effects. It just removed dmesg error, but was hoping I would get lucky and it was the reason for CPUTIN -62C without actually hard work of finding real reason. additional dmesg info: only other 'thermal' are 'thermal_sys' loading governors smpboot: CPU0: AMD Ryzen 5 2400G with Radeon Vega Graphics (family: 0x17, model: 0x11, stepping: 0x0) from lspci: Kernel driver in use: k10temp from lsmod: nct6775 hwmon_vid these 2 removed in personal configs, but used in the two ubuntu kernel builds: wmi wmi_bmof Steve