public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Ferenc Wagner <wferi@niif.hu>
Cc: linux-pm@lists.linux-foundation.org,
	Jesse Barnes <jbarnes@virtuousgeek.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	yakui.zhao@intel.com, LKML <linux-kernel@vger.kernel.org>,
	ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	Len Brown <lenb@kernel.org>
Subject: Re: [linux-pm] intermittent suspend problem again
Date: Wed, 11 Nov 2009 15:47:21 +0100	[thread overview]
Message-ID: <200911111547.21149.rjw@sisk.pl> (raw)
In-Reply-To: <87pr7pi40p.fsf@tac.ki.iif.hu>

On Wednesday 11 November 2009, Ferenc Wagner wrote:
> "Rafael J. Wysocki" <rjw@sisk.pl> writes:
> 
> > On Wednesday 11 November 2009, Ferenc Wagner wrote:
> >
> >> "Rafael J. Wysocki" <rjw@sisk.pl> writes:
> >> 
> >>> On Thursday 29 October 2009, Ferenc Wagner wrote:
> >>>
> >>>> "Rafael J. Wysocki" <rjw@sisk.pl> writes:
> >>>> 
> >>>>> On Wednesday 28 October 2009, Ferenc Wagner wrote:
> >>>>> 
> >>>>>> 2.6.32-rc5 feels particularly bad, with frequent failures to switch
> >>>>>> off the machine after "S|" or freezes after "Snapshotting system".
> >>>>>> The former does not cause much trouble in itself, as the machine can
> >>>>>> be switched off and resumed all right, but the latter is nasty.
> >>>>>> Suspend to RAM works all the time.  The issue is not reproducible,
> >>>>>> unfortunately, and the kernel change happened almost together with a
> >>>>>> BIOS upgrade.  Yesterday I switched back to 2.6.31 to see whether it
> >>>>>> still works stably with the new BIOS.  I'll report back my findings in
> >>>>>> a couple of days.
> >>>>>
> >>>>> OK, thanks.
> >>>>>
> >>>>> Still, I'm really afraid we won't be able to debug it any further without a
> >>>>> reproducible test case.
> >>>>
> >>>> Can't you perhaps suggest a way forward there?  Or some tricks to create a
> >>>> reproducible test case here?
> >>>
> >>> Well, you can test if the problem is reproducible in the "shutdown" mode of
> >>> hibernation.
> >> 
> >> Well, both failure modes happen with "shutdown" mode as well (the S|
> >> freeze with yesterday's git, too), but still not reproducibly.  When
> >> s2disk is stuck in "Snapshotting system", the system is not completely
> >> dead, it echoes line feeds and Ctrl-C at least (as added to #14504).
> >> 
> >> I wonder what you did if the issue was reproducible...  Is that totally
> >> unapplicable if the problem happens with 10% probability only?  Slow,
> >> sure, but until I manage to set up an automated testing bench...
> >
> > I would try to identify the commit that made the problem appear using git
> > bisection.  However, this is really difficult with problems that are not
> > reliably reproducible.
> 
> Indeed.  I'm thinking about setting up a script, which does nothing but
> hibernates the laptop in a loop, and get my router provide a constant
> stream of WOL packets to restart it.  If it always freezes in bounded
> time that will make bisecting possible, if slow.

Alternatively, you can use the RTC alarm to wake up the machine.

> > Failing that, I would add some instrumentation to the code to identify the
> > exact place where it hangs.
> 
> I managed to achieve this with my STR problem, see
> http://bugs.freedesktop.org/show_bug.cgi?id=22126#c17, but maybe that
> status = acpi_evaluate_object(NULL, METHOD_NAME__PTS, &arg_list, NULL);
> wasn't deep enough, as it got no followup.  How deep should one go to be
> useful?

No, this is deep enough and indicates a BIOS issue.

> I can probably do so again, if slower; but this case may also be easier
> if I can depend on working console output.  Which are the interesting
> parts for instrumentation?  Can those parts produce console output to
> VGA or netconsole?  Wouldn't switching on ACPI debugging before invoking
> s2disk be useful?  Which parts of it (to avoid it spitting out MBs of
> useless characters)?

I usually don't do that and if the issue is reproducible in the "shutdown"
mode, ACPI is most probably not involved.

> > BTW, did you carry out the /sys/power/pm_test "core" test on the box?
> 
> I'm not clear on how to do that with user space suspend.  Simply set it
> to "cores" before invoking s2disk?

Yes, echo "core" to /sys/power/pm_test before executing s2disk.

> I already did the test for STR (see
> http://bugs.freedesktop.org/show_bug.cgi?id=22126#c3), but will redo
> with the current kernel tonight.

OK, thanks.

Best,
Rafael

  reply	other threads:[~2009-11-11 14:46 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87fx93pwv2.fsf@tac.ki.iif.hu>
     [not found] ` <200910281956.44791.rjw@sisk.pl>
     [not found]   ` <87d447m52t.fsf@tac.ki.iif.hu>
2009-10-29 18:36     ` [linux-pm] intermittent suspend problem again Rafael J. Wysocki
2009-10-29 22:31       ` Ferenc Wagner
2009-10-30 18:18         ` Rafael J. Wysocki
2009-10-30 19:03           ` Ferenc Wagner
2009-10-30 20:38             ` Rafael J. Wysocki
2009-10-31 12:02               ` Alan Jenkins
2009-10-31 14:06                 ` Ferenc Wagner
2009-10-31 19:11                   ` Rafael J. Wysocki
2009-11-01 21:53                     ` Ferenc Wagner
2009-11-03 11:02                       ` Ferenc Wagner
2009-11-11 11:29       ` Ferenc Wagner
2009-11-11 11:38         ` Rafael J. Wysocki
2009-11-11 13:29           ` Ferenc Wagner
2009-11-11 14:47             ` Rafael J. Wysocki [this message]
2009-11-13 16:35               ` Ferenc Wagner
2009-11-13 19:59                 ` Rafael J. Wysocki
2009-11-14  1:50                   ` Ferenc Wagner
2009-11-14 18:52                     ` Rafael J. Wysocki
2009-11-18  1:12                       ` Ferenc Wagner
2009-11-18 14:05                       ` Ferenc Wagner
2009-11-18 22:13                         ` Rafael J. Wysocki
2009-11-18 22:54                           ` Ferenc Wagner
2009-11-19 12:00                           ` Ferenc Wagner
2009-11-19 13:02                             ` Ferenc Wagner
2009-11-19 19:42                               ` Rafael J. Wysocki
2009-11-21 23:59                           ` [linux-pm] " Ferenc Wagner
2009-11-28 19:01                           ` Ferenc Wagner
2009-11-29  0:29                             ` Rafael J. Wysocki
2009-11-29 10:12                               ` Ferenc Wagner
2009-11-29 15:07                                 ` Rafael J. Wysocki
2009-12-01 10:29                                   ` Ferenc Wagner
2009-12-01 12:28                                     ` Rafael J. Wysocki
2009-12-01 17:46                                       ` Ferenc Wagner
2009-12-01 21:32                                         ` Rafael J. Wysocki
2009-12-02  1:58                                           ` Ferenc Wagner
2009-12-02 10:55                                             ` Ferenc Wagner
2009-12-02 21:33                                               ` Rafael J. Wysocki
2009-12-02 21:41                                                 ` Mikael Abrahamsson
2009-12-02 21:49                                               ` Rafael J. Wysocki
2009-12-12 19:31                                               ` Pavel Machek
2009-12-02 12:27                                             ` Stefan Seyfried
2009-12-12 19:27                                           ` s2disk encryption was " Pavel Machek

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=200911111547.21149.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@linux-foundation.org \
    --cc=jbarnes@virtuousgeek.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=wferi@niif.hu \
    --cc=yakui.zhao@intel.com \
    /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