Bug 8235

Summary: BUG lapic: Can't boot on battery
Product: Timers Reporter: Stefan Prechtel (stefan.prechtel)
Component: OtherAssignee: Thomas Gleixner (tglx)
Status: RESOLVED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: tglx
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.21-rc{1,2,3,4} Subsystem:
Regression: --- Bisected commit-id:
Attachments: Boot with ac plugged in + lapic
Boot with ac plugged in + nolapic
Boot on battery + lapic
Boot on battery + nolapic
.config
Bootlog 2.6.20.3: on ac + lapic
Bootlog 2.6.20.3: on battery + lapic
dmesg from 2.6.20 on battery with WARN_ON_ONCE patch
dmidecode
dmidecode
Bootlog 2.6.21-rc4-git5 + "nolapic_timer" on AC
Bootlog 2.6.21-rc4-git5 + "nolapic_timer" on Battery
Bootlog when on AC (after Andi Kleen's patch)
Bootlog when on battery (after Andi Kleen's patch)

Description Stefan Prechtel 2007-03-19 11:39:12 UTC
Most recent kernel where this bug did *NOT* occur:
Distribution:
Hardware Environment:
Software Environment:
Problem Description:
Kernel-boot hangs on battery. When pluggin in ac, system starts normal.

Steps to reproduce:
Boot without ac plugged in.
Comment 1 Stefan Prechtel 2007-03-19 11:41:13 UTC
Created attachment 10840 [details]
Boot with ac plugged in + lapic
Comment 2 Stefan Prechtel 2007-03-19 11:42:09 UTC
Created attachment 10841 [details]
Boot with ac plugged in + nolapic
Comment 3 Stefan Prechtel 2007-03-19 11:46:49 UTC
Created attachment 10842 [details]
Boot on battery + lapic

System hangs first at "[    0.273000] NET: Registered protocol family 2";
pressing a button the start goes on. 
Second hang at "[    0.838000] scsi1 : sata_sil";
Here I plugged shortly ac-cable in and removed it again.
Comment 4 Stefan Prechtel 2007-03-19 11:47:18 UTC
Created attachment 10843 [details]
Boot on battery + nolapic
Comment 5 Stefan Prechtel 2007-03-19 11:49:04 UTC
Created attachment 10844 [details]
.config
Comment 6 john stultz 2007-03-19 11:52:30 UTC
Does booting w/ clocksource=acpi_pm avoid the problem?
Comment 7 Thomas Gleixner 2007-03-19 12:29:26 UTC
Further discussion on LKML

http://lkml.org/lkml/2007/3/19/200
Comment 8 Stefan Prechtel 2007-03-19 14:54:37 UTC
Created attachment 10849 [details]
Bootlog 2.6.20.3: on ac + lapic
Comment 9 Stefan Prechtel 2007-03-19 14:55:15 UTC
Created attachment 10850 [details]
Bootlog 2.6.20.3: on battery + lapic
Comment 10 Grzegorz Chwesewicz 2007-03-20 09:50:48 UTC
Created attachment 10873 [details]
dmesg from 2.6.20 on battery with WARN_ON_ONCE patch
Comment 11 Stefan Prechtel 2007-03-21 05:38:20 UTC
Created attachment 10889 [details]
dmidecode
Comment 12 Stefan Prechtel 2007-03-21 05:53:09 UTC
Created attachment 10890 [details]
dmidecode

patched kernel (2.6.21-rc4-git5 + "nolapic_timer")
Comment 13 Stefan Prechtel 2007-03-21 05:54:50 UTC
Created attachment 10891 [details]
Bootlog 2.6.21-rc4-git5 + "nolapic_timer" on AC
Comment 14 Stefan Prechtel 2007-03-21 05:55:30 UTC
Created attachment 10892 [details]
Bootlog 2.6.21-rc4-git5 + "nolapic_timer" on Battery
Comment 15 Thomas Gleixner 2007-03-21 07:40:11 UTC
Patch to disable local apic timer on the kernel command line solved the problem.
The final patch detects the known broken nx6325 via dmi quirk and disables the
local apic timer on those systems.
Comment 16 Grzegorz Chwesewicz 2007-03-21 08:16:07 UTC
Patch can be found on http://lkml.org/lkml/diff/2007/3/21/138/1
Comment 17 Grzegorz Chwesewicz 2007-03-29 14:40:07 UTC
Created attachment 10994 [details]
Bootlog when on AC (after Andi Kleen's patch)
Comment 18 Grzegorz Chwesewicz 2007-03-29 14:40:35 UTC
Created attachment 10995 [details]
Bootlog when on battery (after Andi Kleen's patch)