public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Machine resumes straight after suspend to RAM (or disk)
@ 2009-09-08 18:57 Alex Bennee
  2009-09-08 19:38 ` Rafael J. Wysocki
  2009-09-08 20:47 ` Maxim Levitsky
  0 siblings, 2 replies; 5+ messages in thread
From: Alex Bennee @ 2009-09-08 18:57 UTC (permalink / raw)
  To: lkml

[-- Attachment #1: Type: text/plain, Size: 3253 bytes --]

Hi,

I thought I'd enable suspend and resume on my desktop machine so I
could save myself some time in the morning when I restart the machine.
The machine is fairly standard Intel Core Duo based system (lspci
attached). However when I execute pm-suspend (or Gentoo's own
hibernate-script) the system does suspend but resumes immediately. To
add insult to injury the ethernet doesn't come back properly and needs
a reboot to reset it.

I've played about a little with the ACPI debug stuff but it's easy to
overflow the dmesg buffer. The relevant section around the
suspend/resume looks like:

[ 1025.178019] Disabling non-boot CPUs ...
[ 1025.182071] kvm: disabling virtualization on CPU1
[ 1025.227729] CPU 1 is now offline
[ 1025.227731] SMP alternatives: switching to UP code
[ 1025.232627] CPU0 attaching NULL sched-domain.
[ 1025.232630] CPU1 attaching NULL sched-domain.
[ 1025.232634] CPU0 attaching NULL sched-domain.
[ 1025.232771] CPU1 is down
[ 1025.233264] acpi_suspend_enter acpi_state=3
[ 1025.233276] evgpeblk-0144 [ffff8800b70d8000] [05] ev_walk_gpe_list
    : ----Entry
[ 1025.233286] evgpeblk-0178 [ffff8800b70d8000] [05] ev_walk_gpe_list
    : ----Exit- AE_OK
[ 1025.233290] evgpeblk-0144 [ffff8800b70d8000] [05] ev_walk_gpe_list
    : ----Entry
[ 1025.233299] evgpeblk-0178 [ffff8800b70d8000] [05] ev_walk_gpe_list
    : ----Exit- AE_OK
[ 1025.233303] evgpeblk-0144 [ffff8800b70d8000] [05] ev_walk_gpe_list
    : ----Entry
[ 1025.233311] evgpeblk-0178 [ffff8800b70d8000] [05] ev_walk_gpe_list
    : ----Exit- AE_OK
[ 1025.233315] evgpeblk-0144 [ffff8800b70d8000] [05] ev_walk_gpe_list
    : ----Entry
[ 1025.233319] evgpeblk-0178 [ffff8800b70d8000] [05] ev_walk_gpe_list
    : ----Exit- AE_OK
[ 1025.233319] evxfevnt-0074 [ffff8800b70d8000] [05] enable
    : ----Entry
[ 1025.233319] evxfevnt-0086 [ffff8800b70d8000] [05] enable
    : System is already in ACPI mode
[ 1025.233319] evxfevnt-0101 [ffff8800b70d8000] [05] enable
    : ----Exit- AE_OK
[ 1025.233319] evxfevnt-0397 [ffff8800b70d8000] [05] clear_event
    : ----Entry
[ 1025.233319] evxfevnt-0413 [ffff8800b70d8000] [05] clear_event
    : ----Exit- AE_OK
[ 1025.233319] evxfevnt-0831 [ffff8800b70d8000] [05] disable_all_gpes
    : ----Entry
[ 1025.233319] evgpeblk-0144 [ffff8800b70d8000] [07] ev_walk_gpe_list
    : ----Entry
[ 1025.233319] evgpeblk-0178 [ffff8800b70d8000] [07] ev_walk_gpe_list
    : ----Exit- AE_OK
[ 1025.233319] evgpeblk-0144 [ffff8800b70d8000] [07] ev_walk_gpe_list
    : ----Entry
[ 1025.233319] evgpeblk-0178 [ffff8800b70d8000] [07] ev_walk_gpe_list
    : ----Exit- AE_OK
[ 1025.233319] evxfevnt-0841 [ffff8800b70d8000] [05] disable_all_gpes
    : ----Exit- AE_OK
[ 1025.233319] Back to C!
[ 1025.233319] CPU0: Thermal LVT vector (0xfa) already installed
[ 1025.233319] Enabling non-boot CPUs ...
[ 1025.233319] SMP alternatives: switching to SMP code
[ 1025.237548] Booting processor 1 APIC 0x1 ip 0x6000
[ 1025.232536] Initializing CPU#1
[ 1025.232536] Calibrating delay using timer specific routine..
4245.78 BogoMIPS (lpj=8491564)

Unfortunately the ACPI stuff is all Greek to me. If anyone wants
additional debug information then please let me know.

So any ideas?

-- 
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk

[-- Attachment #2: lspci.out --]
[-- Type: application/octet-stream, Size: 6472 bytes --]

00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
	Subsystem: ASUSTeK Computer Inc. Device 817a
	Flags: bus master, fast devsel, latency 0
	Capabilities: [e0] Vendor Specific Information <?>
	Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 817a
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at dfd00000 (32-bit, non-prefetchable) [size=512K]
	I/O ports at b800 [size=8]
	Memory at c0000000 (32-bit, prefetchable) [size=256M]
	Memory at dfd80000 (32-bit, non-prefetchable) [size=256K]
	Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Count=1/1 Enable-
	Capabilities: [d0] Power Management version 2
	Kernel driver in use: i915

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 81f6
	Flags: bus master, fast devsel, latency 0, IRQ 19
	Memory at dfdf8000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Count=1/1 Enable-
	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 0000e000-0000efff
	Memory behind bridge: dff00000-dfffffff
	Prefetchable memory behind bridge: 00000000def00000-00000000deffffff
	Capabilities: [40] Express Root Port (Slot-), MSI 00
	Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Count=1/1 Enable+
	Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 8179
	Capabilities: [a0] Power Management version 2
	Kernel driver in use: pcieport-driver

00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) (prog-if 00 [UHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8179
	Flags: bus master, medium devsel, latency 0, IRQ 20
	I/O ports at b880 [size=32]
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd

00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8179
	Flags: bus master, medium devsel, latency 0, IRQ 17
	I/O ports at bc00 [size=32]
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd

00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8179
	Flags: bus master, medium devsel, latency 0, IRQ 18
	I/O ports at c000 [size=32]
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd

00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01) (prog-if 00 [UHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8179
	Flags: bus master, medium devsel, latency 0, IRQ 19
	I/O ports at c080 [size=32]
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd

00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8179
	Flags: bus master, medium devsel, latency 0, IRQ 20
	Memory at dfdffc00 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [50] Power Management version 2
	Capabilities: [58] Debug port: BAR=1 offset=00a0
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 0000d000-0000dfff
	Memory behind bridge: dfe00000-dfefffff
	Capabilities: [50] Subsystem: ASUSTeK Computer Inc. Device 8179

00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 8179
	Flags: bus master, medium devsel, latency 0
	Capabilities: [e0] Vendor Specific Information <?>

00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) (prog-if 8a [Master SecP PriP])
	Subsystem: ASUSTeK Computer Inc. Device 8179
	Flags: bus master, medium devsel, latency 0, IRQ 18
	I/O ports at 01f0 [size=8]
	I/O ports at 03f4 [size=1]
	I/O ports at 0170 [size=8]
	I/O ports at 0374 [size=1]
	I/O ports at ffa0 [size=16]
	Kernel driver in use: PIIX_IDE

00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01) (prog-if 8f [Master SecP SecO PriP PriO])
	Subsystem: ASUSTeK Computer Inc. Device 2601
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 17
	I/O ports at cc00 [size=8]
	I/O ports at c880 [size=4]
	I/O ports at c800 [size=8]
	I/O ports at c480 [size=4]
	I/O ports at c400 [size=16]
	Capabilities: [70] Power Management version 2
	Kernel driver in use: ata_piix

00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 8179
	Flags: medium devsel, IRQ 17
	I/O ports at 0400 [size=32]
	Kernel driver in use: i801_smbus

01:02.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306 Fire II IEEE 1394 OHCI Link Layer Controller (rev c0) (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 81fe
	Flags: bus master, medium devsel, latency 64, IRQ 19
	Memory at dfeff800 (32-bit, non-prefetchable) [size=2K]
	I/O ports at dc00 [size=128]
	Capabilities: [50] Power Management version 2
	Kernel driver in use: firewire_ohci
	Kernel modules: firewire-ohci

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
	Subsystem: ASUSTeK Computer Inc. Device 81aa
	Flags: bus master, fast devsel, latency 0, IRQ 25
	I/O ports at e800 [size=256]
	Memory at dffff000 (64-bit, non-prefetchable) [size=4K]
	Memory at deff0000 (64-bit, prefetchable) [size=64K]
	Expansion ROM at dffc0000 [disabled] [size=128K]
	Capabilities: [40] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Count=1/1 Enable+
	Capabilities: [70] Express Endpoint, MSI 08
	Capabilities: [b0] MSI-X: Enable- Mask- TabSize=2
	Capabilities: [d0] Vital Product Data <?>
	Kernel driver in use: r8169


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

end of thread, other threads:[~2009-09-09  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-08 18:57 Machine resumes straight after suspend to RAM (or disk) Alex Bennee
2009-09-08 19:38 ` Rafael J. Wysocki
2009-09-08 20:05   ` Alex Bennee
2009-09-08 20:47 ` Maxim Levitsky
2009-09-09  7:04   ` Alex Bennee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox