Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2402299pxb; Sun, 24 Jan 2021 05:52:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQcejG0hI6VveTBQ7D0uBbtvbs12XlF23TK68HXL34VefxrKtHj/Koc3ZJek4KpffaIpQp X-Received: by 2002:a17:906:ecb3:: with SMTP id qh19mr1421014ejb.113.1611496363406; Sun, 24 Jan 2021 05:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611496363; cv=none; d=google.com; s=arc-20160816; b=qlwocUB5dfes//4WNywzSIr+G289iUrUw0V7ZGVxw2DKBwaddfr3rsFZZF3sHqfSyM wXpYO3rgombCXmYiG6VU4/wdQobdpO5jSyJWm72/jiMmzGQBwRBmpRtcafJrYUAR/lQd T875Po5XOxo2JRoR2WdfSBSh6pN7DjOlQl5lF7C3UhwbP/Bb2n42A/jWIV/kdKe/si58 jKJZ0keH1HjUhGbulR0ZNRkGKlIWD7yohykqdE6H5cqTz9TEV8vlcdh08UuJB+PV2uop GSFwYUuM3J8gtOLQb98Zb84vHJMJCFv1peS4xxi4Lh7EqcInu+tejm9aFmYLS1eEdr67 n6qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=AHNYfBL8DctGCiwBdSCPXW+3Ev5Tcx42Qggq/oBu/JM=; b=ZnkoWl1W2CmG08WRrESKI0bmmfBmcTFFxmAZh0cvAn+4uhf7VM18gck5v1OgND2d4c TSlXIoMzD1FDyRcEy0Aawhd6Fsbw03FlxHUzIH2U8xXi3R8TnYipVKa5j9tGME7o7GSm wgDGwjvAJkHGRfsYpCK/NYZjLAO1s0QjFizMQFhW2OETWDGP863QuWaUz7112VPWchCG fIS4BAZCY8nD3zDdSolPkhUPzbdrztjjmKEZmJrXS9FPgmie/rlgGJtTH6POrz/7OjO9 Wcwwbc5RKrp2uU3bczcq22xB81urFjIBAXmh/ufh3rqGC4OeDX2WPBqaClhBtMPLk+BX py0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=LbZwrivi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i25si6517646edj.162.2021.01.24.05.52.20; Sun, 24 Jan 2021 05:52:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=LbZwrivi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725864AbhAXNvN (ORCPT + 99 others); Sun, 24 Jan 2021 08:51:13 -0500 Received: from mout.gmx.net ([212.227.15.18]:48353 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbhAXNvM (ORCPT ); Sun, 24 Jan 2021 08:51:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1611496145; bh=6t7p+ubzc5ExiKD2mjKWy9T6CP2oz+YI1Q65Xx9AiE0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=LbZwrivibf2XpxS9H0Qj1EWuLOchFXHID1nPVmnCZwd8HKpBIOQRX7c/2JKFe4c8c ToQb6yYqhlLuDnjqyCK9IIGbAV18Ue63X2EQl7w+D4jGOM4GxCIY25NF4Cl63a+KP9 V04Q3gC5Sl3ileqvsmgBBQeuLk9l4cR+kZVkaYFY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.215.244]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N3se2-1m3Io537r6-00zldX; Sun, 24 Jan 2021 14:49:05 +0100 From: Stephen Berman To: "Rafael J. Wysocki" Cc: Sebastian Andrzej Siewior , Zhang Rui , Robert Moore , Erik Kaneda , Len Brown , Thomas Gleixner , Peter Zijlstra , Linux Kernel Mailing List , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , "Rafael J. Wysocki" Subject: Re: power-off delay/hang due to commit 6d25be57 (mainline) References: <87blkbx1gt.fsf@gmx.net> <9709109.MH8tSaV5v9@kreacher> <87eej0iuf0.fsf@gmx.net> Date: Sun, 24 Jan 2021 14:49:03 +0100 In-Reply-To: <87eej0iuf0.fsf@gmx.net> (Stephen Berman's message of "Mon, 04 Jan 2021 16:38:43 +0100") Message-ID: <87wnw278ds.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:HsDFDuOCrFpRPPB3FO8bsMlhjSF8RI1vpxKBCbQVRxaDTdJgnIe aUCmUJZC220eCjuCXd6UdqNjohxt8HEgEcQwZKLoDiyhupDvf5a8QTkRUj3pM6zo7F2VIYf q+hDfmjNXm4lo1mPFSoQ0G/1hzx8hxbuuIRJlbT78My2rfn/EDJR+q/PJzLUWFVwARKaVEx mLxjbsHZMhnwikI1RhzxA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:O4rYxoG+tuA=:0JeGgwsbdOi6LrpMd+rXHR oTpKK68bQ9snN2UBSBRh7oR91AV7If+XuNCJWMSLwZp1gPq1phdN73Vi17x0tegPK0iF/QvpJ Ov66YVqBreWz9vk22HhD/g57Yx6123yqsDtWOJ/uG21PKf9Q3Fwc95/AxyOBlVer6XJzB6XUn 7KhWx6/ewk5G2Ok7XL4q5WZpODg7HREHabs7V8KpuVDKONaYUOaPuF7zEW4iQvK9PD/3H4BZ6 SFSIwwRifMFMHGF7zEiVkXHbN7LL4uqBYxPltZjPtYKk6WfCl4iuOlz9rKLKdHpn2iNMyqJNt q2hB3chXgh0W5y1tDu6MM+2Yo2M8GLl8LIYJ/2TNwwoDRrDwNm8JjJdxGroDy+SlEbPmvnWf6 +t3BsaU9FmTUK/+YwNu1N7sosGpW7JUQkk/b6fGxyWmbR+yjBKS8sxdT4lJYCawuzrJ3D14zR MIlP9h5z6kln5v0rd6FC0H634k8GfXDuhrQE7jHsg43EZGKOVv55aO9Kd5fsy1OvJ6xnEI/9g Ok686Y+aKI4CMC8GLXhhaOoQw6n17imx9ZY1WxoMVOm7+LK8bxC6KHGy6+pe4UC+aJRnDA0Wu aoJ+IKYNb9f2apgGcPUxgSkAFYNxZrtfkHP58dWTVI6+ej4BwvNKLIyQ8w91ij43qPJV7IoBT +ynF1DxhDBi7ueAQGdFt6loNES0jB202IbZaDxX74X8Et/bMpcjO3/RaK+JgreCH0w0gp7ydR AfWkxDpzXYW8oA3ksTnJdWUfKHGclyv2aBEHgeO4y7+gWS5EqV/bXUL6DUZMoEIqaRhW7NslS YqUKL8+IyqWiiIz4ubu7JXj8/w8ygBqiBwQWXn1ua0POM7gqdFaEM2cjBgodvCAfCwG8OsgAt BcXkMDGQIzO3KtVYIMaQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 04 Jan 2021 16:38:43 +0100 Stephen Berman wrote: > On Thu, 31 Dec 2020 21:46:11 +0100 "Rafael J. Wysocki" wrote: > >> ATM, I'm tempted to do something like the patch below (with the rationale >> that it shouldn't be necessary to read the temperature right after updating >> the trip points if polling is in use, because the next update through polling >> will cause it to be read anyway and it will trigger trip point actions as >> needed). >> >> Stephen, can you give it a go, please? > > On Sat, 02 Jan 2021 12:03:17 +0100 "Rafael J. Wysocki" wrote: > >> There is one more way to address this, probably better: instead of checking the >> temperature right away in acpi_thermal_notify(), queue that on >> acpi_thermal_pm_queue >> and so only if another thermal check is not pending. >> >> This way there will be at most one temperature check coming from >> acpi_thermal_notify() queued up at any time which should prevent the >> build-up of work items from taking place. >> >> So something like this: > > Thanks for the patches. I'll try them as soon as I can. FTR, since this is the thread I started for this bug, I've confirmed in https://lore.kernel.org/lkml/87y2gi78sg.fsf@gmx.net/T/#t that the latest patch fixes the bug. Steve Berman