Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp31801pxf; Wed, 17 Mar 2021 14:30:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0KZd1/BOryWksy8JeGzUJpTgnmWqrHF4xqb0KJHv7/3x3ymg34r+4YHsdoquinxq8E7Il X-Received: by 2002:a17:907:629e:: with SMTP id nd30mr27405816ejc.407.1616016624230; Wed, 17 Mar 2021 14:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616016624; cv=none; d=google.com; s=arc-20160816; b=DnCaSX/HhSCL/nMRE72AkMjDwXk7bVFCS9H85/JheImNqZkMOyzglFFTZ2cnLQVyiz dgVCvp0vs2dkBNv5d1ghHC0U2nOAgPRCM9l+C6idF1Zn/uqG7Ikh4uOu7oXxQsIHEySJ tb66DcBdo9P6e9VpiafCufiWUnHc2jsrlUvqILTNxdE3y0XDFylTh3jEUB/9oo9tbIqe wFsh6j2otbSyhAHQkYIHVjZvoGI2PRTvX2QC7+59vqJ/SAJGZDO/XlHSSnFfZDkr2R7D HG0X6gKIjt3DcGWfL7jilFLpweUjXpH36pf94A2sRylWomBE4xRYbRHkppgg0YHe5Q5n 5X9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=BMh1FxvLp/X4e3iQXeMsg0+HSIoOFiGMsXX3U/LrG1Y=; b=M83p5kpiSZqlypUJ2nMieW7/Sg/Slt0MeG8Z80hPHRgdAnRcrfXg68R8Uk1t9I4NT5 7/PB0M7mLkP1ehNdfK/02ECnaJrnm9dDAQ7CqLc/BuCsVudqJw7s++gYrJ5NrtERrEls LuRUYLB6hzJGB8fORq0aFzElWtYn6GZGzDZRcqTesM/todbQ4nq4dzjRNsGyohOKh1DG smnYs2t6n3D5u4fq0IYN4Rd7jTawxkKDfaGcc3t8TaAo2N7+l27h6GiD+nSLF4yasucS QbYsgz8efKsVMna8M5emZNIVjV+cKD2J9WsoufbBcq+GPvqN/elMmiB2O45Dyap+mMss 6PRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=n4YrMY2n; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w25si49488ejv.100.2021.03.17.14.30.01; Wed, 17 Mar 2021 14:30:24 -0700 (PDT) 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=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=n4YrMY2n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbhCQR0I (ORCPT + 99 others); Wed, 17 Mar 2021 13:26:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbhCQRZz (ORCPT ); Wed, 17 Mar 2021 13:25:55 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3608C06174A for ; Wed, 17 Mar 2021 10:25:54 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id 94so2033395qtc.0 for ; Wed, 17 Mar 2021 10:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BMh1FxvLp/X4e3iQXeMsg0+HSIoOFiGMsXX3U/LrG1Y=; b=n4YrMY2nWSxWprrPdOMEuVJV40WsnFkIjLvvxHHZAWUtgwo2NUDDkPSofC3LZyEF7y t+47Bp65zhYvvn9CJxGRRy2AdyZHd2+tmBZjtgX69ryxysEk2LJYPdZMbH3xne9EB46w edkMpwCkdpcIE2DkVHJWlIirmCZoo/VN6XdzsxRDSKvFtsb0ngCGqWIOi32195yMLyrd DiTOD/zNcNMUElzIMfHkDp4PEIkc7TI+eFUxVS3io7fKhS1BTUCG/OSkILgtZRJNa1aa xpHCWXnxwTZcDiD5yiEA5xNFQnfqwNXFTnI4RVjJIL+C3YNHS+yLdhkuP4gqyGNHmB7y 4PJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BMh1FxvLp/X4e3iQXeMsg0+HSIoOFiGMsXX3U/LrG1Y=; b=Q1cH2XGiu89+oibNEVyAR+aanTZG+LnUNAzOhE8jljDQsrUerrar58A6rwYZ6EDQ0D 9/Ucp1lqxM+OiQ/lbysXlGdiYCbMVNQlRnzwgt4tnMPLXIR5jsSt4Bxf7O0CqReHJoQl HhhfmRnWmlbICHgoOkbxjMU2/cx2jcQIdUza1FiU/4QfhaauedTaxH0TCtb3/83xlSub FzODk/34aoOqhPINLDHo8gOzXUCDrrjawj2gVQNQ69/rIMsBrnG/T538M3t4eGN133eT V3FZz0DhX8TbHfru3F0F8KEG0eF/eb3LiDjyaTQjeiHXDRrhg+HkF1TN46YFFjU/D3Oh dNrA== X-Gm-Message-State: AOAM531YqQiIaD1RSlXroBeYa5Gq6YVBejiSdNzb6xzeYCjaHHnZmvl2 xJdS/d7TFxRE6KreIaikM8XHDg== X-Received: by 2002:ac8:4c90:: with SMTP id j16mr70106qtv.223.1616001953435; Wed, 17 Mar 2021 10:25:53 -0700 (PDT) Received: from [192.168.1.45] (cpe-174-109-172-136.nc.res.rr.com. [174.109.172.136]) by smtp.gmail.com with ESMTPSA id e2sm15795759qto.50.2021.03.17.10.25.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Mar 2021 10:25:52 -0700 (PDT) Subject: Re: [PATCH][RESEND] Revert "PM: ACPI: reboot: Use S5 for reboot" To: Kai-Heng Feng Cc: LKML , "Rafael J. Wysocki" , "kernel-team@fb.com" References: From: Josef Bacik Message-ID: <78dfcd55-442d-dcc0-c37f-5576f65f91b5@toxicpanda.com> Date: Wed, 17 Mar 2021 13:25:51 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/21 12:14 PM, Kai-Heng Feng wrote: > On Wed, Mar 17, 2021 at 11:19 PM Josef Bacik wrote: >> >> On 3/16/21 10:50 PM, Kai-Heng Feng wrote: >>> Hi, >>> >>> On Wed, Mar 17, 2021 at 10:17 AM Josef Bacik wrote: >>>> >>>> This reverts commit d60cd06331a3566d3305b3c7b566e79edf4e2095. >>>> >>>> This patch causes a panic when rebooting my Dell Poweredge r440. I do >>>> not have the full panic log as it's lost at that stage of the reboot and >>>> I do not have a serial console. Reverting this patch makes my system >>>> able to reboot again. >>> >>> But this patch also helps many HP laptops, so maybe we should figure >>> out what's going on on Poweredge r440. >>> Does it also panic on shutdown? >>> >> >> Sure I'll test whatever to get it fixed, but I just wasted 3 days bisecting and >> lost a weekend of performance testing on btrfs because of this regression, so >> until you figure out how it broke it needs to be reverted so people don't have >> to figure out why reboot suddenly isn't working. > > That's unfortunate to hear. However, I've been spending tons of time > on bisecting kernels. To me it's just a normal part of kernel > development so I won't call it "wasted". > > Feel free to revert the patch though. > >> >> Running "halt" has the same effect with and without your patch, it gets to >> "system halted" and just sits there without powering off. Not entirely sure why >> that is, but there's no panic. > > What about shutdown? pm_power_off_prepare() is used by shutdown but > it's not used by halt. "shutdown now" works fine with and without your patch. Thanks, Josef