Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp710365lqs; Fri, 14 Jun 2024 03:33:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgViqnhky0AWJFoF/smpxex5zd4E/51Ez97f1QBD0PVq6oix8alQROfZifWRHGUKHGjqdwXK6OXlpuAh42gGMDOEW71SXysFO4Ae/c2w== X-Google-Smtp-Source: AGHT+IGk/yoJ+XU9OlzNrxG8A/sqwwBWxLxbOYnT45OZeqvZbLocUu/u1ZZy7rn5u129e81lb1iL X-Received: by 2002:a05:6871:148:b0:254:c3c9:7007 with SMTP id 586e51a60fabf-258428eaf1cmr2486251fac.22.1718361192953; Fri, 14 Jun 2024 03:33:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718361192; cv=pass; d=google.com; s=arc-20160816; b=wtxVAXvMgWRLgWcgLqxcqugGaOqJ2zteO4PxRkhJ04v4KfV0RcSuSgn+iOj7SCckka JXft2ricM06dajUsyBFAwvyj6sU+OimZMa5f3ENmhNefqIo6Ycr/Kowv6UoLB7jIhY1J gu7aQzmVYpTcrUF0nsyGL//LnkK3Y/4DkWCmpML9br9DTpgJDKnrGDkKx/HPxPudeyRC fG/82HXT4kEJwJHlt2qEhCjVk0VIbCEYkzfWZG9h/Whj3L7+WVUa6El+dFK/bBOFk3Ag tc2e9I/JmJwuP0lo7gD2zVon6qgNRcgcSMjJ70mZQFyQhH5rWUmwBEb/T63Gl9t0CBy5 XA9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=iPeYLiPMXhTuQRRk+xQoKHh6e3JgV44uhLf+43lLwPc=; fh=Kqqlu/Wmx03rdFKC39y/Nh0WK3FF3ldSO/raWWX57PA=; b=b/tKC3gUtSLFiS67IzBk7WogUZ67OBMo3R7q3q31OW5IH5hfsBUPoR2ed+YJs/HYWj EFCuSI4mvKVaBPnONT4AmfP4tktlRV2JWERyMmHmbc5mqHVGGj6Jk8CaoG3inui2ToqB d2IqFDGbopp5PykIKsAvU9xeXkNZj3wMzeKk7iNB8LZxgKeJOT0t/eEhIyl2Av/d//Nv SIbn2BB3OMvVKjBAlkZvP6UpviBUJZ0ilFqND9/63n9oO3ivWsu5W5cwpbjWgnre2LlY J4XkZm/UEluEm7MELBaQ/CeljbPR6GtRrMgNn9T6r+KnZn25+jpcnTCqjyeg1QNuQ8xh xvyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UEbBKomz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214753-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee310cb3esi3265631a12.417.2024.06.14.03.33.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 03:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214753-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=@kernel.org header.s=k20201202 header.b=UEbBKomz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214753-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1259E28B5DA for ; Fri, 14 Jun 2024 10:19:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 449A9194AEB; Fri, 14 Jun 2024 10:18:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UEbBKomz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 68E261946CF; Fri, 14 Jun 2024 10:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718360299; cv=none; b=rwxZq/4iSxIaj5ID3Qbs9V4TisfwFbP9y+MbGcafZFQCKOOjyVG8Ni3UNVczh0VIluduGehaQASp8sPb1RLltNzLWBZL9yrjGqxViGrh5O1XSvYNehFjKO5rU1B8JhGyCov5VO7C7YWq2hR85aVy+UklXRUbK1IFT7OGRtZmT0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718360299; c=relaxed/simple; bh=h8LI/aLo2YCQ6LHsew5aV45Yh/X6RYEb897K6QSHCcA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KjlGvp3r4vgPGtODuIXNuuR2VqyQRlp1hDxEGLu2jLVbOvBF1b3n6evmgKiNegy3XQ+B9DzLAmntOxrBXvxmsBvlwT1IVpoy5Fc41wr9QF2fCPT4u9btKMRxhQ1eeYyRQsaM6M1INPFJeuZlZMv0AlZ80izDFwja+EQTPipRF4U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UEbBKomz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AFC8C4AF1D; Fri, 14 Jun 2024 10:18:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718360299; bh=h8LI/aLo2YCQ6LHsew5aV45Yh/X6RYEb897K6QSHCcA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UEbBKomzV/KNMhnpo8CPfXQvLOiAnYpmsRSU+Noine82IcDR0hlgvkaKIbbgb+14z xjJSdxjyRNRJIGfyZ6nS+9FuoJTaWGFDugVjfOa1LaszunyM5QVvakBvbybI+bLrEu IezpSaCMIQg+Y+3uQDlZQwqizEHfR/KsgmNgdhqR4YBL2fTsnJ9RL+NoFU2MbecL4F +ziGgLNhu3HMsx4rD3p6Dwg8qHNOYmn0VBnkq0kAtms8a4N0QPWV7QvsFhyPyWhAd9 B9MXHLa+teQhQ2ACerLRHy2yNiV5j03/voL9uXcXmpYAQwKRRYIVD6EpkDR2h42Jow mPEMcIgaHT2ig== Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3d1b5f32065so78384b6e.2; Fri, 14 Jun 2024 03:18:19 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVmfWtRrrOLwLGl7syMmB8a+GYXuVlOrPAUmmdOK10KMvV23Uym+gI/ia+4MUYgyAlf2NZ6m4Y340x2knilNEUj2eeYQWsSxtfDecJv5rDEaJuMUI3HVz55qi3AFfy3Gb1u96INU/A= X-Gm-Message-State: AOJu0Yxx/p+YwtpIu88isjJFxFeoISp0OIsaU5SUmHQAc8tlDz+Av7Sd isIPC83rDWQKJX/Qcrc8/Hs9wi3wuxvL0OtGMGVWQj1x3UUoLD6BYDjQrcCbKAk/FAULo5yyPlh YMwCwwoq/fhWuI7mD7khXkQmQj/U= X-Received: by 2002:a4a:de45:0:b0:5ba:ca86:a025 with SMTP id 006d021491bc7-5bdad9f3f2dmr2229187eaf.0.1718360298223; Fri, 14 Jun 2024 03:18:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1051df4c-067f-455e-8c7f-9dc47dc8ed00@yahoo.de> <435867b5-029b-419f-bb7f-2d4902c62556@leemhuis.info> <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> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 14 Jun 2024 12:18:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Regression, thermal: core: battery reading wrong after wake from S3 [Was: Bug Report according to thermal_core.c] To: "fhortner@yahoo.de" Cc: "Rafael J. Wysocki" , Linux PM , Linux Kernel Mailing List , Linux regressions mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 10:04=E2=80=AFPM 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 =3D -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 =3D 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!