All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 106447] System freeze after resuming from suspend (amdgpu)
Date: Fri, 11 May 2018 15:14:25 +0000	[thread overview]
Message-ID: <bug-106447-502-OIa75TgeVf@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-106447-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 1395 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=106447

--- Comment #15 from Thomas Martitz <kugel@rockbox.org> ---
I investigated the commit found by git bisect a bit more, and found that the
following patch (which reverts part of said commit) repairs resuming.

I can't tell the consequences, however reading the commit message suggests this
part is non-critical:

> While at it, make the core check pm_runtime_suspended() when
> setting power.direct_complete so that it doesn't need to be
> checked by ->prepare callbacks.

diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 02a497e7c785..028c14386e5d 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -1959,9 +1959,7 @@ static int device_prepare(struct device *dev,
pm_message_t state)
         * applies to suspend transitions, however.
         */
        spin_lock_irq(&dev->power.lock);
-       dev->power.direct_complete = state.event == PM_EVENT_SUSPEND &&
-               pm_runtime_suspended(dev) && ret > 0 &&
-               !dev_pm_test_driver_flags(dev, DPM_FLAG_NEVER_SKIP);
+       dev->power.direct_complete = ret > 0 && state.event ==
PM_EVENT_SUSPEND;
        spin_unlock_irq(&dev->power.lock);
        return 0;
 }

So, what to do with this information / potential fix?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2295 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2018-05-11 15:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-09  6:04 [Bug 106447] System freeze after resuming from suspend (amdgpu) bugzilla-daemon
2018-05-09  7:44 ` bugzilla-daemon
2018-05-09 11:55 ` bugzilla-daemon
2018-05-09 13:48 ` bugzilla-daemon
2018-05-09 15:23 ` bugzilla-daemon
2018-05-09 15:25 ` bugzilla-daemon
2018-05-09 15:26 ` bugzilla-daemon
2018-05-09 21:13 ` bugzilla-daemon
2018-05-09 21:13 ` bugzilla-daemon
2018-05-09 21:15 ` bugzilla-daemon
2018-05-11  7:54 ` bugzilla-daemon
2018-05-11  9:33 ` bugzilla-daemon
2018-05-11 10:15 ` bugzilla-daemon
2018-05-11 10:26 ` bugzilla-daemon
2018-05-11 13:56 ` bugzilla-daemon
2018-05-11 15:14 ` bugzilla-daemon [this message]
2018-05-11 15:18 ` bugzilla-daemon
2018-05-11 15:24 ` bugzilla-daemon
2019-07-15 19:00 ` bugzilla-daemon
2019-11-19  8:38 ` bugzilla-daemon

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=bug-106447-502-OIa75TgeVf@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.