Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1710166lqs; Sun, 16 Jun 2024 00:50:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJTYKLXvXqOk1wi00Uckx/9rZMHEFTnwppDq4V1UJDaFbwgbqYucFzlRYYMh08PSvvqpHIhhMoMTiO0QKjbv2H39xxvciABG3mGojLUQ== X-Google-Smtp-Source: AGHT+IHDZs7IzMGBlIHVVmCmTwWY0755bbrOLe0zhvh8eoKp48LVXY2zbFKirGZ/6hJrjc9QpDsN X-Received: by 2002:a17:906:1348:b0:a6f:5150:b805 with SMTP id a640c23a62f3a-a6f60d4214fmr453218266b.33.1718524218769; Sun, 16 Jun 2024 00:50:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718524218; cv=pass; d=google.com; s=arc-20160816; b=nAjBWuSIYRwmC6FAP+xe9wqs0SJ7kknhkEhkf8rBlbKOgD2goZUl2+2PAz7wL/rZYq C3ouqij+X85AiLGlriHR3uIMrTNbyv5BKw4g6UdTzRAGwlIJPVYWWT8QtaFpalj4IzIB yv8BQoqd/jOlBIeEnE+lr/Iogi650cEHtVPJpb38aXq6Ritb2vXBzsAjMSHfKLpklLot J9oxD2NLZhqRewdKE3YP+Ofmf3QLbdDuN4YR+S9itbLAgW1bqnoj1Lk5Duj7HOEo8E7E ZJbcnzuAxqKKz/EXOqD2Z+xjnziHC0vw04KuVKq2y6MffNGPXWacJC1ypsexdkXwim2V BkGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=CgRzjm/nwd78x1rt0gIv5aEFf3uVyoARkr0H9nC1Zzs=; fh=gJIacp/xzM18qsbkoe7XnSF5snqIoxp8tvjCmiG5CTg=; b=mgKkbO+w/iNbRSxt6CEPgpnuT1B4VKBG4WPR5udau68+38+iV2yDIy8draINFpOL8r nG0lZUo26SETc7F+EcscWYiNanqzSfX2NAi2oWk9iRUkeRSgrkeRRIFdbvw1ihJYybTH pW31Xbwypky4crTciRaIbl8s/xju6ntjgqXz0fXRUH1kaK0/dJX6TlVnMfqAYGBHZrCm afghvV4nhlfYICu3f6vj3Pj9HuMe3jihR0NMXlt7LLy9axwepm68keXc1F22hh2ghNtK MJC90Li8VAhCXEA0aD9ljepQziDX6EbLR3UzcUwpbMj2GxzWJ6JbjRukavfxXdNnvNlV jlpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yahoo.de header.s=s2048 header.b=Ri4hkGLe; arc=pass (i=1 spf=pass spfdomain=yahoo.de dkim=pass dkdomain=yahoo.de dmarc=pass fromdomain=yahoo.de); spf=pass (google.com: domain of linux-kernel+bounces-216180-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216180-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e4e6a8si330564766b.905.2024.06.16.00.50.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 00:50:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216180-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.de header.s=s2048 header.b=Ri4hkGLe; arc=pass (i=1 spf=pass spfdomain=yahoo.de dkim=pass dkdomain=yahoo.de dmarc=pass fromdomain=yahoo.de); spf=pass (google.com: domain of linux-kernel+bounces-216180-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216180-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4E22D1F21560 for ; Sun, 16 Jun 2024 07:50:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90D641836DF; Sun, 16 Jun 2024 07:50:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.de header.i=@yahoo.de header.b="Ri4hkGLe" Received: from sonic307-53.consmr.mail.ir2.yahoo.com (sonic307-53.consmr.mail.ir2.yahoo.com [87.248.110.30]) (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 E4CAA17B41E for ; Sun, 16 Jun 2024 07:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=87.248.110.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718524208; cv=none; b=mLNOjouHNNT7LWUIcH/6D/WVHHquxkhgbZJnNuS2yqrw+sl0cWo2xTL28O//p0QES6uRUnJPuvu4DDlgI3avtZFSwSxQ2IY+yJBdkhpAVuyrogB/kn+iyTD7uQGbCeipT84ZsCiXnxCt49wJdwf3Thu3p2YlGc2uWpcMw/zy+JY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718524208; c=relaxed/simple; bh=lL/3Gk7JOk5hvvh1t0hx9ZCAjxnUHlpLEviBVGFzuKc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M1sPT+FWp9o4Pk0UdYyq1rPQ+KvDjdw0cGC5iZJxvk0xQr08tfkpgRziZmmIfXxbl4fpoKbUaHWl7TJHzMtxJfwLk8+Cc+p70++PyT+h5XxD+D2BBu8Vi0PEUAMuLqOX5q+07qHMS0HW+yEOoP+LwjIZ+zxCdiROgbVpiuQplrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.de; spf=pass smtp.mailfrom=yahoo.de; dkim=pass (2048-bit key) header.d=yahoo.de header.i=@yahoo.de header.b=Ri4hkGLe; arc=none smtp.client-ip=87.248.110.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yahoo.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1718524198; bh=CgRzjm/nwd78x1rt0gIv5aEFf3uVyoARkr0H9nC1Zzs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=Ri4hkGLePaQ2AVAhMc0pzBdvcOb3kqkG9Y/X/XJ0uYs/FJta6ctMphoY0qxD7Saar6cInZc0/5ZVbO/V4BvNE3PYqWfp25i/ZZJ8TVucvzG8gdryOOwHCpDXnkdnThoNCAm/DNAaK9kYpDPbdtI5AE6B7KpoCCtHuNBIulmZOadZIOSFrpo4iWYH35hsIQ1WYT7rNeb6TdySx7FvzoH6/0LfgzZRGjq0G6vvR7C1aw/3MOKsodBRk2qUyhRk43IrLq1n3igP6MLl8UxdDLe0R48xEKwqSjjMpTzmnp2kUf6dfjVUq+0qPvHO16Tit+cwkRn6JaaaA+X/sCgHwoBR5g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1718524198; bh=LO51PwsuAq1x5hZUPzNalqyAto7YjRjUSC5dmkO/ufs=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject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mb6_ZagzZ3ChB1ru UgGamjsiYD3VXNBe5KRujUIOhG01MH8O4jy9809tqoauCd7Xf_kUMDzBpZNoJITOMTYxcI0TX4KA F2dypW1cwgPW6wunm.mUTg8gJKYnnJSyireHizOn4FpRTsO6W8PS9hqQExHATuy.qccSacSctRU4 gXqOlQfvJKvZjDH9d4AwFpKtljOpROrzlOs7GrmXDbklLKR5.vBBRwwqcB4MPwp5t08qJKkMAoF3 8.4IA9UrrwDIVqqw_ypxxIpWAo3MFPJNNhtD9deyBQMSBb4Lb5mcEYje1JhbNT8M_s0W5zRH4GeS rTMT_VkwP21ImKNtpy6q_t_Ty3gkvlFcPeVTscR9NiT_L5AG53eoRl1YpyCSjDG6SNIDw5xSlV3B AgtAeEL79PbXPzKnWTiA66FEFCkqCJweV1rdoX1Lue4G6IEb3_gnG56sN5yX1WEPhJj96r.8SDzt j7w4Zsd1R7ZadzgcX7AbOtfV6KETviMeWGCHOMu_5CBRaLF88FOoh8QE9ZVs- X-Sonic-MF: X-Sonic-ID: 7e3e7412-d17e-47d8-bf68-24b5f07164a1 Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Sun, 16 Jun 2024 07:49:58 +0000 Received: by hermes--production-ir2-85cf877599-59p75 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b11e46e9905a001c20392fbd6c3c7e53; Sun, 16 Jun 2024 07:39:49 +0000 (UTC) Message-ID: <3f5d01fa-f725-429d-b6a3-7b9617b8b561@yahoo.de> Date: Sun, 16 Jun 2024 09:39:36 +0200 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: Regression, thermal: core: battery reading wrong after wake from S3 [Was: Bug Report according to thermal_core.c] To: "Rafael J. Wysocki" Cc: Linux PM , Linux Kernel Mailing List , Linux regressions mailing list References: <1051df4c-067f-455e-8c7f-9dc47dc8ed00@yahoo.de> <312649b1-eea9-4346-af93-76a821e88eb7@yahoo.de> <78549853-1763-40cf-9974-3fc737fad093@yahoo.de> <91d94429-fc7e-4828-914d-1a251ee1ba99@yahoo.de> <543787c3-db5b-4f63-b5e0-df508300db73@yahoo.de> <40ec1e53-2bc8-48aa-9909-fac9072adb57@yahoo.de> Content-Language: en-US From: "fhortner@yahoo.de" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: WebService/1.1.22407 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Currently I am running kernel 6.8.12 with reverted commit. But yesterday I had a strange behavior. After resuming from S3 the laptop registered a low battery, immediately after resume (notification in KDE Plasme). But as far as I could check, the battery level and stats where fine. Nevertheless, after 1 minute it shut off. I guess the low battery reading directly after after resume triggered it. It is not directly related with the commit, because I have reverted it, but nevertheless, maybe it is helpful to understand the underlying firmware issue. I' going to test your last patch and let you know. Am 14.06.24 um 12:18 schrieb Rafael J. Wysocki: > On Thu, Jun 13, 2024 at 10:04 PM fhortner@yahoo.de wrote: >> Am 13.06.24 um 17:14 schrieb Rafael J. Wysocki: >> >> Let's see if the ACPI thermal zone is the real culprit. >> >> The attached patch only adds the delay for thermal zone 0 which is the >> ACPI thermal zone. It also prints the ID and type for all of the >> resuming thermal zones. >> >> Please test it (removing all of the test changes/patches tried so far) >> and let me know what happens to the battery readings. >> >> Patch >> >> thermal-delay-resume.patch >> >> does not work. Output according to dmesg.txt >> >> Attached is a slightly modified version of the last patch I sent. >> Please test it and let me know if it addresses the problem you are >> seeing. >> >> If it helps, I think we are done with this at least for now. >> >> patch thermal-core-resume-prio.patch with .priority = -1 does work >> >> One more thing to try is the attached patch (independent of the >> previous one) to lower the priority of the thermal PM notifier to make >> it run always after the ACPI battery one. >> >> Please test this one too and let me know if it works for you. >> >> patch thermal-core-resume-prio.patch >> >> with .priority = INT_MIN does also work. >> >> If you need any further tests, please don't hesitate to tell me so. > No, thank you, I think you've done enough and it is appreciated. > > I don't see any particular drawbacks of this approach and investing > more time in trying to get to the bottom of the issue is probably not > worth it. > > I'm going to submit the last patch as the proposed solution. > >> Thank you for your help! > No problem and thank you!