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: Wed, 09 May 2018 21:13:03 +0000	[thread overview]
Message-ID: <bug-106447-502-FYYRo9Il0i@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-106447-502@http.bugs.freedesktop.org/>


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

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

--- Comment #7 from Thomas Martitz <kugel@rockbox.org> ---
I did a bisect and git reported this as the culprit:

kugel@thomas-nb:linux.git$ git bisect good
08810a4119aaebf6318f209ec5dd9828e969cba4 is the first bad commit
commit 08810a4119aaebf6318f209ec5dd9828e969cba4
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date:   Wed Oct 25 14:12:29 2017 +0200

    PM / core: Add NEVER_SKIP and SMART_PREPARE driver flags

    The motivation for this change is to provide a way to work around
    a problem with the direct-complete mechanism used for avoiding
    system suspend/resume handling for devices in runtime suspend.

    The problem is that some middle layer code (the PCI bus type and
    the ACPI PM domain in particular) returns positive values from its
    system suspend ->prepare callbacks regardless of whether the driver's
    ->prepare returns a positive value or 0, which effectively prevents
    drivers from being able to control the direct-complete feature.
    Some drivers need that control, however, and the PCI bus type has
    grown its own flag to deal with this issue, but since it is not
    limited to PCI, it is better to address it by adding driver flags at
    the core level.

    To that end, add a driver_flags field to struct dev_pm_info for flags
    that can be set by device drivers at the probe time to inform the PM
    core and/or bus types, PM domains and so on on the capabilities and/or
    preferences of device drivers.  Also add two static inline helpers
    for setting that field and testing it against a given set of flags
    and make the driver core clear it automatically on driver remove
    and probe failures.

    Define and document two PM driver flags related to the direct-
    complete feature: NEVER_SKIP and SMART_PREPARE that can be used,
    respectively, to indicate to the PM core that the direct-complete
    mechanism should never be used for the device and to inform the
    middle layer code (bus types, PM domains etc) that it can only
    request the PM core to use the direct-complete mechanism for
    the device (by returning a positive value from its ->prepare
    callback) if it also has been requested by the driver.

    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.

    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Acked-by: Bjorn Helgaas <bhelgaas@google.com>
    Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>

:040000 040000 6f18a781ca7ee0501888a66532f0667f2926aeb1
440821a72777285dccc37d3a8254688bf4a24486 M      Documentation
:040000 040000 6aaceba7f5aae9368a1e6e287a1f56cb1326adbf
557c1672f5101aeae16ce6bda4969c42dd3321bb M      drivers
:040000 040000 bdc707f2a476baf517361c46ed28977cb30b6e1b
7c33fb89c953ad06a7b1c8b686d6b6a403aa509b M      include


(I haven't tried reverting just this on top of 4.16 yet).

Interestingly, this commit seems to also affect my wifi. I.e. the good commits
(from the susped pov) do not have working wifi, while bad commits have working
wifi.

I'll attach a dmesg output when running on the last good commit

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

[-- Attachment #1.2: Type: text/html, Size: 4536 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-09 21:13 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 [this message]
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
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-FYYRo9Il0i@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.