lkml.org 
[lkml]   [2007]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Linux 2.6.21-rc6
Date
On Sunday, 15 April 2007 10:02, Tobias Diedrich wrote:
> Tobias Diedrich wrote:
> > Rafael J. Wysocki wrote:
> > > 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)?
> >
> > Ok. The patch doesn't apply cleanly to 2.6.21-rc6:
> > |patching file kernel/power/disk.c
> > |Hunk #1 FAILED at 267.
> > |Hunk #2 succeeded at 265 (offset -23 lines).
> > |1 out of 2 hunks FAILED -- saving rejects to file
> > |kernel/power/disk.c.rej
> >
> > wiggle helps, seems the first part of Hunk #1 is already applied in
> > 2.6.21-rc6.

Ah, sorry. I used a wrong tree to generate the patch.

> > With CONFIG_PM_DEBUG=y and CONFIG_DISABLE_CONSOLE_SUSPEND=y I see
> > that the second suspend hangs at "i8042 i8042: EARLY resume".
> > This is kinda interesting because I'm normally using a USB keyboard
> > and sure enough, if I hook up a normal keyboard and disable USB
> > legacy support in the BIOS, then suspend to disk works multiple
> > times. I'd still rather like to use my USB keyboard though. ;)

Well, I think that when you're using the USB keyboard and the USB legacy
support, the i8042 driver thinks it has a keyboard to handle and tries to
handle it during the suspend, which fails. I don't know why it fails during
the second suspend, though.

Dmitry, could you please have a look?

> And I can now confirm that unpatched 2.6.21-rc6 works fine as long
> as USB legacy support is disabled (however without legacy support I
> can't use the USB keyboard to control grub).

I think using the 'shutdown' mode of suspend would be better. There's a little
point in using 'platform' on desktop systems anyway.

Frankly, I don't know what to do about it. If we move platform_finish() after
device_resume(), some systems may be broken and I think there are more such
systems than there are systems that set USB legacy support in the BIOS and
have no PS/2 keyboards attached. Pavel, what do you think?

Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-04-15 13:15    [W:0.105 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site