From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Tobias Diedrich <ranma+kernel@tdiedrich.de>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>,
linux-pm@lists.osdl.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Adrian Bunk <bunk@stusta.de>
Subject: Re: Linux 2.6.21-rc6
Date: Sat, 14 Apr 2007 23:58:30 +0200 [thread overview]
Message-ID: <200704142358.31758.rjw@sisk.pl> (raw)
In-Reply-To: <20070414213526.GA2401@melchior.yamamaya.is-a-geek.org>
On Saturday, 14 April 2007 23:35, Tobias Diedrich wrote:
> Rafael J. Wysocki wrote:
> > On Saturday, 14 April 2007 21:56, Tobias Diedrich wrote:
> > > Rafael J. Wysocki wrote:
> > > > On Saturday, 14 April 2007 15:00, Adrian Bunk wrote:
> > > > > On Sat, Apr 14, 2007 at 02:31:54PM +0200, Tobias Diedrich wrote:
> > > > > > Tobias Diedrich wrote:
> > > > > > > > ed746e3b18f4df18afa3763155972c5835f284c5 is first bad commit
> > > > > > > > commit ed746e3b18f4df18afa3763155972c5835f284c5
> > > > > > > > Author: Rafael J. Wysocki <rjw@sisk.pl>
> > > > > > > > Date: Sat Feb 10 01:43:32 2007 -0800
> > > > > > > >
> > > > > > > > [PATCH] swsusp: Change code ordering in disk.c
> > > > > > > >
> > > > > > > > Change the ordering of code in kernel/power/disk.c so that device_suspend() is
> > > > > > > > called before disable_nonboot_cpus() and platform_finish() is called after
> > > > > > > > enable_nonboot_cpus() and before device_resume(), as indicated by the recent
> > > > > > > > discussion on Linux-PM (cf.
> > > > > > > > http://lists.osdl.org/pipermail/linux-pm/2006-November/004164.html).
> > > > > > > >
> > > > > > > > The changes here only affect the built-in swsusp.
> > > > > > > >
> > > > > > > > [alexey.y.starikovskiy@linux.intel.com: fix LED blinking during image load]
> > > > > > > > Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> > > > > > > > Acked-by: Pavel Machek <pavel@ucw.cz>
> > > > > > > > Cc: Greg KH <greg@kroah.com>
> > > > > > > > Cc: Nigel Cunningham <nigel@suspend2.net>
> > > > > > > > Cc: Patrick Mochel <mochel@digitalimplant.org>
> > > > > > > > Cc: Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com>
> > > > > > > > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> > > > > > > > Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
> > > > > > > >
> > > > > > > > :040000 040000 7eca5b3a8f9606bc4f2ff41192ec8c9d4ca90d18 8313b674e1d1bdf6849350af06d28a89b3bb3054 M kernel
> > > > > > > >
> > > > > > > >
> > > > > > > > Now, the remaining test is to try reverting this commit from -rc6. :)
> > > > > > >
> > > > > > > Doesn't apply cleanly against -rc6, but fixes the problem when
> > > > > > > reverted from -rc1.
> > > > > >
> > > > > > Now, this was already reported in
> > > > > > http://lkml.org/lkml/2007/3/16/126
> > > > > > and I even flagged that message in my local folder, but apparently forgot
> > > > > > to follow up on it... *sigh*
> > > > >
> > > > > Unless I misunderstood something, all of the problems Maxim described in
> > > > > this email are fixed for him in -rc6.
> > > > >
> > > > > But it's quite possible that you are running into a different issue
> > > > > exposed by this commit.
> > > >
> > > > Yes, it's likely.
> > > >
> > > > Tobias, I'm unable to reproduce the problem with your .config, but my hardware
> > > > is certainly different. Which suspend mode do you use? If that's "platform",
> > > > can you try to use "shutdown" or "reboot" and see if that helps?
> > >
> > > Sure.
> > > shutdown/reboot works fine, only platform is broken.
> >
> > Thanks.
> >
> > Now, I suspect the problem is somehow related to the hardware, so it would help
> > a lot if we could identify the piece of hardware (or driver) involved.
> >
> > AFAICT, your system is a non-SMP one, so we can rule out
> > disable/enable_nonboot_cpus(). To confirm that the problem is related to
> > platform_finish(), can you please apply the appended debug patch and
> > see if the suspend in the 'platform' mode works with it?
>
> Yes, it's a Asus M2N-SLI-Deluxe Mainboard with a Athlon64 3200+
> single core CPU.
>
> > Also, would that be feasible for you to use 'shutdown' as a workaround in case
> > the source of the problem is difficult to find and/or fix?
>
> I guess so, but the below patch fixes the problem. :)
Well, I thought it would, but it also would break some other people's systems.
That's the _real_ problem. Let's see if we can learn more.
Can you please revert it for now, apply the appended one and try to
suspend/resume twice in the 'platform' mode (it may or may not work)?
Rafael
---
kernel/power/disk.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: linux-2.6.21-rc6/kernel/power/disk.c
===================================================================
--- linux-2.6.21-rc6.orig/kernel/power/disk.c
+++ linux-2.6.21-rc6/kernel/power/disk.c
@@ -267,12 +267,15 @@ static int software_resume(void)
error = swsusp_read();
if (error) {
swsusp_free();
- platform_finish();
goto Thaw;
}
pr_debug("PM: Preparing devices for restore.\n");
+ error = platform_prepare();
+ if (error)
+ goto Thaw;
+
suspend_console();
error = device_suspend(PMSG_PRETHAW);
if (error)
@@ -285,6 +288,7 @@ static int software_resume(void)
enable_nonboot_cpus();
Free:
swsusp_free();
+ platform_finish();
device_resume();
resume_console();
Thaw:
next prev parent reply other threads:[~2007-04-14 21:58 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.64.0704051944230.6730@woody.linux-foundation.org>
[not found] ` <20070413212954.GA2545@melchior.yamamaya.is-a-geek.org>
2007-04-13 23:50 ` Linux 2.6.21-rc6 Adrian Bunk
2007-04-14 6:50 ` Tobias Diedrich
2007-04-14 8:16 ` Tobias Diedrich
2007-04-14 9:05 ` Rafael J. Wysocki
2007-04-14 10:32 ` Tobias Diedrich
2007-04-14 12:26 ` Adrian Bunk
2007-04-14 12:09 ` Tobias Diedrich
2007-04-14 12:24 ` Tobias Diedrich
2007-04-14 12:31 ` Tobias Diedrich
2007-04-14 13:00 ` Adrian Bunk
2007-04-14 18:28 ` Rafael J. Wysocki
2007-04-14 19:56 ` Tobias Diedrich
2007-04-14 20:23 ` Rafael J. Wysocki
2007-04-14 20:25 ` Adrian Bunk
2007-04-14 20:38 ` Rafael J. Wysocki
2007-04-14 21:35 ` Tobias Diedrich
2007-04-14 21:58 ` Rafael J. Wysocki [this message]
2007-04-15 7:38 ` Tobias Diedrich
2007-04-15 8:02 ` Tobias Diedrich
2007-04-15 11:16 ` Rafael J. Wysocki
2007-04-15 14:19 ` Dmitry Torokhov
2007-04-15 15:52 ` Rafael J. Wysocki
2007-04-15 18:50 ` Tobias Diedrich
2007-04-15 19:37 ` Rafael J. Wysocki
2007-04-15 15:14 ` David Brownell
2007-04-15 16:37 ` Rafael J. Wysocki
2007-04-15 17:53 ` David Brownell
2007-04-15 19:40 ` [linux-pm] " Tobias Diedrich
2007-04-15 19:54 ` Rafael J. Wysocki
2007-04-25 17:14 ` [linux-pm] " Tobias Diedrich
2007-04-25 19:36 ` Rafael J. Wysocki
2007-04-25 20:09 ` [linux-pm] " Tobias Diedrich
2007-04-14 0:38 ` [3/3] 2.6.21-rc6: known regressions Adrian Bunk
2007-04-14 1:57 ` Antonino A. Daplas
2007-04-15 16:26 ` Marcus Better
2007-04-15 23:08 ` Antonino A. Daplas
2007-04-16 6:23 ` Marcus Better
2007-04-16 6:45 ` Antonino A. Daplas
2007-04-17 8:17 ` Marcus Better
2007-04-17 9:27 ` Antonino A. Daplas
2007-04-17 11:54 ` Marcus Better
2007-04-24 15:33 ` Pavel Machek
2007-04-14 7:40 ` Dave Jones
2007-04-15 17:15 ` Jeff Chua
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=200704142358.31758.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=maximlevitsky@gmail.com \
--cc=ranma+kernel@tdiedrich.de \
/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