2.6.25: sata_sil freezes, hard resets port.
Sorry if this is confusing, I posted a message on linux-kernel and got a reply from Tejun Heo below who said he had cc'd linux-ide, but it seems this may not have made it to linux-ide. I then posted a reply to Tejun this morning, so the original is coming after the reply. Anyway, hope someone can help, as I cannot use my disks at the moment with eSATA. My reply has the same subject and was sent earlier today so it shouldn't be too hard to find.
Just to add: I have now tried with USB 2.0 and IEEE-1394a simultaneously with one drive on each interface and there does not seem to be any issue waking the drives from sleep. Running fdisk -l takes 3s to respond with drives in standby mode. Much better than 120s on eSATA.
Quoted 1 line
From Tejun:
--------------------------------
Hello, cc'ing [email protected]
Quoted 77 lines · Andrew
I'm not on the list. Please cc me if you reply.
I run 2.6.18-53 kernel on CentOS5.1
x86_64. I recently bought 2 x WD 500GB triple interface drives and an ST Labs/Sunway eSATA CardBus (sil_3512?) controller with 2 ports.Note that I compiled 2.6.25 and still get errors. All output below is from 2.6.25.
I can hotplug the card and drives and run badblocks for 48hrs without any verification errors, RAID1 them with mdadm, run dmcrypt and create ext3 fs and mount it and it works perfectly.
Then the drives spin down/go to sleep *or* I cold boot the computer, and the problems begin...
As long as the discs are always in use, they seem to work, and maybe a workaround is a cronjob with sdparm -C start
/dev/sdx, but the lockups/hangs on the port during boot cannot be overcome so easily. At boot one of the 2 ports can hang and the activity LED stays lit and then I cannot access that disc until I cold boot, and disconnect all power from the drive and unplug the eSATA cable. It does not work even on cold boot and pressing power off/power on button on drive: I need to actually disconnect the cables!Error 1.
(system is booted, I hotplug card here)
pccard: CardBus card inserted into slot 0
sata_sil0000:07:00.0: version 2.3
PCI: Enabling device 0000:07:00.0 (0000 -> 0003)
ACPI: PCI Interrupt 0000:07:00.0[A] -> GSI 20 (level, low) -> IRQ 20sata_sil0000:07:00.0: cache line size not set. Driver may not functionsata_sil0000:07:00.0: ApplyingR_ERRon DMA activate FIS errata fixError 2.
ata1.00: exception Emask
0x0SAct0x0SErr0x0action0x2frozen ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb0x0data 4096 inres 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)ata1: soft resetting port
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata1.00: configured for UDMA/66
ata1: EH completeError 3.
(this can happen when disc has spun down and I try to access with 'fdisk -l')
ata2: port is slow to respond, please be patient (Status
0xd8)
ata2: device not ready (errno=-16), forcing hardreset
ata2: hard resetting port
ata2: port is slow to respond, please be patient (Status0xff)
ata2: COMRESET failed (errno=-16)
ata2: hard resetting port
ata2: port is slow to respond, please be patient (Status0xff)
ata2: COMRESET failed (errno=-16)
ata2: hard resetting port
ata2: port is slow to respond, please be patient (Status0xff) ata1.00: exception Emask0x0SAct0x0SErr0x0action0x2frozen ata1.00: cmd 25/00:08:80:5f:38/00:00:3a:00:00/e0 tag 0 cdb0x0data 4096 inres 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)ata1: soft resetting port
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata1.00: configured for UDMA/33
ata1: EH complete
ata2: COMRESET failed (errno=-16)
ata2: hard resetting port
ata2: COMRESET failed (errno=-16)
ata2: reset failed, giving up
ata2.00: disabled
ata2: EH complete
sd 1:0:0:0: SCSI error: return code =0x00040000end_request: I/O error, dev sdb, sector 0
Quoted 6 lines
Error 4.
( I get these after the hard resets)
May 29 07:50:25 k2 kernel: end_request: I/O error, dev sdb, sector 0 May 29 07:50:25 k2 kernel: sd 1:0:0:0: [sdb] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK
ATA drives are supposed to wake up from standby on command issue and from sleep on reset. Does the drive spin up while sata_sil is trying to reset the port? Also, please post the result of 'hdparm -I /dev/sdX' where sdX is the offending drive.
Thanks.
Signature · 1 line
tejun