Bug 346478

Summary: Long hangs during boot while initializing harddrives.
Product: [openSUSE] openSUSE 11.0 Reporter: Forgotten User ZhJd0F0L3x <forgotten_ZhJd0F0L3x>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: cgoncalves, dimstar, forgotten_qMyteedNxa, jeffm, mgress, suse
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: lspci -nnvvv
dmesg output
dmesg output (dimstar)

Description Forgotten User ZhJd0F0L3x 2007-12-06 12:10:24 UTC
My machine hangs here:

[    8.942017] Freeing unused kernel memory: 236k freed
[    9.010449] ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
[    9.023144] ACPI: Processor [CPU] (supports 8 throttling states)
[    9.039996] ACPI: Thermal Zone [THM0] (64 C)
[    9.061726] SCSI subsystem initialized
[    9.081321] libata version 3.00 loaded.
[    9.088476] ata_piix 0000:00:1f.1: version 2.12
[    9.088493] PCI: Enabling device 0000:00:1f.1 (0005 -> 0007)
[    9.101538] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[    9.114046] ACPI: PCI Interrupt 0000:00:1f.1[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
[    9.126905] PCI: Setting latency timer of device 0000:00:1f.1 to 64
[    9.126980] scsi0 : ata_piix
[    9.139724] scsi1 : ata_piix
[    9.152652] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x1860 irq 14
[    9.165667] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1868 irq 15

=== HERE ====

[    9.340969] ata1.00: ATA-6: ST960812A, 3.04, max UDMA/100
[    9.353647] ata1.00: 117210240 sectors, multi 16: LBA48
[    9.380821] ata1.00: configured for UDMA/100
[    9.484361] Clocksource tsc unstable (delta = -4175703340 ns)
[    9.497008] Time: acpi_pm clocksource has been installed.
[    9.537450] scsi 0:0:0:0: Direct-Access     ATA      ST960812A        3.04 PQ: 0 ANSI: 5
[    9.566471] BIOS EDD facility v0.16 2004-Jun-25, 6 devices found
[    9.679891] usbcore: registered new interface driver usbfs

for ~10 seconds during boot (even though the timestamps are not increasing).

Will attach lspci -nnvvv, the machine is a Thinkpad X32.
Comment 1 Forgotten User ZhJd0F0L3x 2007-12-06 12:11:12 UTC
Created attachment 186156 [details]
lspci -nnvvv
Comment 2 Tejun Heo 2007-12-06 12:20:38 UTC
Does 'clock=pit' help?
Comment 3 Tejun Heo 2007-12-06 12:22:57 UTC
To explain a bit.  I think what's wrong here is the timer not the ata_piix driver.  libata probing contains a bunch of msleep()'s and it seems the pulse stops during one of those sleeps.  Later clock code sees that tsc timer doesn't work too well and switch to acpi_pm.  Ah... the parameter should be "clocksource=acpi_pm" or "clocksource=hpet".
Comment 4 Tejun Heo 2007-12-10 09:49:23 UTC
*** Bug 345442 has been marked as a duplicate of this bug. ***
Comment 5 Forgotten User qMyteedNxa 2007-12-10 20:56:27 UTC
>Does 'clock=pit' help?
yes, confirmed!

>why doesn`t timing/profiling information show the delay ?
>i would have expected something like this
><6>[   24.730725] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1c28 irq
15
>( >10s wait here)
><6>[   34.891676] ata1.00: ATA-6: ST92011A, 3.04, max UDMA/100
>maybe i`m misinterpreting the timing output?
now i understand! :)
Comment 7 Forgotten User ZhJd0F0L3x 2007-12-11 12:29:43 UTC
clocksource=acpi_pm helped for me, on the ThinkPad X32, too. Sorry for the latency in anwering.
Comment 8 mark gress 2007-12-14 14:00:17 UTC
Libata won't even work for me at all w/ OS 11 alpha 0.  I have to select a different driver and still get long hangs at boot time.

https://bugzilla.novell.com/show_bug.cgi?id=300685

Been having various problems since I got solid state media.  Being an early adopter sucks.  :-(
Comment 9 Jeff Mahoney 2008-01-07 21:26:19 UTC
Andi, any idea how to get around the early timer stuff?
Comment 10 Andreas Kleen 2008-01-09 05:03:24 UTC
Can we get full boot logs please?
Comment 11 Forgotten User qMyteedNxa 2008-01-13 22:03:23 UTC
Created attachment 190379 [details]
dmesg output
Comment 12 Forgotten User qMyteedNxa 2008-01-13 22:04:00 UTC
here we go
Comment 13 Forgotten User ZhJd0F0L3x 2008-01-16 14:41:04 UTC
Note that i cannot reproduce that any longer with current STABLE kernel
2.6.24-rc7-git5-2-default
Comment 14 Forgotten User qMyteedNxa 2008-01-26 17:30:52 UTC
*** Bug 355811 has been marked as a duplicate of this bug. ***
Comment 15 Carlos Gonçalves 2008-02-01 11:54:23 UTC
*** Bug 357665 has been marked as a duplicate of this bug. ***
Comment 16 Carlos Gonçalves 2008-02-01 11:56:03 UTC
I still can reproduce it with 2.6.24 (final) from Factory.
In my case it hangs for ~5 minutes!
Comment 17 Carlos Gonçalves 2008-02-18 19:09:14 UTC
I can no longer reproduce it with Alpha 2 final.

Can anyone confirm this too so we can close this bug report?
Comment 18 Dominique Leuenberger 2008-02-19 17:09:48 UTC
2.6.24 still showed the long delay when I don't have clocksource=acpi_pm in the kernel parameters.

I'm just upgrading to 2.6.24.1 (current factory kernel) and give it a reboot without the clocksource again... to see if this helps. Otherwise, I actually don't mind having the clocksource parameter there, but it should be added automatically during the setup in this case.
Comment 19 Dominique Leuenberger 2008-02-19 18:00:22 UTC
Created attachment 195752 [details]
dmesg output (dimstar)

My notebook hangs at line 291 for about 1 minute...
with kernel 2.6.24.1-3-default

if Iadd clocksource=acpi_pm to the kernel parameters, the hang is not happening.
Comment 21 Dominique Leuenberger 2008-03-19 08:41:10 UTC
when I last tried with kernel 2.6.25-rc2, the delay was no longer there even without the clocksource parameter... 
Comment 22 Jeff Mahoney 2008-03-19 14:59:16 UTC
Great, closing as fixed.
Comment 23 Jan Ritzerfeld 2008-05-07 17:54:02 UTC
Sorry, but using 11.0 Beta2, I have still such a 10 second delay on boot. But neither clock=pit does not help nor clocksource=acpi_pm. I own a ThinkPad R61.
Comment 24 Greg Kroah-Hartman 2008-05-07 20:13:08 UTC
Jan, please open a new bug, I think this is a different one, or at the least, it is the same one as bug 371776
Comment 25 Jan Ritzerfeld 2008-05-08 16:00:20 UTC
Bug 388295 submitted.