From: Zhang Rui <rui.zhang@intel.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Giacomo Perale <giacomo.perale@gmail.com>,
linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [regression,bisected] restore of disks after suspend-to-disk broken in 3.9.x
Date: Wed, 29 May 2013 09:46:19 +0800 [thread overview]
Message-ID: <1369791979.2079.7.camel@rzhang1-mobl4> (raw)
In-Reply-To: <1569319.PChVOz05me@vostro.rjw.lan>
On Tue, 2013-05-28 at 15:20 +0200, Rafael J. Wysocki wrote:
> On Tuesday, May 28, 2013 02:59:25 PM Giacomo Perale wrote:
> > 2013/5/28 Rafael J. Wysocki <rjw@sisk.pl>:
> > > On Monday, May 27, 2013 10:07:18 PM Giacomo Perale wrote:
> > >> 2013/5/27 Zhang Rui <rui.zhang@intel.com>:
> > >> > On Sun, 2013-05-26 at 15:51 +0200, Giacomo Perale wrote:
> > >> >> Hello,
> > >> >>
> > >> >> after upgrading from 3.8.7 to 3.9.x I noticed some slightly longer
> > >> >> delays when resuming from suspend-to-disk and a few new error messages
> > >> >> in the logs:
> > >> >>
> > >> >>
> > >> >> Not having connected the issue with the previous error messages I
> > >> >> initially blamed the disk and replaced it with a new one thinking it
> > >> >> was broken, but the problem persisted so I started a bisection run
> > >> >> that pointed to this commit:
> > >> >>
> > >> >>
> > >> >> b8bb6cb999858043489c1ddef08eed2127559169 is the first bad commit
> > >> >> commit b8bb6cb999858043489c1ddef08eed2127559169
> > >> >> Author: Zhang Rui <rui.zhang@intel.com>
> > >> >> Date: Thu Nov 22 15:45:02 2012 +0800
> > >> >>
> > >> >> step_wise: Unify the code for both throttle and dethrottle
> > >> >>
> > >> >> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> > >> >>
> > >> > I do not see how this would affect the sata hibernation/resume.
> > >> > but anyway, would you please try the four patches in comment #10, #11,
> > >> > #12 and #13 in
> > >> > https://bugzilla.kernel.org/show_bug.cgi?id=58301
> > >> > and check if they help?
> > >> >
> > >> > thanks,
> > >> > rui
> > >> >
> > >>
> > >> No luck, with git head and those four patches hibernation is
> > >> completely broken, the system doesn't even shut down, it just loses
> > >> the disks (I'm attaching what I could get from /proc/kmsg to this
> > >> email).
> > >>
> > >> With the fair_share governor or with step_wise _and_ commit
> > >> b8bb6cb999858043489c1ddef08eed2127559169 reverted everything is ok
> > >> again.
> > >>
> > >> I think there's something wrong in the commit logic (for example, why
> > >> are you checking for "instance->target != THERMAL_NO_TARGET" when
> > >> update_instance_for_throttle checked for "instance->target ==
> > >> THERMAL_NO_TARGET"?) but my attempts to fix it failed, probably
> > >> because I'm not sure of what 'continue;' does inside a
> > >> list_for_each_entry macro.
> > >
> > > Can you please attach the output of acpidump from your system?
> > >
> > > Rafael
> > >
> > >
> >
> > Sure, here it is.
>
> Thanks!
>
> Can you please also check if the patch below makes any difference?
>
> Rafael
>
>
> ---
> drivers/thermal/step_wise.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> Index: linux-pm/drivers/thermal/step_wise.c
> ===================================================================
> --- linux-pm.orig/drivers/thermal/step_wise.c
> +++ linux-pm/drivers/thermal/step_wise.c
> @@ -131,6 +131,9 @@ static void thermal_zone_trip_update(str
> continue;
>
> old_target = instance->target;
> + if (!throttle && old_target == THERMAL_NO_TARGET)
> + continue;
> +
As this can fix the problem, so the bug is introduced because some
inactive instance is activated improperly?
thanks,
rui
> instance->target = get_target_state(instance, trend, throttle);
>
> /* Activate a passive thermal instance */
>
>
next prev parent reply other threads:[~2013-05-29 1:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-26 13:51 [regression,bisected] restore of disks after suspend-to-disk broken in 3.9.x Giacomo Perale
2013-05-27 5:07 ` Zhang Rui
2013-05-27 20:07 ` Giacomo Perale
2013-05-28 13:01 ` Rafael J. Wysocki
[not found] ` <CAPm-kmsCKB8w2ud8UEdnBP1EFuc-jQ5QWNUOFTqtF3mLjmriHg@mail.gmail.com>
2013-05-28 13:20 ` Rafael J. Wysocki
[not found] ` <CAPm-kmu45=uqR2TXmHKjtNcvRCmOpu7cpOzi6WyWmsTdw-QPPw@mail.gmail.com>
2013-05-28 21:21 ` Rafael J. Wysocki
2013-05-29 1:46 ` Zhang Rui [this message]
2013-05-30 1:46 ` Zhang Rui
2013-05-30 8:04 ` Giacomo Perale
2013-05-30 10:50 ` Zhang Rui
2013-05-30 17:19 ` Giacomo Perale
2013-06-05 9:09 ` Giacomo Perale
2013-06-05 13:23 ` Zhang, Rui
2013-06-21 7:53 ` Zhang Rui
2013-06-21 9:51 ` Giacomo Perale
2013-06-21 12:19 ` Zhang Rui
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=1369791979.2079.7.camel@rzhang1-mobl4 \
--to=rui.zhang@intel.com \
--cc=giacomo.perale@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@sisk.pl \
/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;
as well as URLs for NNTP newsgroup(s).