Bug 4020
Summary: | Reboot no longer works after suspend | ||
---|---|---|---|
Product: | ACPI | Reporter: | Pedro C (pedro) |
Component: | Power-Sleep-Wake | Assignee: | Shaohua (shaohua.li) |
Status: | REJECTED DUPLICATE | ||
Severity: | normal | CC: | acpi-bugzilla |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.10-ac8 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Pedro C
2005-01-11 04:26:52 UTC
Is there any message in the screen when reboot? The system shuts down normally and the last message says it is going to reboot. It just doesn't. can you try rebooting multiple times without S3. And check whether it works ok. It had always worked fine before S3, with every kernel. And when I don't do S3 I don't remember any time it didn't work. If you need an actual extensive test, I'll do it. By the way, this is the log of a suspend-resume cycle: ---------------------- PM: Preparing system for suspend Stopping tasks: ==============================================================================================================| PM: Entering state. Back to C! Warning: CPU frequency is 1300000, cpufreq assumed 600000 kHz. PM: Finishing up. ACPI: PCI interrupt 0000:00:02.0[A] -> GSI 5 (level, low) -> IRQ 5 PCI: Setting latency timer of device 0000:00:1d.0 to 64 PCI: Setting latency timer of device 0000:00:1d.1 to 64 PCI: Setting latency timer of device 0000:00:1d.2 to 64 ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 5 (level, low) -> IRQ 5 ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 4 (level, low) -> IRQ 4 PCI: Setting latency timer of device 0000:00:1f.5 to 64 MCE: The hardware reports a non fatal, correctable incident occurred on CPU 0. Bank 1: f200000000000115 ACPI: PCI interrupt 0000:01:03.2[C] -> GSI 5 (level, low) -> IRQ 5 eth0: link down ipw2100: eth1: ipw2100_verify failed: -5 ipw2100: eth1: Failed to power on the adapter. ipw2100: eth1: Failed to start the firmware. eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 Restarting tasks... done ---------------------------- If I have PCMCIA on it will give some warnings about socket power. But I don't use PCMCIA. So you actually look at 'Restarting system.' on the screen, right? Did deleting the line of 'lapic_shutdown' in machine_restart (i386/kernel/reboot.c) help? 2.6.11 still has this bug. 'Restarting system.' shows up on the screen, but the system doesn't actually reboot. Could you send me a patch for that lapic_shutdown change if you still want me to test that? Could we have an update with latest kernel on the system? Thanks! 2.6.12 still has the problem. Does keyboard work after resume? can you try boot option 'reboot=bc'? 2.6.13 shows the same problem. The keyboard as well as everything else except IrDA (bug #3928) works fine. Using "reboot=bc" as a boot option made no difference. Can you narrow the bug down to see which step the system hang? You can add some print something in arch/i386/kernel/reboot.c::machine_restart. Here's my new machine_restart: void machine_restart(char * __unused) { printk("REBOOT DEBUG: Before shutdown\n"); machine_shutdown(); printk("REBOOT DEBUG: After shutdown, Before restart\n"); machine_emergency_restart(); printk("REBOOT DEBUG: After restart\n"); } None of this got triggered on a restart after suspend. It just didn't restart and showed no extra messages that I could see. On a regular restart when I didn't suspend I didn't see the messages but it scrolls pretty fast so I'm not sure. Was this what you meant with the print stuff? Did I do something wrong? No, you did the right thing. It's strange you looked at the 'Restarting system.' but didn't looked at the message you added. This message is printed in 'kernel_restart' and just before calling 'machine_restart'. Does changing printk(...) to printk(KERN_EMERG...) show the message? My machine_restart is now: void machine_restart(char * __unused) { printk(KERN_EMERG "REBOOT DEBUG: Before shutdown\n"); machine_shutdown(); printk(KERN_EMERG "REBOOT DEBUG: After shutdown, Before restart\n"); machine_emergency_restart(); printk(KERN_EMERG "REBOOT DEBUG: After restart\n"); } With this I see the first two messages but not the third and last. That's great! Could you please also do the same thing in 'machine_emergency_restart()'? Lets look at which step it failed. 'machine_emergency_restart' is in arch/i386/kernel/reboot.c. I would suppose machine_restart caused the hang. That's great! Could you please also do the same thing in 'machine_emergency_restart()'? Lets look at which step it failed. 'machine_emergency_restart' is in arch/i386/kernel/reboot.c. I would suppose mach_restart caused the hang. It's hanging inside mach_reboot(). Does keyboard work in your system after resume? Also could you please try the patch at http://lkml.org/lkml/2005/8/23/16? I'm not the original submitter, but i'm experience the same with different HW. Distribution: Debian Sid Hardware Environment: MSI S260 Centrino notebook Software Environment: confirmed with kernel 2.6.14 and 2.6.15 Seems that 2.6.15 includes the http://lkml.org/lkml/2005/8/23/16 patch. After resume keyboard (and all the system) works flawlessy, only reboot hangs, shutdown instead works ok. Ask freely if you need other info. But my problem is just that, reboot hanging. My keyboard and rest has always worked fine. |