All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>,
	Jesse Barnes <jbarnes@virtuousgeek.org>,
	Dave Airlie <airlied@linux.ie>, Len Brown <lenb@kernel.org>,
	Jeff Chua <jeff.chua.linux@gmail.com>,
	ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: Occasional (too common) suspend problem
Date: Sat, 22 Jan 2011 20:17:40 +0100	[thread overview]
Message-ID: <201101222017.40389.rjw@sisk.pl> (raw)
In-Reply-To: <AANLkTikJVFEOgD_i+ghFupJksy2X_G1outhMmhPbP1Yd@mail.gmail.com>

On Saturday, January 22, 2011, Linus Torvalds wrote:
> On Sat, Jan 22, 2011 at 7:11 AM, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> >
> > Hmm. I can certainly believe in the "BIOS is confused" idea, but I
> > don't see where that gets us.
> 
> So, trying to get some more hints in what is going on, I started
> getting creative, and I have a few more clues, I think.
> 
> First off, I think I've already noted that I don't think I get lockups
> with the usual "echo mem > /sys/power/state". So I've mentioned that
> maybe it's something about the lid event messing things up.
> 
> However, I figured out that I _can_ trigger the lockup from the
> command line, by using "pm-suspend" instead. So while the normal
> (well, normal for me, since  it's the "real kernel interface", not
> normal in general) "echo mem" thing seems stable, it doesn't seem like
> it's the lid event per se that confuses anything, and it seems that
> it's just that the lid event uses "pm-suspend" which runs all those
> hacky scripts just before suspending.
> 
> I also _think_ (and this is where it gets a bit speculative, because
> my trials so far have been pretty limited) that I can work around the
> problem by doing that "echo mem" suspend once, and after that the
> "pm-suspend" approach works.
> 
> IOW, the whole "it fails the first time after boot" does seem to hold
> true, and there seems to be some initialization issue. But the
> initialization issue is apparently _triggered_ by the pm-suspend
> scripts.
> 
> Personally, I'm inclined to blame the crazy fbdev/video save/restore
> code, and I'm hereby adding some of the i915 people to the mix.
> Because one of the main things that the pm-suspend scripts do is
> things like
> 
>         local con
>         for con in /sys/class/graphics/*/state; do
>                 [ -f $con ] || continue
>                 echo 1 >"${con}"
>         done
> 
> etc. I disabled that particular part (all of "99video" in fedora, in
> fact), but there are other strange things going on there.
> 
> Of course, it could be all the NetworkManager stuff too, and some
> interaction with the network drivers. But the lockup happens with both
> wired and wireless connections, so I don't think that's it.
> 
> I wonder what else differs between pm-suspend and just the final "echo
> mem"? But I do wonder if some of the i915 code is getting confused by
> being touched both as fbcon and then with the "real" suspend code..

Hmm.  If there is s2ram on your system and it's actually being used, it's
better to disable it completely.  I'm not sure how you are supposed to do
that on Fedora, but for openSUSE it's sufficient to clear the "executable" bit
on /usr/sbin/s2ram.

Rafael

  parent reply	other threads:[~2011-01-22 19:18 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21  4:50 Occasional (too common) suspend problem Linus Torvalds
     [not found] ` <AANLkTi=LyufFJ-zqMWdGnSnZ-iW+ONbQ8mLfTn1O5WVi@mail.gmail.com>
2011-01-21  5:26   ` Lin Ming
2011-01-21  5:26   ` [linux-pm] " Lin Ming
2011-01-21 16:28     ` Linus Torvalds
2011-01-21 17:09       ` [linux-pm] " Jeff Chua
2011-01-21 17:09       ` Jeff Chua
2011-01-21 20:54       ` [linux-pm] " Rafael J. Wysocki
2011-01-21 20:54       ` Rafael J. Wysocki
2011-01-21  7:26 ` Zhang Rui
2011-01-21  7:26 ` Zhang Rui
2011-01-21 21:00 ` Len Brown
2011-01-21 21:00 ` Len Brown
2011-01-21 21:08   ` Rafael J. Wysocki
2011-01-21 21:08   ` Rafael J. Wysocki
2011-01-21 22:25   ` Len Brown
2011-01-21 22:25   ` Len Brown
2011-01-21 22:33     ` Linus Torvalds
2011-01-21 22:42       ` Rafael J. Wysocki
2011-01-21 22:42       ` Rafael J. Wysocki
2011-01-21 22:55         ` Linus Torvalds
2011-01-21 23:16           ` Rafael J. Wysocki
2011-01-21 23:16           ` Rafael J. Wysocki
2011-01-21 23:28             ` [linux-pm] " Rafael J. Wysocki
2011-01-21 23:28             ` Rafael J. Wysocki
2011-01-22  0:23             ` Linus Torvalds
2011-01-22  0:23             ` Linus Torvalds
2011-01-22  0:31               ` Rafael J. Wysocki
2011-01-22  0:31               ` Rafael J. Wysocki
2011-01-22  0:56                 ` Linus Torvalds
2011-01-22  0:56                 ` Linus Torvalds
2011-01-22  1:14               ` Linus Torvalds
2011-01-22  1:14               ` Linus Torvalds
2011-01-22 10:10                 ` Rafael J. Wysocki
2011-01-22 15:11                   ` Linus Torvalds
2011-01-22 16:27                     ` Linus Torvalds
2011-01-22 16:27                     ` Linus Torvalds
2011-01-22 17:13                       ` Jeff Chua
2011-01-22 17:13                       ` Jeff Chua
2011-01-22 18:22                         ` Linus Torvalds
2011-01-22 18:22                         ` Linus Torvalds
2011-01-22 19:17                       ` Rafael J. Wysocki
2011-01-22 19:17                       ` Rafael J. Wysocki [this message]
2011-01-22 19:42                         ` Linus Torvalds
2011-01-23 21:29                           ` Rafael J. Wysocki
2011-01-23 21:29                           ` Rafael J. Wysocki
2011-01-23 21:47                             ` Rafael J. Wysocki
2011-01-23 21:47                             ` [linux-pm] " Rafael J. Wysocki
2011-01-24  7:22                             ` Linus Torvalds
2011-01-24  7:22                             ` Linus Torvalds
2011-01-24  8:09                               ` Zhang Rui
2011-01-24  9:43                                 ` Linus Torvalds
2011-01-24  9:43                                 ` Linus Torvalds
2011-01-24  8:09                               ` Zhang Rui
2011-01-22 19:42                         ` Linus Torvalds
2011-01-23  1:02                       ` Dave Airlie
2011-01-23  1:02                       ` Dave Airlie
2011-01-22 15:11                   ` Linus Torvalds
2011-01-22 10:10                 ` Rafael J. Wysocki
2011-01-21 22:55         ` Linus Torvalds
2011-01-21 22:33     ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
2011-01-21  4:50 Linus Torvalds

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=201101222017.40389.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=airlied@linux.ie \
    --cc=chris@chris-wilson.co.uk \
    --cc=jbarnes@virtuousgeek.org \
    --cc=jeff.chua.linux@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=torvalds@linux-foundation.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.