Bug 8235 - BUG lapic: Can't boot on battery
Summary: BUG lapic: Can't boot on battery
Status: RESOLVED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Timers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Thomas Gleixner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-19 11:39 UTC by Stefan Prechtel
Modified: 2007-03-29 14:40 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.21-rc{1,2,3,4}
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
Boot with ac plugged in + lapic (26.29 KB, application/octet-stream)
2007-03-19 11:41 UTC, Stefan Prechtel
Details
Boot with ac plugged in + nolapic (21.43 KB, application/octet-stream)
2007-03-19 11:42 UTC, Stefan Prechtel
Details
Boot on battery + lapic (30.25 KB, text/plain)
2007-03-19 11:46 UTC, Stefan Prechtel
Details
Boot on battery + nolapic (21.88 KB, text/plain)
2007-03-19 11:47 UTC, Stefan Prechtel
Details
.config (45.38 KB, text/plain)
2007-03-19 11:49 UTC, Stefan Prechtel
Details
Bootlog 2.6.20.3: on ac + lapic (25.98 KB, text/plain)
2007-03-19 14:54 UTC, Stefan Prechtel
Details
Bootlog 2.6.20.3: on battery + lapic (26.33 KB, text/plain)
2007-03-19 14:55 UTC, Stefan Prechtel
Details
dmesg from 2.6.20 on battery with WARN_ON_ONCE patch (19.57 KB, text/plain)
2007-03-20 09:50 UTC, Grzegorz Chwesewicz
Details
dmidecode (6.84 KB, text/plain)
2007-03-21 05:38 UTC, Stefan Prechtel
Details
dmidecode (6.84 KB, text/plain)
2007-03-21 05:53 UTC, Stefan Prechtel
Details
Bootlog 2.6.21-rc4-git5 + "nolapic_timer" on AC (27.87 KB, text/plain)
2007-03-21 05:54 UTC, Stefan Prechtel
Details
Bootlog 2.6.21-rc4-git5 + "nolapic_timer" on Battery (28.40 KB, text/plain)
2007-03-21 05:55 UTC, Stefan Prechtel
Details
Bootlog when on AC (after Andi Kleen's patch) (20.44 KB, text/plain)
2007-03-29 14:40 UTC, Grzegorz Chwesewicz
Details
Bootlog when on battery (after Andi Kleen's patch) (20.49 KB, text/plain)
2007-03-29 14:40 UTC, Grzegorz Chwesewicz
Details

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)

Note You need to log in before you can comment on or make changes to this bug.