linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Chris Murphy <chris@colorremedies.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Linux PM <linux-pm@vger.kernel.org>
Subject: Re: 5.7 sleep/wake regression
Date: Thu, 14 May 2020 10:19:15 -0600	[thread overview]
Message-ID: <aee1f1df-39c2-0b3c-a3cb-fab648cc3f3a@kernel.dk> (raw)
In-Reply-To: <CAJCQCtTMWGwiH5ztmV+w3PHhQdr8XO_909Jqf-nCiNc6sJURDg@mail.gmail.com>

On 5/14/20 10:02 AM, Chris Murphy wrote:
> On Wed, May 13, 2020 at 8:09 AM Jens Axboe <axboe@kernel.dk> wrote:
>>
>> On 5/13/20 12:11 AM, Chris Murphy wrote:
>>> On Tue, May 12, 2020 at 6:57 AM Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
>>>>
>>>> On Monday, May 11, 2020 7:37:04 PM CEST Chris Murphy wrote:
>>>>> On Mon, May 11, 2020 at 5:15 AM Rafael J. Wysocki <rafael@kernel.org> wrote:
>>>>>>
>>>>>> On Mon, May 11, 2020 at 6:22 AM Chris Murphy <chris@colorremedies.com> wrote:
>>>>>>>
>>>>>>> Got an older Macbook Pro that does suspend to RAM and wake OK with
>>>>>>> 5.6, but starting with git 47acac8cae28, it will not wake up. Instead
>>>>>>> it has a black screen, gets hot, fans go to high, and it turns into a
>>>>>>> hair dryer. So it's a regression.
>>>>>>
>>>>>> There is a known issue addressed by this patch:
>>>>>>
>>>>>> https://patchwork.kernel.org/patch/11538065/
>>>>>>
>>>>>> so can you please try it?
>>>>>
>>>>> Patch applied, but the problem remains.
>>>>>
>>>>> CPU is i7-2820QM and dmesg for the working sleep+wake case:
>>>>> https://paste.centos.org/view/ea5b913d
>>>>>
>>>>> In the failed wake case, I note the following: the fade-in/out sleep
>>>>> indicator light on the laptop is pulsing, suggests it did actually
>>>>> enter sleep OK. When waking by spacebar press, this sleep indicator
>>>>> light stops pulsing, the backlight does not come on, the laptop does
>>>>> not respond to either ssh or ping. Following  a power reset and
>>>>> reboot, the journal's last line is
>>>>>
>>>>> [   61.678347] fmac.local kernel: PM: suspend entry (deep)
>>>>>
>>>>> Let me know if I should resume bisect.
>>>>
>>>> Please first try to revert commit
>>>>
>>>> 6d232b29cfce ("ACPICA: Dispatcher: always generate buffer
>>>> objects for ASL create_field() operator")
>>>
>>> Still fails. Bisect says
>>>
>>> $ git bisect good
>>> b41e98524e424d104aa7851d54fd65820759875a is the first bad commit
>>> commit b41e98524e424d104aa7851d54fd65820759875a
>>> Author: Jens Axboe <axboe@kernel.dk>
>>> Date:   Mon Feb 17 09:52:41 2020 -0700
>>>
>>>     io_uring: add per-task callback handler
>>
>> Yeah, it's definitely not that...
>>
>>> I'm not that great at git bisect so I'm not sure how to narrow it
>>> down; offhand that doesn't seem a likely culprit.
>>
>> How reliable is the test you use to deem a given commit good or
>> bad? It sucks in terms of time, but it may be useful to re-run
>> the bisection and ensure that you don't ever have false positives.
> 
> 100%. This laptop never fails to wake from S3. Dozens of sleep/wake
> cycles on 5.6, 5.5, going way back. It's 100% fail on all 5.7 rc's.

Reason I ask is unless you're active using io_uring, then there's way
that the io_uring commit is implicated in this particular issue.  And
that would lead me to believe that perhaps there's some false positives
here, where you sometimes resume fine with the broken commit there. This
would skew your bisection results, and ultimately result in a bogus
result.

Hence my suggestion would be to redo the bisection, and perhaps do more
suspend+wake cycles on each commit to be sure that you're definitely
going to flag the offending commit every time.

-- 
Jens Axboe


      reply	other threads:[~2020-05-14 16:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11  4:22 5.7 sleep/wake regression Chris Murphy
2020-05-11 11:15 ` Rafael J. Wysocki
2020-05-11 17:37   ` Chris Murphy
2020-05-12 12:57     ` Rafael J. Wysocki
2020-05-13  6:11       ` Chris Murphy
2020-05-13 14:04         ` Rafael J. Wysocki
2020-05-14  5:54           ` Chris Murphy
2020-05-14 10:01             ` Rafael J. Wysocki
2020-05-13 14:09         ` Jens Axboe
2020-05-14 16:02           ` Chris Murphy
2020-05-14 16:19             ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aee1f1df-39c2-0b3c-a3cb-fab648cc3f3a@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=chris@colorremedies.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).