Skip to contentSkip to conversation

2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.

DISCUSSION Jeff Chua 4 participants 6 messages Feb 20, 2008 ACPI

lore
Share & tools
lore

Jeff Chua

author
#0 lore raw
Quoted 16 lines · Greg KH
Quoted 1 line

Also, I've tried CONFIG_DETECT_SOFTLOCKUP=n, but this doesn't fix it either.

Ok, this looks to be something else.

Quoted 12 lines

Here's the last dmesg after suspend-to-disk and hang there...

CPU 1 is now offline
SMP alternatives: switching to UP code
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.00 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
PM: Shrinking memory... ^H-^Hdone (0 pages freed)
PM: Freed 0 kbytes in 0.10 seconds (0.00 MB/s)
ACPI: Preparing to enter system sleep state S4 Suspending console(s)

Quoted 7 lines
Quoted 2 lines

[ ... it just hangs here ... press power-switch does the job, and system is able to resume upon powering on ]

Wait, this is a suspend-to-disk issue. Totally different than the "will not power off" issue.

Can you start a new thread on this, and add the suspend people to it?

I bisected down this one commit that causes the problem with suspend-to-disk on Lenovo X60s (i945 chipset).

commit ba8bbcf6ff4650712f64c0ef61139c73898e2165

Author: Jesse Barnes <[email protected]>
Date:   Thu Nov 22 14:14:14 2007 +1000

i915: add suspend/resume support

Add suspend/resume support to the i915 driver. Moves some of the initialization into the driver load routine, and fixes up places where we assumed no dev_private existed in some of the cleanup paths. This allows us to suspend/resume properly even if X isn't running.

There where problem reverting the some i915 files with the latest linux git pull, so I copied those i915*.{h,c} prior to this commit, and problem went away.

Suspend-to-ram, suspend-to-disk all working now.

Thanks,
Jeff.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#1 lore raw

I found the same poweroff issue on my T61. It turned out to be related to the C state code disabling interrupts when it shouldn't iirc. Booting with 'idle=poll' seems to work around the problem.

The "green screen" problem should be fixed (see the DRM git tree for details).

Jesse

Quoted 48 lines · Jeff Chua
Quoted 17 lines · Greg KH
Quoted 2 lines

Also, I've tried CONFIG_DETECT_SOFTLOCKUP=n, but this doesn't fix it either.

Ok, this looks to be something else.

Quoted 12 lines

Here's the last dmesg after suspend-to-disk and hang there...

CPU 1 is now offline
SMP alternatives: switching to UP code
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.00 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
PM: Shrinking memory... ^H-^Hdone (0 pages freed)
PM: Freed 0 kbytes in 0.10 seconds (0.00 MB/s)
ACPI: Preparing to enter system sleep state S4 Suspending console(s)

Quoted 7 lines
Quoted 2 lines

[ ... it just hangs here ... press power-switch does the job, and system is able to resume upon powering on ]

Wait, this is a suspend-to-disk issue. Totally different than the "will not power off" issue.

Can you start a new thread on this, and add the suspend people to it?

I bisected down this one commit that causes the problem with suspend-to-disk on Lenovo X60s (i945 chipset).

commit ba8bbcf6ff4650712f64c0ef61139c73898e2165

Author: Jesse Barnes <[email protected]>
Date:   Thu Nov 22 14:14:14 2007 +1000

i915: add suspend/resume support

Add suspend/resume support to the i915 driver. Moves some of the initialization into the driver load routine, and fixes up places where
we assumed no dev_private existed in some of the cleanup paths. This allows us to suspend/resume properly even if X isn't running.

There where problem reverting the some i915 files with the latest linux git pull, so I copied those i915*.{h,c} prior to this commit, and problem went away.

Quoted 5 lines

Suspend-to-ram, suspend-to-disk all working now.

Thanks,
Jeff.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#2 lore raw
Quoted 3 lines · Jesse Barnes

I found the same poweroff issue on my T61. It turned out to be related to the C state code disabling interrupts when it shouldn't iirc. Booting with 'idle=poll' seems to work around the problem.

However, this issue is supposed to be fixed in 2.6.25-rc2, so most probably there is another problem in there.

Thanks,
Rafael

#3 lore raw
In reply to Jesse Barnes
Quoted 6 lines · Jesse Barnes

I found the same poweroff issue on my T61. It turned out to be related to the C state code disabling interrupts when it shouldn't iirc. Booting with 'idle=poll' seems to work around the problem.

The "green screen" problem should be fixed (see the DRM git tree for details).

..and the latter is hopefully now merged in my tree too (at least some of the drm updates are).

Linus

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#4 lore raw
Quoted 10 lines · Linus Torvalds
Quoted 6 lines · Jesse Barnes

I found the same poweroff issue on my T61. It turned out to be related to the C state code disabling interrupts when it shouldn't iirc. Booting with 'idle=poll' seems to work around the problem.

The "green screen" problem should be fixed (see the DRM git tree for details).

..and the latter is hopefully now merged in my tree too (at least some of the drm updates are).

Cool, thanks.

Jeff, can you retest with Linus' tree? If you're still seeing problems, it might help to add some printks to the i915 driver's suspend routine. Just reading the regs really shouldn't cause a hang, but maybe the VGA bits are subtly wrong again...

Thanks,
Jesse

author
#5 lore raw
Quoted 7 lines · Jesse Barnes
Quoted 5 lines · Linus Torvalds
Quoted 4 lines · Jesse Barnes

I found the same poweroff issue on my T61. It turned out to be related to the C state code disabling interrupts when it shouldn't iirc. Booting with 'idle=poll' seems to work around the problem.

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

The "green screen" problem should be fixed (see the DRM git tree for details).

Jeff, can you retest with Linus' tree? If you're still seeing problems, it might help to add some printks to the i915 driver's suspend routine. Just reading the regs really shouldn't cause a hang, but maybe the VGA bits are subtly wrong again...

The funny thing is the screen is now normal during suspend, but the green came back after suspend!

And the suspend still does NOT power off with lastest Linus's tree.

I'll try the "idle=poll" to see if that works and will try some printk as well.

Thanks,
Jeff.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/