| Summary: | [emenlow] system cannot enter S3 standby mode | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Jiajun Xu <jiajun.xu> |
| Component: | meta-yocto | Assignee: | Tom Zanussi <tom.zanussi> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | hongnax.xu, jessica.zhang, kevin.tian, kunwei.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw, wenhuax.fan |
| Version: | 0.9 | ||
| Target Milestone: | 1.2 | ||
| Hardware: | E-Menlow | ||
| OS: | x86 | ||
| Whiteboard: | scheduled for completion on or before 1.1 M4 RC1 (Sept 6) | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Jiajun Xu
2010-10-20 23:06:16 UTC
It takes a few seconds, but it did seem to go into standby mode. The power button goes off and the system comes back to the same state when powered back on, that is everything except for the display, which stays black and can't be brought back. My first check of this using the following poky/meta-intel commits actually worked perfectly. Subsequent tries failed. In the failed tries, the system goes into S3 state successfully and comes out successfully, except for video. In the successful try, video/mouse/keyboard also came out successfully. This is all using 'live mode' booting off of usb. I also had more successful attempts after I first installed to hd, but subsequent attempts mostly failed, though some did succeed. Again, 'failed' means only that video didn't come back, but network came back ok, etc and the system was functional except for video. Trial and error showed that I could always successfully have S3 work and come back with video and everything else working if I removed the live USB key after issuing 'echo mem > /sys/power/state'. The interesting thing is that in the 'successful' case, with video and everything else coming back, there was actually a kernel panic in the restore. See below. poky: f432f1b01069c2083d420a2accde169f2dafdfab meta-intel: 9497c977021d7cf76b129f5baeac0ea0b9f10e22 This is the output of dmesg from an 'unsuccessful' restore i.e. video doesn't come back: PM: Syncing filesystems ... done. [drm] RGB0-1: set mode 1366x768 15 Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. Suspending console(s) (use no_console_suspend to debug) drm_sysfs_suspend sd 0:0:0:0: [sda] Synchronizing SCSI cache sd 0:0:0:0: [sda] Stopping disk serial 00:05: disabled sdhci-pci 0000:00:1e.2: PCI INT C disabled sdhci-pci 0000:00:1e.1: PCI INT B disabled sdhci-pci 0000:00:1e.0: PCI INT A disabled uhci_hcd 0000:00:1d.2: PCI INT C disabled uhci_hcd 0000:00:1d.0: PCI INT A disabled psb 0000:00:02.0: PCI INT A disabled uhci_hcd 0000:00:1d.1: PCI INT B disabled ehci_hcd 0000:00:1d.7: PCI INT D disabled e1000e 0000:02:00.0: PME# enabled pci 0000:00:1c.1: wake-up capability enabled by ACPI HDA Intel 0000:00:1b.0: PCI INT A disabled PM: suspend of devices complete after 707.723 msecs PM: late suspend of devices complete after 15.553 msecs ACPI: Preparing to enter system sleep state S3 PM: Saving platform NVS memory Extended CMOS year: 2000 Back to C! PM: Restoring platform NVS memory Extended CMOS year: 2000 ACPI: Waking up from system sleep state S3 HDA Intel 0000:00:1b.0: restoring config space at offset 0x1 (was 0x100006, writing 0x100002) pci 0000:00:1c.0: restoring config space at offset 0x9 (was 0xfff0, writing 0x80308020) pci 0000:00:1c.0: restoring config space at offset 0x8 (was 0xfff0, writing 0x80108000) pci 0000:00:1c.0: restoring config space at offset 0x7 (was 0xf0, writing 0x1010) pci 0000:00:1c.0: restoring config space at offset 0x1 (was 0x100104, writing 0x100107) pci 0000:00:1c.1: restoring config space at offset 0x9 (was 0xfff0, writing 0x80508040) uhci_hcd 0000:00:1d.0: restoring config space at offset 0x1 (was 0x5, writing 0x1) uhci_hcd 0000:00:1d.1: restoring config space at offset 0x1 (was 0x5, writing 0x1) uhci_hcd 0000:00:1d.2: restoring config space at offset 0x1 (was 0x5, writing 0x1) ehci_hcd 0000:00:1d.7: restoring config space at offset 0x1 (was 0x100006, writing 0x100002) e1000e 0000:02:00.0: restoring config space at offset 0x3 (was 0x8, writing 0x10) PM: early resume of devices complete after 0.713 msecs psb 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [psb:0x02:psb_gtt_init] GTT phys start: 0x7ffe0000. [psb:0x02:psb_gtt_init] GTT start: 0xdff60000. [psb:0x02:psb_gtt_init] GATT start: 0xd0000000. [psb:0x02:psb_gtt_init] GTT pages: 32 [psb:0x02:psb_gtt_init] Stolen size: 3964 kiB [psb:0x02:psb_gtt_init] Set up 991 stolen pages starting at 0x0007fc00 [psb:0x02:psb_gtt_init] Initializing the rest of a total of 32768 gtt pages. HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 HDA Intel 0000:00:1b.0: setting latency timer to 64 pci 0000:00:1c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 pci 0000:00:1c.0: setting latency timer to 64 pci 0000:00:1c.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17 pci 0000:00:1c.1: setting latency timer to 64 uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 uhci_hcd 0000:00:1d.0: setting latency timer to 64 usb usb2: root hub lost power or was reset uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17 uhci_hcd 0000:00:1d.1: setting latency timer to 64 usb usb3: root hub lost power or was reset uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18 uhci_hcd 0000:00:1d.2: setting latency timer to 64 usb usb4: root hub lost power or was reset ehci_hcd 0000:00:1d.7: PCI INT D -> GSI 19 (level, low) -> IRQ 19 ehci_hcd 0000:00:1d.7: setting latency timer to 64 sdhci-pci 0000:00:1e.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 sdhci-pci 0000:00:1e.0: setting latency timer to 64 sdhci-pci 0000:00:1e.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17 sdhci-pci 0000:00:1e.1: setting latency timer to 64 sdhci-pci 0000:00:1e.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18 sdhci-pci 0000:00:1e.2: setting latency timer to 64 pata_sch 0000:00:1f.1: setting latency timer to 64 pci 0000:00:1c.1: wake-up capability disabled by ACPI e1000e 0000:02:00.0: PME# disabled serial 00:05: activated sd 0:0:0:0: [sda] Starting disk [drm] RGB0-1: set mode 1366x768 15 usb 2-2: reset low speed USB device using uhci_hcd and address 2 usb 3-2: reset low speed USB device using uhci_hcd and address 2 e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX e1000e 0000:02:00.0: eth0: 10/100 speed: disabling TSO ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out ata1.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out ata1.00: configured for UDMA/100 PM: resume of devices complete after 2719.694 msecs Restarting tasks ... done. [psb:0x01:psb_irq_postinstall] Setting up MSVDX IRQs..... buffer underrun 0x2 This is the output of dmesg from a 'failed' restore i.e. video does come back: PM: Syncing filesystems ... done. [drm] RGB0-1: set mode 1366x768 15 Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. Suspending console(s) (use no_console_suspend to debug) drm_sysfs_suspend serial 00:05: disabled sd 0:0:0:0: [sda] Synchronizing SCSI cache sd 0:0:0:0: [sda] Stopping disk sdhci-pci 0000:00:1e.2: PCI INT C disabled sdhci-pci 0000:00:1e.1: PCI INT B disabled sdhci-pci 0000:00:1e.0: PCI INT A disabled uhci_hcd 0000:00:1d.2: PCI INT C disabled uhci_hcd 0000:00:1d.0: PCI INT A disabled psb 0000:00:02.0: PCI INT A disabled uhci_hcd 0000:00:1d.1: PCI INT B disabled ehci_hcd 0000:00:1d.7: PCI INT D disabled e1000e 0000:02:00.0: PCI INT A disabled e1000e 0000:02:00.0: PME# enabled pci 0000:00:1c.1: wake-up capability enabled by ACPI HDA Intel 0000:00:1b.0: PCI INT A disabled PM: suspend of devices complete after 688.615 msecs PM: late suspend of devices complete after 15.162 msecs ACPI: Preparing to enter system sleep state S3 PM: Saving platform NVS memory Extended CMOS year: 2000 Back to C! PM: Restoring platform NVS memory Extended CMOS year: 2000 ACPI: Waking up from system sleep state S3 HDA Intel 0000:00:1b.0: restoring config space at offset 0x1 (was 0x100006, writing 0x100002) pci 0000:00:1c.0: restoring config space at offset 0x9 (was 0xfff0, writing 0x80308020) pci 0000:00:1c.0: restoring config space at offset 0x8 (was 0xfff0, writing 0x80108000) pci 0000:00:1c.0: restoring config space at offset 0x7 (was 0xf0, writing 0x1010) pci 0000:00:1c.0: restoring config space at offset 0x1 (was 0x100104, writing 0x100107) pci 0000:00:1c.1: restoring config space at offset 0x9 (was 0xfff0, writing 0x80508040) uhci_hcd 0000:00:1d.0: restoring config space at offset 0x1 (was 0x5, writing 0x1) uhci_hcd 0000:00:1d.1: restoring config space at offset 0x1 (was 0x5, writing 0x1) uhci_hcd 0000:00:1d.2: restoring config space at offset 0x1 (was 0x5, writing 0x1) ehci_hcd 0000:00:1d.7: restoring config space at offset 0x1 (was 0x100006, writing 0x100002) e1000e 0000:02:00.0: restoring config space at offset 0x3 (was 0x8, writing 0x10) PM: early resume of devices complete after 0.712 msecs psb 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [psb:0x02:psb_gtt_init] GTT phys start: 0x7ffe0000. [psb:0x02:psb_gtt_init] GTT start: 0xdff60000. [psb:0x02:psb_gtt_init] GATT start: 0xd0000000. [psb:0x02:psb_gtt_init] GTT pages: 32 [psb:0x02:psb_gtt_init] Stolen size: 3964 kiB [psb:0x02:psb_gtt_init] Set up 991 stolen pages starting at 0x0007fc00 [psb:0x02:psb_gtt_init] Initializing the rest of a total of 32768 gtt pages. HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 HDA Intel 0000:00:1b.0: setting latency timer to 64 pci 0000:00:1c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 pci 0000:00:1c.0: setting latency timer to 64 pci 0000:00:1c.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17 pci 0000:00:1c.1: setting latency timer to 64 uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 uhci_hcd 0000:00:1d.0: setting latency timer to 64 usb usb2: root hub lost power or was reset uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17 uhci_hcd 0000:00:1d.1: setting latency timer to 64 usb usb3: root hub lost power or was reset uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18 uhci_hcd 0000:00:1d.2: setting latency timer to 64 usb usb4: root hub lost power or was reset ehci_hcd 0000:00:1d.7: PCI INT D -> GSI 19 (level, low) -> IRQ 19 ehci_hcd 0000:00:1d.7: setting latency timer to 64 sdhci-pci 0000:00:1e.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 sdhci-pci 0000:00:1e.0: setting latency timer to 64 sdhci-pci 0000:00:1e.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17 sdhci-pci 0000:00:1e.1: setting latency timer to 64 sdhci-pci 0000:00:1e.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18 sdhci-pci 0000:00:1e.2: setting latency timer to 64 pata_sch 0000:00:1f.1: setting latency timer to 64 pci 0000:00:1c.1: wake-up capability disabled by ACPI e1000e 0000:02:00.0: PME# disabled serial 00:05: activated sd 0:0:0:0: [sda] Starting disk [drm] RGB0-1: set mode 1366x768 15 usb 2-2: reset low speed USB device using uhci_hcd and address 2 usb 3-2: reset low speed USB device using uhci_hcd and address 2 e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX e1000e 0000:02:00.0: eth0: 10/100 speed: disabling TSO ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out ata1.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out ata1.00: configured for UDMA/100 PM: resume of devices complete after 2656.076 msecs Restarting tasks ... usb 1-5: USB disconnect, address 4 BUG: unable to handle kernel NULL pointer dereference at 00000010 IP: [<c10e79f2>] __mark_inode_dirty+0x112/0x1f0 *pde = 00000000 Oops: 0000 [#1] PREEMPT last sysfs file: /sys/devices/virtual/vc/vcsa63/uevent Modules linked in: drm psb ipv6 Pid: 467, comm: loop0 Not tainted 2.6.37.1-yocto-standard+ #1 To Be Filled By O.E.M. To Be Filled By O.E.M./To be filled by O.E.M. EIP: 0060:[<c10e79f2>] EFLAGS: 00010246 CPU: 0 EIP is at __mark_inode_dirty+0x112/0x1f0 EAX: 00000001 EBX: f5b32304 ECX: f62f2170 EDX: c158b528 ESI: 00000000 EDI: 00000000 EBP: f5507ec0 ESP: f5507e9c DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 Process loop0 (pid: 467, ti=f5506000 task=f576bb60 task.ti=f5506000) Stack: f5507f28 c114d630 f5b322e0 c1464c78 00000001 c10df453 f5b32304 f54a5c00 4d822764 f5507edc c10dbc7a 00000000 00000003 00000400 192fec00 00000000 f5507f3c c1247af8 192fec00 00000000 00000400 00000000 f5507f2c f5507f28 Call Trace: [<c114d630>] ? fat_get_block+0x0/0x270 [<c1464c78>] ? sub_preempt_count+0x8/0xa0 [<c10df453>] ? mnt_clone_write+0x43/0x70 [<c10dbc7a>] ? file_update_time+0xaa/0x130 [<c1247af8>] ? do_lo_send_aops+0x78/0x1c0 [<c1248230>] ? transfer_none+0x0/0x80 [<c1247f6e>] ? loop_thread+0x32e/0x4b0 [<c1247a80>] ? do_lo_send_aops+0x0/0x1c0 [<c1247c00>] ? do_lo_send_aops+0x180/0x1c0 [<c104b040>] ? autoremove_wake_function+0x0/0x50 [<c1247c40>] ? loop_thread+0x0/0x4b0 [<c104ac74>] ? kthread+0x74/0x80 [<c104ac00>] ? kthread+0x0/0x80 [<c10033b6>] ? kernel_thread_helper+0x6/0x10 Code: 20 75 94 a8 07 75 90 8b b3 98 00 00 00 ba 28 b5 58 c1 8b 46 1c 8b 00 e8 5d c2 0d 00 85 c0 75 71 8b 83 a0 00 00 00 8b 78 38 31 f6 <f6> 47 10 02 8d 87 a0 00 00 00 89 45 f0 75 1e 8b 47 0c a8 10 0f EIP: [<c10e79f2>] __mark_inode_dirty+0x112/0x1f0 SS:ESP 0068:f5507e9c CR2: 0000000000000010 ---[ end trace 32c6146ae9d94510 ]--- note: loop0[467] exited with preempt_count 1 VFS: busy inodes on changed media or resized disk sdb done. [psb:0x01:psb_irq_postinstall] Setting up MSVDX IRQs..... buffer underrun 0x1 We can't get expectant result in Yocto 1.1 20110617 build testing. Run the command 'echo mem > /sys/power/state' against latest image, system still can't enter S3 standby mode. Image location: http://autobuilder03.jf.intel.com/pub/emenlow/20110916-1/machines/emenlow/core-image-sato-sdk-emenlow-20110916085642.hddimg Commit information: Tree/Branch: Poky/1.1_M4 Commit id: bb4a5c44da23a1bb363f1f081cf1644fd7975957 Meta Branch: 1.1_M4 Commit id: 49277afd9e5e510f7b1f82fd8cd10732e3bf2633 The bug is not reproducible. 1.Run the command 'echo mem > /sys/power/state' , system enter S3 standby mode. 2.Press the power button , the system can recover normally. Image location: http://autobuilder03.jf.intel.com/pub/emenlow/20111206-1/machines/emenlow/core-image-minimal-emenlow-20111207041433.hddimg Commit information: Tree/Branch: Poky/1.2_M1 Commit id: b9d3a5224c7f76f273d5919a88b7460d35ad2574 Meta Branch: master branch Commit id: 3d5574efe623923b24f78d77f1d4bd8ef8432698 The bug is not reproducible with the followed image,so set the status resoved fixed. If anyone encounter this bug, pls reopen it. Image location: http://autobuilder03.jf.intel.com/pub/emenlow/20111213-1/machines/emenlow/core-image-sato-sdk-emenlow-20111214073225.hddimg Commit information: Tree/Branch: Poky/1.2_M1 Commit: b806f726b1db2cb605869c1022ef727c1110255b Meta: Master Commit: b6d5d9a3b06caf578103a04dc5fcf5e476343205 It is fixed and verified on test version 1.1.1. Poky/edison gitinfo: 69a3fba2aabfa37ebf27d9a2f33304d1c58e4436 meta-intel gitinfo: edison:34478f24de65dd8de8a4c8b913a1458d82dac1fa Images location: http://autobuilder03.jf.intel.com/pub/nightly-meta-intel/20120217-1/machines/emenlow/core-image-sato-sdk-emenlow-20120217231115.hddimg |