From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Matt Mackall <mpm@selenic.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Len Brown <lenb@kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
Miles Lane <miles.lane@gmail.com>,
lollul@wp.pl, Helge Hafting <helgehaf@aitel.hist.no>
Subject: Re: [GIT PATCH] ACPI patches for 2.6.22
Date: Sun, 29 Apr 2007 14:17:01 +0200 [thread overview]
Message-ID: <200704291417.02362.rjw@sisk.pl> (raw)
In-Reply-To: <20070429115244.GE11115@waste.org>
On Sunday, 29 April 2007 13:52, Matt Mackall wrote:
> On Sun, Apr 29, 2007 at 01:01:04AM -0700, Andrew Morton wrote:
> > On Sun, 29 Apr 2007 01:02:33 -0400 Len Brown <lenb@kernel.org> wrote:
> >
> > > please pull from:
> > >
> > > git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release
> > >
> > > This batch mostly updates the platform-specific drivers that use ACPI.
> > > The EC and sbs changes are primarily cleanups.
> > > There are no changes to the ACPICA core, except a single bugfix
> > > that was related to a 2.6.21 boot regression on some older machines.
> > > And then the usual mix of random tweaks.
> >
> > There might still be a few regressions in this lot:
> >
> > - Miles Lane's "2.6.21-rc7-mm2 -- gnome-power-manager always shows the
> > power as coming from AC"
> >
> > - "battery caching introduces a lock up"
> > http://bugzilla.kernel.org/show_bug.cgi?id=8351
> >
> > These are older and might have been fixed:
> >
> > - Mat Mackall's "Thinkpads not waking up on lid open with -rc6-mm1"
>
> This seems to be related to suspend to disk. After the first suspend
> to disk/resume, suspend to ram stops resuming from lid open and needs
> me to hit the power button. As I just started using suspend to disk in
> the past couple weeks, this may be a long-standing bug.
>
> I think it's still present in -rc7-mm1 but I don't have my laptop
> handy to double-check.
Can you please check if the appended debug patch helps?
Rafael
---
kernel/power/disk.c | 4 ++--
kernel/power/user.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
Index: linux-2.6.21-rc7/kernel/power/disk.c
===================================================================
--- linux-2.6.21-rc7.orig/kernel/power/disk.c
+++ linux-2.6.21-rc7/kernel/power/disk.c
@@ -170,9 +170,9 @@ int pm_suspend_disk(void)
if (in_suspend) {
enable_nonboot_cpus();
- platform_finish();
device_resume();
resume_console();
+ platform_finish();
pr_debug("PM: writing image.\n");
error = swsusp_write();
if (!error)
@@ -189,9 +189,9 @@ int pm_suspend_disk(void)
Enable_cpus:
enable_nonboot_cpus();
Resume_devices:
- platform_finish();
device_resume();
resume_console();
+ platform_finish();
Thaw:
unprepare_processes();
Finish:
Index: linux-2.6.21-rc7/kernel/power/user.c
===================================================================
--- linux-2.6.21-rc7.orig/kernel/power/user.c
+++ linux-2.6.21-rc7/kernel/power/user.c
@@ -170,11 +170,11 @@ static inline int snapshot_suspend(int p
}
enable_nonboot_cpus();
Resume_devices:
+ device_resume();
+ resume_console();
if (platform_suspend)
platform_finish();
- device_resume();
- resume_console();
Finish:
mutex_unlock(&pm_mutex);
return error;
@@ -202,11 +202,11 @@ static inline int snapshot_restore(int p
enable_nonboot_cpus();
Resume_devices:
+ device_resume();
+ resume_console();
if (platform_suspend)
platform_finish();
- device_resume();
- resume_console();
Finish:
pm_restore_console();
mutex_unlock(&pm_mutex);
next prev parent reply other threads:[~2007-04-29 12:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-29 5:02 [GIT PATCH] ACPI patches for 2.6.22 Len Brown
2007-04-29 8:01 ` Andrew Morton
2007-04-29 11:52 ` Matt Mackall
2007-04-29 12:17 ` Rafael J. Wysocki [this message]
2007-04-30 15:33 ` Matt Mackall
2007-04-30 20:03 ` Rafael J. Wysocki
2007-04-30 20:05 ` Matt Mackall
2007-04-30 21:31 ` Rafael J. Wysocki
2007-04-30 22:07 ` Matt Mackall
2007-04-30 22:56 ` Rafael J. Wysocki
2007-04-29 15:53 ` Len Brown
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=200704291417.02362.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=helgehaf@aitel.hist.no \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lollul@wp.pl \
--cc=miles.lane@gmail.com \
--cc=mpm@selenic.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox