All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: [Bug 99482] nouveau driver returns -16 trying to hibernate
Date: Sat, 27 May 2017 18:04:47 +0000	[thread overview]
Message-ID: <bug-99482-8800-bbzORPB14E@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-99482-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>


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

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

--- Comment #1 from dr_bugzilla-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org ---
I confirm this bug on Xubuntu 16.04 Xenial, when using a new mainline kernel
from PPA (4.11.3-041103-generic) rather than the stock kernel. My laptop has
hybrid Intel/Nvidia graphics. Any attempts to hibernate (in my case, using
uswsusp's s2disk) fail, with control being returned to the GUI. In the kernel
log, I see the same messages as Brian does, specifically:

May 25 17:18:13 *** kernel: [ 3356.651761] nouveau 0000:01:00.0: DRM: evicting
buffers...
May 25 17:18:13 *** kernel: [ 3356.651765] nouveau 0000:01:00.0: DRM: waiting
for kernel channels to go idle...
May 25 17:18:13 *** kernel: [ 3371.651076] nouveau 0000:01:00.0: DRM: failed to
idle channel 0 [DRM]
May 25 17:18:13 *** kernel: [ 3371.651132] pci_pm_freeze():
nouveau_pmops_freeze+0x0/0x20 [nouveau] returns -16
May 25 17:18:13 *** kernel: [ 3371.651134] dpm_run_callback():
pci_pm_freeze+0x0/0xf0 returns -16
May 25 17:18:13 *** kernel: [ 3371.651136] PM: Device 0000:01:00.0 failed to
freeze async: error -16

With the older stock kernel (4.4.0-78-generic), I think that the underlying
cause of this bug was having an effect, even though I did not see these kernel
messages. I say this because hibernation with the older kernel would fail about
25% of the time, hanging the system completely (hard power-off required, all
work was lost). I believe now that this would happen because the kernel was not
able to idle nouveau but just continued the attempt to hibernate anyway. 
Also, even when hibernate succeeded, my laptop would not actually power off
when writing 'platform' to /sys/power/disk; I would either have to hold the
power button down or set /sys/power/disk to 'shutdown' instead. Again, I think
this was happening because nouveau was not being properly idled.

When I blacklist nouveau and use only Intel graphics (i915), hibernation always
works (including powering off the laptop automatically).

My nouveau is stock Xenial (version 1.0.12-1build2 of package
xserver-xorg-video-nouveau).

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

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

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

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2017-05-27 18:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-21 15:31 [Bug 99482] New: nouveau driver returns -16 trying to hibernate bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-99482-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2017-05-27 18:04   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ [this message]
2017-05-27 18:34   ` [Bug 99482] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2019-12-04  9:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

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-99482-8800-bbzORPB14E@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon-cc+yj3umiyqdupfqwhejaq@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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.