LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* 2.6.25-rc2 regression - hang on suspend
@ 2008-02-19 11:59 Soeren Sonnenburg
  2008-02-19 13:12 ` Tino Keitel
  2008-02-19 21:06 ` Rafael J. Wysocki
  0 siblings, 2 replies; 12+ messages in thread
From: Soeren Sonnenburg @ 2008-02-19 11:59 UTC (permalink / raw)
  To: Linux Kernel

Hi,

since 2.6.25-rc1 (first version I tried) and still in rc2 (and git), I
see a hang on s2ram already when trying to suspend.

This is on a macbookpro 1,1  - which steps should I do next to help
isolating the problem?

Soeren

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-19 11:59 2.6.25-rc2 regression - hang on suspend Soeren Sonnenburg
@ 2008-02-19 13:12 ` Tino Keitel
  2008-02-19 21:06 ` Rafael J. Wysocki
  1 sibling, 0 replies; 12+ messages in thread
From: Tino Keitel @ 2008-02-19 13:12 UTC (permalink / raw)
  To: Linux Kernel

On Tue, Feb 19, 2008 at 12:59:46 +0100, Soeren Sonnenburg wrote:
> Hi,
> 
> since 2.6.25-rc1 (first version I tried) and still in rc2 (and git), I
> see a hang on s2ram already when trying to suspend.
> 
> This is on a macbookpro 1,1  - which steps should I do next to help
> isolating the problem?

Could this be the same as http://lkml.org/lkml/2008/2/17/381?

Regards,
Tino

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-19 11:59 2.6.25-rc2 regression - hang on suspend Soeren Sonnenburg
  2008-02-19 13:12 ` Tino Keitel
@ 2008-02-19 21:06 ` Rafael J. Wysocki
  2008-02-19 21:59   ` Soeren Sonnenburg
  1 sibling, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2008-02-19 21:06 UTC (permalink / raw)
  To: Soeren Sonnenburg; +Cc: Linux Kernel

On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> Hi,

Hi,

> since 2.6.25-rc1 (first version I tried) and still in rc2 (and git), I
> see a hang on s2ram already when trying to suspend.

Does it work with 2.6.24?

Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-19 21:06 ` Rafael J. Wysocki
@ 2008-02-19 21:59   ` Soeren Sonnenburg
  2008-02-19 23:50     ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Soeren Sonnenburg @ 2008-02-19 21:59 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Linux Kernel

On Tue, 2008-02-19 at 22:06 +0100, Rafael J. Wysocki wrote:
> On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > Hi,
> 
> Hi,
> 
> > since 2.6.25-rc1 (first version I tried) and still in rc2 (and git), I
> > see a hang on s2ram already when trying to suspend.
> 
> Does it work with 2.6.24?

yes.

Soeren

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-19 21:59   ` Soeren Sonnenburg
@ 2008-02-19 23:50     ` Rafael J. Wysocki
  2008-02-20  6:01       ` Soeren Sonnenburg
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2008-02-19 23:50 UTC (permalink / raw)
  To: Soeren Sonnenburg; +Cc: Linux Kernel

On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> On Tue, 2008-02-19 at 22:06 +0100, Rafael J. Wysocki wrote:
> > On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > > Hi,
> > 
> > Hi,
> > 
> > > since 2.6.25-rc1 (first version I tried) and still in rc2 (and git), I
> > > see a hang on s2ram already when trying to suspend.
> > 
> > Does it work with 2.6.24?
> 
> yes.

Please take the current mainline (there are a couple of nasty bugs fixed in
it), configure it with CONFIG_PM_DEBUG set, boot it with "no_console_suspend",
run

# echo 8 > /proc/sys/kernel/printk
# echo devices > /sys/power/pm_test
# echo mem > /sys/power/state

If it hangs, it should leave a stack trace before and I need that trace to see
what's going on.  If it doesn't hang, I'll tell you what to do next.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-19 23:50     ` Rafael J. Wysocki
@ 2008-02-20  6:01       ` Soeren Sonnenburg
  2008-02-21  0:31         ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Soeren Sonnenburg @ 2008-02-20  6:01 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Linux Kernel

On Wed, 2008-02-20 at 00:50 +0100, Rafael J. Wysocki wrote:
> On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > On Tue, 2008-02-19 at 22:06 +0100, Rafael J. Wysocki wrote:
> > > On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > > > Hi,
> > > 
> > > Hi,
> > > 
> > > > since 2.6.25-rc1 (first version I tried) and still in rc2 (and git), I
> > > > see a hang on s2ram already when trying to suspend.
> > > 
> > > Does it work with 2.6.24?
> > 
> > yes.
> 
> Please take the current mainline (there are a couple of nasty bugs fixed in
> it), configure it with CONFIG_PM_DEBUG set, boot it with "no_console_suspend",
> run
> 
> # echo 8 > /proc/sys/kernel/printk
> # echo devices > /sys/power/pm_test
> # echo mem > /sys/power/state
> 
> If it hangs, it should leave a stack trace before and I need that trace to see
> what's going on.  If it doesn't hang, I'll tell you what to do next.

I tried with 2.6.24.2 with CONFIG_PM_DEBUG set, following your steps and
yes it works flawlessly (though the display did not come back I could
suspend/resume multiple times without problems, and finally s2ram -f -p
brought the display back).

So what next?

Soeren

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-20  6:01       ` Soeren Sonnenburg
@ 2008-02-21  0:31         ` Rafael J. Wysocki
  2008-02-21 10:04           ` Soeren Sonnenburg
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2008-02-21  0:31 UTC (permalink / raw)
  To: Soeren Sonnenburg; +Cc: Linux Kernel

On Wednesday, 20 of February 2008, Soeren Sonnenburg wrote:
> On Wed, 2008-02-20 at 00:50 +0100, Rafael J. Wysocki wrote:
> > On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > > On Tue, 2008-02-19 at 22:06 +0100, Rafael J. Wysocki wrote:
> > > > On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > > > > Hi,
> > > > 
> > > > Hi,
> > > > 
> > > > > since 2.6.25-rc1 (first version I tried) and still in rc2 (and git), I
> > > > > see a hang on s2ram already when trying to suspend.
> > > > 
> > > > Does it work with 2.6.24?
> > > 
> > > yes.
> > 
> > Please take the current mainline (there are a couple of nasty bugs fixed in
> > it), configure it with CONFIG_PM_DEBUG set, boot it with "no_console_suspend",
> > run
> > 
> > # echo 8 > /proc/sys/kernel/printk
> > # echo devices > /sys/power/pm_test
> > # echo mem > /sys/power/state
> > 
> > If it hangs, it should leave a stack trace before and I need that trace to see
> > what's going on.  If it doesn't hang, I'll tell you what to do next.
> 
> I tried with 2.6.24.2 with CONFIG_PM_DEBUG set, following your steps and
> yes it works flawlessly (though the display did not come back I could
> suspend/resume multiple times without problems, and finally s2ram -f -p
> brought the display back).

Hm, there's no /sys/power/pm_test in 2.6.24.2 (and the "current mainline"
means the latest -git kernel possible or the current top of the Linus' tree),
so in fact you tested 2.6.24 again, that is known to work ...

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-21  0:31         ` Rafael J. Wysocki
@ 2008-02-21 10:04           ` Soeren Sonnenburg
  2008-02-21 23:06             ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Soeren Sonnenburg @ 2008-02-21 10:04 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Linux Kernel

On Thu, 2008-02-21 at 01:31 +0100, Rafael J. Wysocki wrote:
> On Wednesday, 20 of February 2008, Soeren Sonnenburg wrote:
> > On Wed, 2008-02-20 at 00:50 +0100, Rafael J. Wysocki wrote:
> > > On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > > > On Tue, 2008-02-19 at 22:06 +0100, Rafael J. Wysocki wrote:
> > > > > On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > > > > > Hi,
> > > > > 
> > > > > Hi,
> > > > > 
> > > > > > since 2.6.25-rc1 (first version I tried) and still in rc2
> (and git), I
> > > > > > see a hang on s2ram already when trying to suspend.
> > > > > 
> > > > > Does it work with 2.6.24?
> > > > 
> > > > yes.
> > > 
> > > Please take the current mainline (there are a couple of nasty bugs
> fixed in
> > > it), configure it with CONFIG_PM_DEBUG set, boot it with
> "no_console_suspend",
> > > run
> > > 
> > > # echo 8 > /proc/sys/kernel/printk
> > > # echo devices > /sys/power/pm_test
> > > # echo mem > /sys/power/state
> > > 
> > > If it hangs, it should leave a stack trace before and I need that trace to see
> > > what's going on.  If it doesn't hang, I'll tell you what to do next.
> > 
> > I tried with 2.6.24.2 with CONFIG_PM_DEBUG set, following your steps and
> > yes it works flawlessly (though the display did not come back I could
> > suspend/resume multiple times without problems, and finally s2ram -f -p
> > brought the display back).
> 
> Hm, there's no /sys/power/pm_test in 2.6.24.2 (and the "current mainline"
> means the latest -git kernel possible or the current top of the Linus' tree),
> so in fact you tested 2.6.24 again, that is known to work ...

Great :( 

Anyway testing linus' git-current, I see that it does not hang. However
after the echo mem >/sys/power/state I am seeing:
[...]
PM: Finishing wakeup.
Restarting tasks ... done.
ata1: port is slow to respond, please be patient (Status 0x80)
ata1: device not ready (errno=-16), forcing hardreset


and this a couple of times. Using echo none >/sys/power/pm_test and then
echo mem >/sys/power/state I see it hang on ata1 errors again. Waiting
about 10-30 seconds it progresses further and finally arrives at 

CPU0 attaching NULL sched-domain
CPU1 attaching NULL sched-domain

then hangs.

So what next?
Soeren

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-21 10:04           ` Soeren Sonnenburg
@ 2008-02-21 23:06             ` Rafael J. Wysocki
  2008-02-22  7:00               ` Soeren Sonnenburg
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2008-02-21 23:06 UTC (permalink / raw)
  To: Soeren Sonnenburg; +Cc: Linux Kernel, pm list

On Thursday, 21 of February 2008, Soeren Sonnenburg wrote:
> On Thu, 2008-02-21 at 01:31 +0100, Rafael J. Wysocki wrote:
> > On Wednesday, 20 of February 2008, Soeren Sonnenburg wrote:
> > > On Wed, 2008-02-20 at 00:50 +0100, Rafael J. Wysocki wrote:
> > > > On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > > > > On Tue, 2008-02-19 at 22:06 +0100, Rafael J. Wysocki wrote:
> > > > > > On Tuesday, 19 of February 2008, Soeren Sonnenburg wrote:
> > > > > > > Hi,
> > > > > > 
> > > > > > Hi,
> > > > > > 
> > > > > > > since 2.6.25-rc1 (first version I tried) and still in rc2
> > (and git), I
> > > > > > > see a hang on s2ram already when trying to suspend.
> > > > > > 
> > > > > > Does it work with 2.6.24?
> > > > > 
> > > > > yes.
> > > > 
> > > > Please take the current mainline (there are a couple of nasty bugs
> > fixed in
> > > > it), configure it with CONFIG_PM_DEBUG set, boot it with
> > "no_console_suspend",
> > > > run
> > > > 
> > > > # echo 8 > /proc/sys/kernel/printk
> > > > # echo devices > /sys/power/pm_test
> > > > # echo mem > /sys/power/state
> > > > 
> > > > If it hangs, it should leave a stack trace before and I need that trace to see
> > > > what's going on.  If it doesn't hang, I'll tell you what to do next.
> > > 
> > > I tried with 2.6.24.2 with CONFIG_PM_DEBUG set, following your steps and
> > > yes it works flawlessly (though the display did not come back I could
> > > suspend/resume multiple times without problems, and finally s2ram -f -p
> > > brought the display back).
> > 
> > Hm, there's no /sys/power/pm_test in 2.6.24.2 (and the "current mainline"
> > means the latest -git kernel possible or the current top of the Linus' tree),
> > so in fact you tested 2.6.24 again, that is known to work ...
> 
> Great :( 
> 
> Anyway testing linus' git-current, I see that it does not hang. However
> after the echo mem >/sys/power/state I am seeing:
> [...]
> PM: Finishing wakeup.
> Restarting tasks ... done.
> ata1: port is slow to respond, please be patient (Status 0x80)
> ata1: device not ready (errno=-16), forcing hardreset
> 
> 
> and this a couple of times. Using echo none >/sys/power/pm_test and then
> echo mem >/sys/power/state I see it hang on ata1 errors again. Waiting
> about 10-30 seconds it progresses further and finally arrives at 
> 
> CPU0 attaching NULL sched-domain
> CPU1 attaching NULL sched-domain
> 
> then hangs.

Please see if compiling the kernel with CONFIG_SMP unset makes suspend
work.

Also, if you could find the commit that broke things, it would probably help a
lot.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-21 23:06             ` Rafael J. Wysocki
@ 2008-02-22  7:00               ` Soeren Sonnenburg
  2008-02-22 15:56                 ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Soeren Sonnenburg @ 2008-02-22  7:00 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Linux Kernel, pm list

On Fri, 2008-02-22 at 00:06 +0100, Rafael J. Wysocki wrote: 
> On Thursday, 21 of February 2008, Soeren Sonnenburg wrote:
> > On Thu, 2008-02-21 at 01:31 +0100, Rafael J. Wysocki wrote:
> > > On Wednesday, 20 of February 2008, Soeren Sonnenburg wrote:
> > > > On Wed, 2008-02-20 at 00:50 +0100, Rafael J. Wysocki wrote:
[...] 
> > Using echo none >/sys/power/pm_test and then
> > echo mem >/sys/power/state I see it hang on ata1 errors again. Waiting
> > about 10-30 seconds it progresses further and finally arrives at 
> > 
> > CPU0 attaching NULL sched-domain
> > CPU1 attaching NULL sched-domain
> > 
> > then hangs.
> 
> Please see if compiling the kernel with CONFIG_SMP unset makes suspend
> work.

*Argh*, this bug is not behaving nicely :( Whatever happened,
git-current now suspends correctly with and without CONFIG_SMP  and all
may CONFIG_PREEMPT_RCU=y and CONFIG_CLASSIC_RCU=y attempts. Also no sata
errors anymore.

However it is not reliably waking up (at least when all of the above
except CLASSIC_RCU is on). Sometimes the display remains black on the
console, but X still works and sometimes it hangs completely on resume.

Also when compiling these many kernels via make -j4 I noted that I could
hardly move the mouse / use the keyboard, but saw random jumps and
key-repetitions...

Soeren

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-22  7:00               ` Soeren Sonnenburg
@ 2008-02-22 15:56                 ` Rafael J. Wysocki
  2008-02-23  7:38                   ` Soeren Sonnenburg
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2008-02-22 15:56 UTC (permalink / raw)
  To: Soeren Sonnenburg; +Cc: Linux Kernel, pm list

On Friday, 22 of February 2008, Soeren Sonnenburg wrote:
> On Fri, 2008-02-22 at 00:06 +0100, Rafael J. Wysocki wrote: 
> > On Thursday, 21 of February 2008, Soeren Sonnenburg wrote:
> > > On Thu, 2008-02-21 at 01:31 +0100, Rafael J. Wysocki wrote:
> > > > On Wednesday, 20 of February 2008, Soeren Sonnenburg wrote:
> > > > > On Wed, 2008-02-20 at 00:50 +0100, Rafael J. Wysocki wrote:
> [...] 
> > > Using echo none >/sys/power/pm_test and then
> > > echo mem >/sys/power/state I see it hang on ata1 errors again. Waiting
> > > about 10-30 seconds it progresses further and finally arrives at 
> > > 
> > > CPU0 attaching NULL sched-domain
> > > CPU1 attaching NULL sched-domain
> > > 
> > > then hangs.
> > 
> > Please see if compiling the kernel with CONFIG_SMP unset makes suspend
> > work.
> 
> *Argh*, this bug is not behaving nicely :( Whatever happened,
> git-current now suspends correctly with and without CONFIG_SMP  and all
> may CONFIG_PREEMPT_RCU=y and CONFIG_CLASSIC_RCU=y attempts. Also no sata
> errors anymore.
> 
> However it is not reliably waking up (at least when all of the above
> except CLASSIC_RCU is on). Sometimes the display remains black on the
> console, but X still works and sometimes it hangs completely on resume.

I have created the Bugzilla entry at http://bugzilla.kernel.org/show_bug.cgi?id=10065
for this issue.  Please add yourself to the CC list in there and update it with
any new findings.

> Also when compiling these many kernels via make -j4 I noted that I could
> hardly move the mouse / use the keyboard, but saw random jumps and
> key-repetitions...

This last bit is most likely a scheduler issue.  Do you have CONFIG_GROUP_SCHED
set by chance?  If you do, please try to unset it and see if that helps.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.6.25-rc2 regression - hang on suspend
  2008-02-22 15:56                 ` Rafael J. Wysocki
@ 2008-02-23  7:38                   ` Soeren Sonnenburg
  0 siblings, 0 replies; 12+ messages in thread
From: Soeren Sonnenburg @ 2008-02-23  7:38 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Linux Kernel, pm list

On Fri, 2008-02-22 at 16:56 +0100, Rafael J. Wysocki wrote:
> On Friday, 22 of February 2008, Soeren Sonnenburg wrote:
> > On Fri, 2008-02-22 at 00:06 +0100, Rafael J. Wysocki wrote: 
> > > On Thursday, 21 of February 2008, Soeren Sonnenburg wrote:
> > > > On Thu, 2008-02-21 at 01:31 +0100, Rafael J. Wysocki wrote:
> > > > > On Wednesday, 20 of February 2008, Soeren Sonnenburg wrote:
> > > > > > On Wed, 2008-02-20 at 00:50 +0100, Rafael J. Wysocki wrote:
> > [...] 
> > Also when compiling these many kernels via make -j4 I noted that I could
> > hardly move the mouse / use the keyboard, but saw random jumps and
> > key-repetitions...
> 
> This last bit is most likely a scheduler issue.  Do you have CONFIG_GROUP_SCHED
> set by chance?  If you do, please try to unset it and see if that helps.

Yes I had. Disabling this helped a lot -- the kernel seems to behave
normally with this option unset.

Soeren

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-02-23  7:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-19 11:59 2.6.25-rc2 regression - hang on suspend Soeren Sonnenburg
2008-02-19 13:12 ` Tino Keitel
2008-02-19 21:06 ` Rafael J. Wysocki
2008-02-19 21:59   ` Soeren Sonnenburg
2008-02-19 23:50     ` Rafael J. Wysocki
2008-02-20  6:01       ` Soeren Sonnenburg
2008-02-21  0:31         ` Rafael J. Wysocki
2008-02-21 10:04           ` Soeren Sonnenburg
2008-02-21 23:06             ` Rafael J. Wysocki
2008-02-22  7:00               ` Soeren Sonnenburg
2008-02-22 15:56                 ` Rafael J. Wysocki
2008-02-23  7:38                   ` Soeren Sonnenburg

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).