Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1548818iog; Thu, 16 Jun 2022 08:34:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vdy4ZVDmGJysJwPBM8yZGm5JPzjxI6JFtzk3zrBOHkTz97mUcRZ2f2dpEI4aVxO6ScYpT2 X-Received: by 2002:a17:907:1c07:b0:711:c966:f02e with SMTP id nc7-20020a1709071c0700b00711c966f02emr5099325ejc.221.1655393694427; Thu, 16 Jun 2022 08:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655393694; cv=none; d=google.com; s=arc-20160816; b=rK/4KUU/mjhziHZwZPBJqMIx2lzu8/qNNJ02T9WXrOViAJ86DhCkr8qTJ/9ZiBKwLF k4UREOdF5Vrbp7RETSnHP4hJD9jY6cF7Q3ZqTo+Rh4mZuvDlGJyIpH4UtC9C0xlULU9O vZD7lutJPbaqQ9snrDa1s2WJdwD09KOUbbyFzKEnuuogCmx/7yuZQfuFb40dNSJ9L2Vj tqxGbcx9GgERbVbkt9CfppB1DQ0VHsj5I7IoXRPvCGbYcdkW7ijAcs7u+sPAyqAarA8S tI6izWIjV24rrDpnIyMn2BnZiQFstZgtlZlMdYE8hLogflgaoQx4A2DXm0Y6A/Tb2qxV JpdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3O/8kduG2yvRDWHXxKO39RHMacVsXTPf1FTBb0kTGWE=; b=t8TacbSOFYGMaunlg/WFuQpmoTU3fcBw9BQkhTYcsXOCLbS75t+BPYZZm5UKxMeqdB BRp4WT/U5Jov5SaJfGqZPmvcegO3cV6Io79XInjG4UNq22AlTnZU9A4j1x/VymtHOiN/ K08cLDVtZOWzlDFSMKwmFxQjqKNjBKP1PjKhRiJi6nVlvaYuxoinjfKTr71m/XoU+ETa tz7LmQm/dvx3f0YtiV0oT5iHejJn5Kp4qhNyD4lKw2AvL2wVtZxdl6VKzGhk3mQpLg6a 1FFzJpkiRT2gZxBJGBrfzwiA+XA58GsNk+somiF79Fp9vuKl8lXWNyFeAbn/FOQIPa+I HccA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=D1dR5eTF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go33-20020a1709070da100b007101a8a5b89si2228235ejc.943.2022.06.16.08.34.10; Thu, 16 Jun 2022 08:34:54 -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=@collabora.com header.s=mail header.b=D1dR5eTF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236051AbiFPO7S (ORCPT + 99 others); Thu, 16 Jun 2022 10:59:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233481AbiFPO7Q (ORCPT ); Thu, 16 Jun 2022 10:59:16 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE9A28705; Thu, 16 Jun 2022 07:59:15 -0700 (PDT) Received: from [192.168.2.145] (109-252-136-92.dynamic.spd-mgts.ru [109.252.136.92]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 193A06601776; Thu, 16 Jun 2022 15:59:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655391553; bh=480bxtXiQTLxL9SJFuz2MLO035X+tYFjlvxNEbvX1vQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=D1dR5eTFuepMuh2aUkqS4+tbq4xK9g2XhmVfvl08dCsjqbS1klllGMoPH56M4ThGF QUmRWxqt7Q32NaXKfImOc3m2WpgC32QpI9j18CdzMAwbzfLJOykTSPMuafKg1wfDTi oP/DO+a+qqzQ5U16dtaJ3pp31b/PjcPMz3Spu6LNF+H1UxyZU18mfvA5am8NAjZ542 LGrpVOSinA1tZN8mm0jvNQDK0yRi9PRa5WVZqaQBrnw6DQjlERNNuzEuJXlgWOtDPE 890Eq0OlS/b0+5VYJhEJe4LzibSR16jA26hQjWfYt/H5+2oUhNcmWRahHwJPW18VEw VgqU3QaAbJHfg== Message-ID: <65fbe95b-241a-c5c5-4eca-d6932e0fd59d@collabora.com> Date: Thu, 16 Jun 2022 17:59:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: regression, 5.19.0-rc1 not powering off when hibernated Content-Language: en-US To: Ken Moffat , Thorsten Leemhuis Cc: linux-kernel@vger.kernel.org, "regressions@lists.linux.dev" , Linux PM , Pavel Machek , "Rafael J. Wysocki" References: <84d01637-febb-f602-2d03-fe1600e85ae3@leemhuis.info> From: Dmitry Osipenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,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 Hi, On 6/15/22 22:52, Ken Moffat wrote: > On Wed, Jun 15, 2022 at 05:40:46PM +0100, Ken Moffat wrote: >> On Mon, Jun 13, 2022 at 08:46:22PM +0100, Ken Moffat wrote: >> >>>>>> But with 5.19.0-rc1 the screen is blank throughtout the hibernation, >>>>>> and briefly when restoring (no complaint about that), but when >>>>>> hibernating it no longer powers off and I have to hold the on/off >>>>>> switch to power off. >>>>>> >>>>>> Is this a known problem ? >>>>> > [...] >> Indeed, on the second attempt I've got a much more likely commit to >> blame: >> >> 98f30d0ecf79da8cf17a171fa4cf6eda7ba4dd71 is the first bad commit >> commit 98f30d0ecf79da8cf17a171fa4cf6eda7ba4dd71 >> Author: Dmitry Osipenko >> Date: Tue May 10 02:32:30 2022 +0300 >> >> ACPI: power: Switch to sys-off handler API >> >> Switch to sys-off API that replaces legacy pm_power_off callbacks, >> allowing us to remove global pm_* variables and support chaining of >> all restart and power-off modes consistently. >> >> Signed-off-by: Dmitry Osipenko >> Signed-off-by: Rafael J. Wysocki >> >> Unsurprisingly, with this reverted 5.19-rc2 fails to build. >> > It occurs to me that maybe I'm missing something in my .config. > Since that is 117K, here is the gzipped config from the version that > git blamed (apart from not powering off, it appears to work ok). The patch below likely should fix the problem, please give it a try on top of the 5.19-rc2. diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index 20a66bf9f465..89c71fce225d 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -665,7 +665,7 @@ static void power_down(void) hibernation_platform_enter(); fallthrough; case HIBERNATION_SHUTDOWN: - if (pm_power_off) + if (kernel_can_power_off()) kernel_power_off(); break; }