Bug 5047

Summary: sata hangs (Silicon Image and seagate harddrive)
Product: IO/Storage Reporter: Benjamin Lecouteux (benjamin.lecouteux)
Component: Serial ATAAssignee: Jeff Garzik (jgarzik)
Status: REJECTED INSUFFICIENT_DATA    
Severity: high CC: bunk, diegocg
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.13-rc6 or 2.6.13-rc5 Subsystem:
Regression: --- Bisected commit-id:

Description Benjamin Lecouteux 2005-08-11 17:11:46 UTC
Distribution:debian sid
Hardware Environment:
#lspci
0000:00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?)
(rev c1)
0000:00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
0000:00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
0000:00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
0000:00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
0000:00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
0000:00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
0000:00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller
(rev a1)
0000:00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
0000:00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
0000:00:0d.0 FireWire (IEEE 1394): nVidia Corporation nForce2 FireWire (IEEE
1394) Controller (rev a3)
0000:00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
0000:01:04.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit
Ethernet Controller (rev 13)
0000:01:08.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
0000:01:08.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 07)
0000:01:0b.0 RAID bus controller: Silicon Image, Inc. SiI 3112
[SATALink/SATARaid] Serial ATA Controller (rev 02)
0000:03:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti
4200] (rev a2)


#lspci -vv
0000:01:0b.0 RAID bus controller: Silicon Image, Inc. SiI 3112
[SATALink/SATARaid] Serial ATA Controller (rev 02)
        Subsystem: Silicon Image, Inc. SiI 3112 SATARaid Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32, Cache Line Size: 0x08 (32 bytes)
        Interrupt: pin A routed to IRQ 18
        Region 0: I/O ports at 9c00 [size=8]
        Region 1: I/O ports at a000 [size=4]
        Region 2: I/O ports at a400 [size=8]
        Region 3: I/O ports at a800 [size=4]
        Region 4: I/O ports at ac00 [size=16]
        Region 5: Memory at ec004000 (32-bit, non-prefetchable) [size=512]
        Capabilities: [60] Power Management version 2
                Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=2 PME-


#more /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 10
model name      : AMD Athlon(tm) XP 2800+
stepping        : 0
cpu MHz         : 2088.185
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr sse syscall
mmxext 3dnowext 3dnow
bogomips        : 4136.96



sata hard drive: Seagate 200 Go 7200 RPM 8 Mo Serial ATA


Software Environment:

when I use cp command on the sata hard drive with large data or access for read.

Problem Description:

copy or access is stopped :

Aug 11 19:13:25 localhost kernel: [17202123.796000] ata1: command 0x25 timeout,
stat 0x58 host_stat 0x62
Aug 11 19:13:25 localhost kernel: [17202123.796000] ata1: status=0x58 {
DriveReady SeekComplete DataRequest }
Aug 11 19:13:25 localhost kernel: [17202123.796000] SCSI error : <0 0 0 0>
return code = 0x8000002
Aug 11 19:13:25 localhost kernel: [17202123.796000] sda: Current: sense key=0xb
Aug 11 19:13:25 localhost kernel: [17202123.796000]     ASC=0x47 ASCQ=0x0
Aug 11 19:13:25 localhost kernel: [17202123.796000] end_request: I/O error, dev
sda, sector 239969351
Aug 11 19:13:25 localhost kernel: [17202123.796000] ATA: abnormal status 0x58 on
port 0xF881E087
Aug 11 19:13:25 localhost last message repeated 2 times


Steps to reproduce:

copy large data from the disk. There is no issue with 2.6.12.4 kernel. However,
with other 2.6 kernels, copy are slow (speed of 20 MByte/s for read)
Comment 1 Diego Calleja 2006-07-30 08:30:31 UTC
Could you try a recent kernel? If it still happens - could you try the latest
dev version, 2.6.18-rc3? (it has improved error handling and may give
developerse a better clue of what is happening)
Comment 2 Adrian Bunk 2006-10-05 14:39:25 UTC
Please reopen this bug if it's still present in kernel 2.6.18.