Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1545616pxf; Fri, 19 Mar 2021 09:25:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCDea4A/VwnkALRTz8BmznUdDpHi8JXrPFagkLx99XmQzbUYQVxXYDBTwQI8KhhQRWVvJa X-Received: by 2002:aa7:dc49:: with SMTP id g9mr10303317edu.60.1616171121053; Fri, 19 Mar 2021 09:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616171121; cv=none; d=google.com; s=arc-20160816; b=AqIB15mBz13gSmkljY19TxPtSNORIT5qdu92CBwIJh44n18gevkpxKKd4fLzmGLH61 9J+ait9aMOEgn5I1uQERKA6ErDACEKsXLdUbxWsiLeS+AuMyuIEvsF4oyK++OYUp3EvS SvNP89+qKMq7D5xmCFYHKQYCz3LULnRIzjd4K2y6i5Zz2w40i1ZJoMVJIddpANTS4F05 pia080LFqp5xMJA4sJW8xsLsxAptvKx1mcTGB9tyXOb8LqaB3r9ZeUMnNXSeue0Nvuk4 Vr9g+3OZCJxSQszG0WZh+sFJ9yiq0lpgX8z59T5iUdZzlyOtUsVmERG4ZFRjitqhOaqI gfjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Xz8TPdVB4EDtcxBy3GtWMpWf4qC96vtgCeVPrtt93cQ=; b=PX/pG05bd0EbrFzKShnDSGP0BTGt0zvmCeRJVq2xNHesQkZn+eJjZuzgr0ztLp0/lq VkbKvc8cRAtKzCUSwwBfEQwPh5mlN9RLoTF9MI4asT4nyYbsAXcePJErVTcq82ZU/bGT K/1mbBNj8QG2fCooNtjnAnlJ5UURUumBvx20/r0djPQ5KoxgRt+ZkxCFmivvvz/bR6os PofuneD3iMVPCMUyZEbp9Kp70AMP+s078GZde+de4pu6o7beupxZ5L7VQuxa6jaT+K4j ndyibTkXL7uTZWKF/ApBxRfC1LMGH2tdsf3vXFk01syKH8pqiJaxBp34ge1KjOeRqs6Z XAZQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 40si4417462edq.26.2021.03.19.09.24.58; Fri, 19 Mar 2021 09:25:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbhCSQYC (ORCPT + 99 others); Fri, 19 Mar 2021 12:24:02 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:52658 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbhCSQXe (ORCPT ); Fri, 19 Mar 2021 12:23:34 -0400 Received: from mail-lf1-f70.google.com ([209.85.167.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lNHuP-0004tH-2A for linux-kernel@vger.kernel.org; Fri, 19 Mar 2021 16:23:33 +0000 Received: by mail-lf1-f70.google.com with SMTP id b1so14766801lft.11 for ; Fri, 19 Mar 2021 09:23:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xz8TPdVB4EDtcxBy3GtWMpWf4qC96vtgCeVPrtt93cQ=; b=henKctoWgHXD0SKw81Veyl1HvEBSTQntVToyyZDAdfZamaUC4zxhZ760rwKY7Z1uZu N1yV10eTXjdSyB7Hr2qcZkpipoK2XoBLQsf1DIe69Gh6fZpSbfMRaessRSRM+axCFwF5 iSsaMTftH0oB7xK/+nnQCx45tLIYqdN5ezsfGeIsJIW4WwoffRpn4NYNd8YncRJmIsd1 8r8f+KzOKz12c3TNQ7vYCiUmdpFhpX0zqNQttbWDAl+l1WXjg1/q0o+kloaiN2ldagL2 EfsKlEjZpt745pWIpM1YNGPMBfJw7y33rNjepcYdWS6AdNekzGirEi7BBTjzjeKc7wDW Di1A== X-Gm-Message-State: AOAM532e7z+OQqIZrj26bT6H4Zm39jj0zLGcoVr1HzSr6sEFGWgEcmyd /tuvjeh6WVSz550AaKYiQjjNK0rtbS33rM+rw3oxKqloLO1aMiMgr9l1SCZk3n+39hNmQ/sKGTi uKt7yunDF15X5HMugCZ5gmwmnAVRJTClNa/5r4eYGEIOYjJWfCSRKQn+IKw== X-Received: by 2002:a2e:5753:: with SMTP id r19mr1407874ljd.126.1616171012549; Fri, 19 Mar 2021 09:23:32 -0700 (PDT) X-Received: by 2002:a2e:5753:: with SMTP id r19mr1407861ljd.126.1616171012302; Fri, 19 Mar 2021 09:23:32 -0700 (PDT) MIME-Version: 1.0 References: <78dfcd55-442d-dcc0-c37f-5576f65f91b5@toxicpanda.com> <0cd8b39e-3feb-87b8-e172-70b07692b82a@toxicpanda.com> In-Reply-To: <0cd8b39e-3feb-87b8-e172-70b07692b82a@toxicpanda.com> From: Kai-Heng Feng Date: Sat, 20 Mar 2021 00:23:20 +0800 Message-ID: Subject: Re: [PATCH][RESEND] Revert "PM: ACPI: reboot: Use S5 for reboot" To: Josef Bacik Cc: LKML , "Rafael J. Wysocki" , "kernel-team@fb.com" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2021 at 3:02 AM Josef Bacik wrote: > > On 3/18/21 1:42 AM, Kai-Heng Feng wrote: > > On Thu, Mar 18, 2021 at 1:25 AM Josef Bacik wrote: > > [snipped] > >> "shutdown now" works fine with and without your patch. Thanks, > > > > Rafael, > > Please revert the patch while we are working on it. > > > > Josef, > > Can you please test the following patch: > > > > That made it work fine. Thanks, So there are things depend on reboot or shutdown to carry out different behaviors. Can you please find whether there is any code path uses SYSTEM_RESTART or SYSTEM_POWER_OFF that leads to different behavior? Most likely happen in a driver's .shutdown callback. Kai-Heng > > Josef