linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
@ 2005-01-11 21:20 Rafael J. Wysocki
  2005-01-11 21:26 ` Pavel Machek
  2005-01-11 21:27 ` Pavel Machek
  0 siblings, 2 replies; 9+ messages in thread
From: Rafael J. Wysocki @ 2005-01-11 21:20 UTC (permalink / raw)
  To: LKML; +Cc: Pavel Machek

Hi,

On 2.6.10-mm2, if swsusp suspends my box on AC power and then it's resumed on 
batteries, the box reboots after (or while) suspending devices (ie before 
restoring the image).  This is 100% reproducible, it appears.

The box is an Athlon 64 laptop on NForce 3.

Greets,
RJW

-- 
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
		-- Lewis Carroll "Alice's Adventures in Wonderland"

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

* Re: 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
  2005-01-11 21:20 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64) Rafael J. Wysocki
@ 2005-01-11 21:26 ` Pavel Machek
  2005-01-11 22:14   ` Barry K. Nathan
  2005-01-11 21:27 ` Pavel Machek
  1 sibling, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2005-01-11 21:26 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: LKML

Hi!

> On 2.6.10-mm2, if swsusp suspends my box on AC power and then it's resumed on 
> batteries, the box reboots after (or while) suspending devices (ie before 
> restoring the image).  This is 100% reproducible, it appears.
> 
> The box is an Athlon 64 laptop on NForce 3.

Can you try without cpufreq support? If we attempt to do 2GHz on AC
power, machine may die ugly death.
								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

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

* Re: 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
  2005-01-11 21:20 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64) Rafael J. Wysocki
  2005-01-11 21:26 ` Pavel Machek
@ 2005-01-11 21:27 ` Pavel Machek
  2005-01-11 21:33   ` Rafael J. Wysocki
  1 sibling, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2005-01-11 21:27 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: LKML

Hi!

> On 2.6.10-mm2, if swsusp suspends my box on AC power and then it's resumed on 
> batteries, the box reboots after (or while) suspending devices (ie before 
> restoring the image).  This is 100% reproducible, it appears.
> 
> The box is an Athlon 64 laptop on NForce 3.

Forcing machine to 800MHz before suspend may do the trick, too.

									Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

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

* Re: 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
  2005-01-11 21:27 ` Pavel Machek
@ 2005-01-11 21:33   ` Rafael J. Wysocki
  2005-01-11 21:55     ` Pavel Machek
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2005-01-11 21:33 UTC (permalink / raw)
  To: Pavel Machek; +Cc: LKML

On Tuesday, 11 of January 2005 22:27, Pavel Machek wrote:
> Hi!
> 
> > On 2.6.10-mm2, if swsusp suspends my box on AC power and then it's resumed 
on 
> > batteries, the box reboots after (or while) suspending devices (ie before 
> > restoring the image).  This is 100% reproducible, it appears.
> > 
> > The box is an Athlon 64 laptop on NForce 3.
> 
> Forcing machine to 800MHz before suspend may do the trick, too.

How can I do this?

RJW

-- 
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
		-- Lewis Carroll "Alice's Adventures in Wonderland"

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

* Re: 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
  2005-01-11 21:33   ` Rafael J. Wysocki
@ 2005-01-11 21:55     ` Pavel Machek
  2005-01-12 17:24       ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2005-01-11 21:55 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: LKML

Hi!

> > > On 2.6.10-mm2, if swsusp suspends my box on AC power and then it's resumed 
> on 
> > > batteries, the box reboots after (or while) suspending devices (ie before 
> > > restoring the image).  This is 100% reproducible, it appears.
> > > 
> > > The box is an Athlon 64 laptop on NForce 3.
> > 
> > Forcing machine to 800MHz before suspend may do the trick, too.
> 
> How can I do this?

echo "0%44%44%powersave" > /proc/cpufreq if you have that interface
enabled. Or simply turn off CONFIG_CPUFREQ in config.

								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

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

* Re: 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
  2005-01-11 21:26 ` Pavel Machek
@ 2005-01-11 22:14   ` Barry K. Nathan
  2005-01-11 23:34     ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Barry K. Nathan @ 2005-01-11 22:14 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Rafael J. Wysocki, LKML

> > The box is an Athlon 64 laptop on NForce 3.
> 
> Can you try without cpufreq support? If we attempt to do 2GHz on AC
> power, machine may die ugly death.

Athlon 64 probably means it's running an x86_64 kernel. Wasn't there
another thread on lkml about -mm2 swsusp and x86_64? I wonder if it's
the same problem (or a related one).

-Barry K. Nathan <barryn@pobox.com>


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

* Re: 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
  2005-01-11 22:14   ` Barry K. Nathan
@ 2005-01-11 23:34     ` Rafael J. Wysocki
  0 siblings, 0 replies; 9+ messages in thread
From: Rafael J. Wysocki @ 2005-01-11 23:34 UTC (permalink / raw)
  To: Barry K. Nathan; +Cc: Pavel Machek, LKML

On Tuesday, 11 of January 2005 23:14, Barry K. Nathan wrote:
> > > The box is an Athlon 64 laptop on NForce 3.
> > 
> > Can you try without cpufreq support? If we attempt to do 2GHz on AC
> > power, machine may die ugly death.
> 
> Athlon 64 probably means it's running an x86_64 kernel. Wasn't there
> another thread on lkml about -mm2 swsusp and x86_64?

Yes, there was.

> I wonder if it's  the same problem (or a related one).

The other thread was about the hang caused by the timer driver on suspend 
(which I'm still trying to understand, but it takes time ;-)).

That problem is rather not related to this one, because I'm currently using a 
slightly modified kernel in which the function timer_resume() (that caused 
the hang) is a noop.

Greets,
RJW

-- 
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
		-- Lewis Carroll "Alice's Adventures in Wonderland"

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

* Re: 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
  2005-01-11 21:55     ` Pavel Machek
@ 2005-01-12 17:24       ` Rafael J. Wysocki
  2005-01-12 20:45         ` Pavel Machek
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2005-01-12 17:24 UTC (permalink / raw)
  To: Pavel Machek; +Cc: LKML

On Tuesday, 11 of January 2005 22:55, Pavel Machek wrote:
> Hi!
> 
> > > > On 2.6.10-mm2, if swsusp suspends my box on AC power and then it's 
resumed 
> > on 
> > > > batteries, the box reboots after (or while) suspending devices (ie 
before 
> > > > restoring the image).  This is 100% reproducible, it appears.
> > > > 
> > > > The box is an Athlon 64 laptop on NForce 3.
> > > 
> > > Forcing machine to 800MHz before suspend may do the trick, too.
> > 
> > How can I do this?
> 
> echo "0%44%44%powersave" > /proc/cpufreq if you have that interface
> enabled. Or simply turn off CONFIG_CPUFREQ in config.

I turned off CONFIG_CPUFREQ and it helped.  Still, cpufreq is a neat feature 
and I'd like to keep it in the kernel. :-)

Greets,
RJW

-- 
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
		-- Lewis Carroll "Alice's Adventures in Wonderland"

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

* Re: 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64)
  2005-01-12 17:24       ` Rafael J. Wysocki
@ 2005-01-12 20:45         ` Pavel Machek
  0 siblings, 0 replies; 9+ messages in thread
From: Pavel Machek @ 2005-01-12 20:45 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: LKML

Hi!

> > > > Forcing machine to 800MHz before suspend may do the trick, too.
> > > 
> > > How can I do this?
> > 
> > echo "0%44%44%powersave" > /proc/cpufreq if you have that interface
> > enabled. Or simply turn off CONFIG_CPUFREQ in config.
> 
> I turned off CONFIG_CPUFREQ and it helped.  Still, cpufreq is a neat feature 
> and I'd like to keep it in the kernel. :-)

Yes, uh, what you have to do is add suspend/resume routines to
cpufreq. Always force it to lowest frequency in
device_suspend()... and force it to rescan AC/battery status before
going to higher frequency.
								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

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

end of thread, other threads:[~2005-01-12 20:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-11 21:20 2.6.10-mm2: swsusp problem with resuming on batteries (AMD64) Rafael J. Wysocki
2005-01-11 21:26 ` Pavel Machek
2005-01-11 22:14   ` Barry K. Nathan
2005-01-11 23:34     ` Rafael J. Wysocki
2005-01-11 21:27 ` Pavel Machek
2005-01-11 21:33   ` Rafael J. Wysocki
2005-01-11 21:55     ` Pavel Machek
2005-01-12 17:24       ` Rafael J. Wysocki
2005-01-12 20:45         ` Pavel Machek

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