[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#315968: kernel: usb-storage not working, system freeze



Package: kernel-image-2.6.8-2-k7
Version: 2.6.8-16
Severity: critical

Under the 2.6.8 kernel my usb memory stick and my usb card reader are
not working (I can't mount them). Not only this - if I plug them out
the whole system crashes/freezes.

Under 2.4.27 when I plug in the memory stick dmesg shows:

hub.c: new USB device 00:07.4-2, assigned address 2
usb.c: USB device 2 (vend/prod 0x4e8/0x111) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor:           Model: USB DRIVE         Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
sda: Unit Not Ready, sense:
Current 00:00: sense key Unit Attention
Additional sense indicates Not ready to ready change,medium may have changed
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sense key Unit Attention
Additional sense indicates Not ready to ready change,medium may have changed
sda : block size assumed to be 512 bytes, disk size 1GB.
 /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:00, sector 0
 I/O error: dev 08:00, sector 0
 unable to read partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

lsmod shows these additional modules:

usb-storage            54496   0 (unused)
sd_mod                 10732   0 (autoclean) (unused)
vfat                    8716   0 (autoclean)
fat                    27576   0 (autoclean) [vfat]

I than can mount the stick. One more module is loaded (nls_cp437) and
dmesg adds:

SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
 /dev/scsi/host1/bus0/target0/lun0: p1

Under kernel 2.6.8 I get plugging the memory stick in:
ohci_hcd 0000:00:07.4: wakeup
usb 1-2: new full speed USB device using address 2
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor:           Model: USB DRIVE         Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
sda: Unit Not Ready, sense:
Current : sense key Unit Attention
Additional sense: Not ready to ready change, medium may have changed
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 /dev/scsi/host0/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

lsmod shows just:

usb_storage            68800  1

But then trying a mount the mount command hangs and plugging the
memory stick out the whole system hangs, mostly without any error
message in the logs. A very *few* times I got the error message:

debian kernel: usb 1-2: control timeout on ep0in

As this seems to be a kernel bug here more info on the system
environment:

1. Output of ver_linux

Linux debian 2.6.8-2-k7 #1 Thu May 19 18:03:29 JST 2005 i686 GNU/Linux

Gnu C                  3.3.5
Gnu make               3.80
binutils               2.15
util-linux             2.12p
mount                  2.12p
module-init-tools      3.2-pre1
e2fsprogs              1.37
PPP                    2.4.3
nfs-utils              1.0.6
Linux C Library        2.3.2
Dynamic linker (ldd)   2.3.2
Procps                 3.2.1
Net-tools              1.60
Console-tools          0.2.3
Sh-utils               5.2.1
Modules Loaded         lp ipv6 ipt_REJECT ipt_LOG ipt_state ipt_pkttype ipt_recent ipt_iprange ipt_physdev ipt_multiport ipt_conntrack iptable_mangle ip_nat_irc ip_nat_tftp ip_nat_ftp iptable_nat ip_conntrack_irc ip_conntrack_tftp ip_conntrack_ftp ip_conntrack iptable_filter ip_tables parport_pc parport floppy pcspkr rtc pci_hotplug amd_k7_agp ohci_hcd usbcore snd_als4000 snd_sb_common snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_opl3_lib snd_timer snd_hwdep gameport snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore via_rhine mii agpgart tsdev mousedevevdev capability commoncap psmouse ide_cd cdrom ext3 jbd mbcache ide_generic ide_disk amd74xx ide_core sd_mod ata_piix libata scsi_mod unix font vesafb cfbcopyareacfbimgblt cfbfillrect

2. /proc/cpuinfo

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 2
model name      : AMD Athlon(tm) Processor
stepping        : 2
cpu MHz         : 798.780
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 syscall mmxext 3dnowext 3dnow
bogomips        : 1572.86

3. /proc/modules (after plug in of the usb device):

usb_storage 68859 1 - Loading 0xd8b5a000
lp 10920 0 - Live 0xd8b3f000
ipv6 262468 19 - Live 0xd8b8a000
ipt_REJECT 7104 4 - Live 0xd8b3c000
ipt_LOG 6656 8 - Live 0xd8b2d000
ipt_state 2112 7 - Live 0xd8b2b000
ipt_pkttype 1792 4 - Live 0xd8b3a000
ipt_recent 11148 0 - Live 0xd8b30000
ipt_iprange 1856 0 - Live 0xd8b29000
ipt_physdev 2192 0 - Live 0xd8b27000
ipt_multiport 2112 0 - Live 0xd8b25000
ipt_conntrack 2688 0 - Live 0xd8b23000
iptable_mangle 2944 0 - Live 0xd8ada000
ip_nat_irc 4400 0 - Live 0xd8b19000
ip_nat_tftp 3504 0 - Live 0xd8ad8000
ip_nat_ftp 5104 0 - Live 0xd8ad5000
iptable_nat 25260 3 ip_nat_irc,ip_nat_tftp,ip_nat_ftp, Live 0xd8aa1000
ip_conntrack_irc 71472 1 ip_nat_irc, Live 0xd8af9000
ip_conntrack_tftp 3760 0 - Live 0xd8a82000
ip_conntrack_ftp 72368 1 ip_nat_ftp, Live 0xd8ae6000
ip_conntrack 35468 9 ipt_state,ipt_conntrack,ip_nat_irc,ip_nat_tftp,ip_nat_ftp,iptable_nat,ip_conntrack_irc,ip_conntrack_tftp,ip_conntrack_ftp, Live 0xd8adc000
iptable_filter 2944 1 - Live 0xd8818000
ip_tables 18368 12 ipt_REJECT,ipt_LOG,ipt_state,ipt_pkttype,ipt_recent,ipt_iprange,ipt_physdev,ipt_multiport,ipt_conntrack,iptable_mangle,iptable_nat,iptable_filter, Live 0xd8a9b000
parport_pc 36932 1 - Live 0xd8ac5000
parport 41544 2 lp,parport_pc, Live 0xd8ab9000
floppy 60304 0 - Live 0xd8aa9000
pcspkr 3688 0 - Live 0xd8a7e000
rtc 12728 0 - Live 0xd8a84000
pci_hotplug 34352 0 - Live 0xd8a8a000
amd_k7_agp 7820 1 - Live 0xd88da000
ohci_hcd 21380 0 - Live 0xd89df000
usbcore 118308 5 usb_storage,ohci_hcd, Live 0xd8a3d000
snd_als4000 14372 1 - Live 0xd8a15000
snd_sb_common 15872 1 snd_als4000, Live 0xd89ce000
snd_pcm_oss 54376 0 - Live 0xd89ec000
snd_mixer_oss 19904 1 snd_pcm_oss, Live 0xd89e6000
snd_pcm 97480 2 snd_als4000,snd_pcm_oss, Live 0xd89fc000
snd_page_alloc 11720 1 snd_pcm, Live 0xd89d3000
snd_opl3_lib 10880 1 snd_als4000, Live 0xd89ab000
snd_timer 25668 2 snd_pcm,snd_opl3_lib, Live 0xd89d7000
snd_hwdep 9476 1 snd_opl3_lib, Live 0xd89af000
gameport 4736 1 snd_als4000, Live 0xd88dd000
snd_mpu401_uart 8000 1 snd_als4000, Live 0xd88d4000
snd_rawmidi 25316 1 snd_mpu401_uart, Live 0xd89b4000
snd_seq_device 8264 2 snd_opl3_lib,snd_rawmidi, Live 0xd88ee000
snd 57380 13 snd_als4000,snd_sb_common,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device, Live 0xd89be000
soundcore 10400 1 snd, Live 0xd88ea000
via_rhine 21640 0 - Live 0xd89a4000
mii 5184 1 via_rhine, Live 0xd88d7000
agpgart 34536 1 amd_k7_agp, Live 0xd88e0000
tsdev 7360 0 - Live 0xd8839000
mousedev 10444 2 - Live 0xd882f000
evdev 9600 0 - Live 0xd88d0000
capability 4616 0 - Live 0xd8836000
commoncap 7296 1 capability, Live 0xd8833000
psmouse 20232 0 - Live 0xd8894000
ide_cd 42528 0 - Live 0xd8881000
cdrom 40284 1 ide_cd, Live 0xd8876000
ext3 126760 4 - Live 0xd88f5000
jbd 61848 1 ext3, Live 0xd88bf000
mbcache 9284 1 ext3, Live 0xd8823000
ide_generic 1472 0 - Live 0xd889a000
ide_disk 19264 7 - Live 0xd888e000
amd74xx 14108 1 - Live 0xd884f000
ide_core 138724 5 usb_storage,ide_cd,ide_generic,ide_disk,amd74xx, Live 0xd889c000
sd_mod 21696 0 - Live 0xd8848000
ata_piix 8132 0 - Live 0xd881e000
libata 41412 1 ata_piix, Live 0xd883c000
scsi_mod 124812 3 usb_storage,sd_mod,libata, Live 0xd8856000
unix 28660 327 - Live 0xd8827000
font 8448 0 - Live 0xd881a000
vesafb 6688 0 - Live 0xd880d000
cfbcopyarea 3840 1 vesafb, Live 0xd8814000
cfbimgblt 3072 1 vesafb, Live 0xd8812000
cfbfillrect 3712 1 vesafb, Live 0xd8810000

4. /proc/ioports

0000-001f : dma1
0020-0021 : pic1
0040-005f : timer
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial
0376-0376 : ide1
0378-037a : parport0
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial
0cf8-0cff : PCI conf1
e000-e003 : 0000:00:00.0
e400-e4ff : 0000:00:08.0
  e400-e4ff : via-rhine
ec00-ec7f : 0000:00:0b.0
  ec00-ec3f : ALS4000
f000-f00f : 0000:00:07.1
  f000-f007 : ide0
  f008-f00f : ide1

5. /proc/iomem

00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cffff : Video ROM
000f0000-000fffff : System ROM
00100000-17feffff : System RAM
  00100000-00280284 : Kernel code
  00280285-0032e8ff : Kernel data
17ff0000-17ff2fff : ACPI Non-volatile Storage
17ff3000-17ffffff : ACPI Tables
d0000000-d7ffffff : 0000:00:00.0
d8000000-d9ffffff : PCI Bus #01
  d8000000-d8ffffff : 0000:01:05.0
da000000-dbffffff : PCI Bus #01
  da000000-dbffffff : 0000:01:05.0
dd100000-dd1000ff : 0000:00:08.0
  dd100000-dd1000ff : via-rhine
dd101000-dd101fff : 0000:00:00.0
dd103000-dd103fff : 0000:00:07.4
  dd103000-dd103fff : ohci_hcd
ffff0000-ffffffff : reserved

6. lspci -vvv

0000:00:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] System Controller (rev 25)
	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
	Region 0: Memory at d0000000 (32-bit, prefetchable) [size=128M]
	Region 1: Memory at dd101000 (32-bit, prefetchable) [size=4K]
	Region 2: I/O ports at e000 [disabled] [size=4]
	Capabilities: [a0] AGP version 1.0
		Status: RQ=16 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP+ GART64- 64bit- FW- Rate=<none>

0000:00:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] AGP Bridge (rev 01) (prog-if 00 [Normal decode])
	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
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 0000f000-00000fff
	Memory behind bridge: d8000000-d9ffffff
	Prefetchable memory behind bridge: da000000-dbffffff
	BridgeCtl: Parity- SERR+ NoISA+ VGA+ MAbort- >Reset- FastB2B-

0000:00:07.0 ISA bridge: Advanced Micro Devices [AMD] AMD-756 [Viper] ISA (rev 01)
	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: 0

0000:00:07.1 IDE interface: Advanced Micro Devices [AMD] AMD-756 [Viper] IDE (rev 03) (prog-if 8a [Master SecP PriP])
	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
	Region 4: I/O ports at f000 [size=16]

0000:00:07.3 Bridge: Advanced Micro Devices [AMD] AMD-756 [Viper] ACPI (rev 03)
	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-

0000:00:07.4 USB Controller: Advanced Micro Devices [AMD] AMD-756 [Viper] USB (rev 06) (prog-if 10 [OHCI])
	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: 16 (20000ns max), Cache Line Size: 0x08 (32 bytes)
	Interrupt: pin D routed to IRQ 9
	Region 0: Memory at dd103000 (32-bit, non-prefetchable) [size=4K]

0000:00:08.0 Ethernet controller: VIA Technologies, Inc. VT6105 [Rhine-III] (rev 86)
	Subsystem: D-Link System Inc DFE-530TX rev C
	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 (750ns min, 2000ns max), Cache Line Size: 0x08 (32 bytes)
	Interrupt: pin A routed to IRQ 11
	Region 0: I/O ports at e400 [size=256]
	Region 1: Memory at dd100000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:0b.0 Multimedia audio controller: Avance Logic Inc. ALS4000 Audio Chipset
	Subsystem: Avance Logic Inc. ALS4000 Audio Chipset
	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
	Interrupt: pin A routed to IRQ 9
	Region 0: I/O ports at ec00 [size=128]
	Capabilities: [dc] Power Management version 2
		Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA PME(D0-,D1-,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:01:05.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15) (prog-if 00 [VGA])
	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 (1250ns min, 250ns max)
	Interrupt: pin A routed to IRQ 5
	Region 0: Memory at d8000000 (32-bit, non-prefetchable) [size=16M]
	Region 1: Memory at da000000 (32-bit, prefetchable) [size=32M]
	Capabilities: [60] Power Management version 1
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [44] AGP version 2.0
		Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA- ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)




Reply to: