[Hardy] ATA resets 3 times before correctly activating
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: linux-source-2.6.24
I'm running linux-2.6.24 on amd64 :
ii linux-image-
And experience serious problem at boot time, causing me not to be able to enter my HDD passphrase if I boot with usplash as ATA fails to activate before usplash's timeout.
Here is the error I got at boot time :
[ 23.536181] ACPI: PCI Interrupt 0000:02:06.1[B] -> GSI 19 (level, low) -> IRQ 19
[ 23.586461] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[19] MMIO=[f4101000-
[ 23.586718] ahci 0000:00:1f.2: version 3.0
[ 23.586757] ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 17 (level, low) -> IRQ 17
[ 23.587522] ahci 0000:00:1f.2: nr_ports (4) and implemented port map (0x1) don't match, using nr_ports
[ 23.587611] ahci 0000:00:1f.2: forcing PORTS_IMPL to 0xf
[ 23.639283] usb 1-1: configuration #1 chosen from 1 choice
[ 24.589227] ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 1.5 Gbps 0xf impl SATA mode
[ 24.589325] ahci 0000:00:1f.2: flags: 64bit ncq ilck stag pm led clo pmp pio slum part
[ 24.589418] PCI: Setting latency timer of device 0000:00:1f.2 to 64
[ 24.590257] scsi0 : ahci
[ 24.590523] scsi1 : ahci
[ 24.590729] scsi2 : ahci
[ 24.590927] scsi3 : ahci
[ 24.591047] ata1: SATA max UDMA/133 abar m1024@0xf4585000 port 0xf4585100 irq 509
[ 24.591132] ata2: SATA max UDMA/133 abar m1024@0xf4585000 port 0xf4585180 irq 509
[ 24.591215] ata3: SATA max UDMA/133 abar m1024@0xf4585000 port 0xf4585200 irq 509
[ 24.591298] ata4: SATA max UDMA/133 abar m1024@0xf4585000 port 0xf4585280 irq 509
[ 25.228089] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 25.231277] ata1.00: ACPI cmd b1/c1:00:
[ 25.232630] ata1: failed to recover some devices, retrying in 5 secs
[ 31.872471] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 31.875642] ata1.00: ACPI cmd b1/c1:00:
[ 31.876235] ata1.00: ACPI on devcfg failed the second time, disabling (errno=-5)
[ 31.876323] ata1.00: revalidation failed (errno=1)
[ 31.876394] ata1: failed to recover some devices, retrying in 5 secs
[ 38.516855] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 38.519153] ata1.00: configured for UDMA/100
[ 38.836297] ata2: SATA link down (SStatus 0 SControl 0)
[ 39.155738] ata3: SATA link down (SStatus 0 SControl 0)
[ 39.475179] ata4: SATA link down (SStatus 0 SControl 0)
[ 39.475397] scsi 0:0:0:0: Direct-Access ATA HTS541010G9SA00 MBZO PQ: 0 ANSI: 5
[ 39.476194] ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 20 (level, low) -> IRQ 20
[ 39.476838] PCI: Setting latency timer of device 0000:00:1d.7 to 64
As you can see, it takes at least 10s to reactivate and detects the drive.
After that, it correctly asks for my passphrase and boots normally, then if I look at the kernel log I see that happening after some time :
[ 9032.736303] ata5.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[ 9032.736325] ata5.00: cmd a0/00:00:
[ 9032.736326] cdb 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 9032.736328] res 40/00:03:
[ 9032.736330] ata5.00: status: { DRDY }
[ 9037.743501] ata5: port is slow to respond, please be patient (Status 0xd0)
[ 9042.758755] ata5: device not ready (errno=-16), forcing hardreset
[ 9042.758771] ata5: soft resetting link
[ 9043.287232] ata5.00: configured for MWDMA2
[ 9043.287251] ata5: EH complete
[10046.180592] ata5.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[10046.180610] ata5.00: cmd a0/00:00:
[10046.180612] cdb 43 00 00 00 00 00 00 00 0c 40 00 00 00 00 00 00
[10046.180614] res 40/00:03:
[10046.180619] ata5.00: status: { DRDY }
[10051.188688] ata5: port is slow to respond, please be patient (Status 0xd0)
[10056.178970] ata5: device not ready (errno=-16), forcing hardreset
[10056.178981] ata5: soft resetting link
[10056.711471] ata5.00: configured for MWDMA2
[10056.711487] ata5: EH complete
[15097.752928] ata5.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[15097.752940] ata5.00: cmd a0/00:00:
[15097.752941] cdb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[15097.752942] res 40/00:03:
[15097.752945] ata5.00: status: { DRDY }
[15102.792956] ata5: port is slow to respond, please be patient (Status 0xd0)
[15107.787232] ata5: device not ready (errno=-16), forcing hardreset
[15107.787242] ata5: soft resetting link
[15108.326743] ata5.00: configured for MWDMA2
[15108.326762] ata5: EH complete
Looks like something is going wrong with either the ACPI or my S-ATA adapter.
Detailed lspci:
stgraber@
00:00.0 Host bridge [0600]: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub [8086:27a0] (rev 03)
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)
00:02.1 Display controller [0380]: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller [8086:27a6] (rev 03)
00:1b.0 Audio device [0403]: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller [8086:27d8] (rev 01)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 [8086:27d0] (rev 01)
00:1c.1 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 [8086:27d2] (rev 01)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 [8086:27c8] (rev 01)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 [8086:27c9] (rev 01)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 [8086:27ca] (rev 01)
00:1d.3 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 [8086:27cb] (rev 01)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller [8086:27cc] (rev 01)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e1)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge [8086:27b9] (rev 01)
00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 01)
00:1f.2 SATA controller [0106]: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller [8086:27c5] (rev 01)
02:06.0 CardBus bridge [0607]: Texas Instruments PCIxx12 Cardbus Controller [104c:8039]
02:06.1 FireWire (IEEE 1394) [0c00]: Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller [104c:803a]
02:0e.0 Ethernet controller [0200]: Broadcom Corporation BCM4401-B0 100Base-TX [14e4:170c] (rev 02)
10:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 3945ABG Network Connection [8086:4222] (rev 02)
I already had the ata errors after boot time on 2.6.22 but never had issues when kernel's detecting devices.
This bug would make someone not knowing how to turn off usplash not able to boot its system if it's encrypted and requires the user to enter a passphrase.
Please ask if you need more information.
Changed in linux: | |
assignee: | nobody → ubuntu-kernel-team |
importance: | Undecided → Medium |
status: | New → Triaged |
After updating to 2.6.24-3, the detection slow down at boot time disappeared (I can now boot with usplash :)).
Though I still have regular ATA messages in dmesg, like this one:
[ 272.016411] ata5.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen 00:00:00/ 00:00:00: 00:00/a0 tag 0 00:00:00/ 00:00:00: 00:00/a0 Emask 0x4 (timeo
[ 272.016423] ata5.00: cmd a0/00:00:
[ 272.016425] cdb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 272.016426] res 40/00:03:
ut)
[ 272.016430] ata5.00: status: { DRDY }
[ 277.013160] ata5: port is slow to respond, please be patient (Status 0xd0)
[ 282.046882] ata5: device not ready (errno=-16), forcing hardreset
[ 282.046889] ata5: soft resetting link
[ 282.594613] ata5.00: configured for MWDMA2
[ 282.594631] ata5: EH complete