Bug 3842

Summary: Не работают USB-Storage устройства
Product: Sisyphus Reporter: Renat Sabitov <r_sabitov>
Component: kernel-image-std26-upAssignee: Anton Farygin <rider>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: vsu
Version: unstable   
Hardware: all   
OS: Linux   

Description Renat Sabitov 2004-03-19 17:03:32 MSK
после установки ядра 2.6 USB-Storage устрайства не опознаются и их невозможно
смонтировать. в 2.4.х все работало.

окружение:
$ uname -a
Linux sabitov.stacksoft.ru 2.6.4-std26-up-alt3 #1 Wed Mar 17 14:00:30 MSK 2004
i686 unknown unknown GNU/Linux

$ cat /etc/modules.conf
#No APM - no device
alias char-major-10-134 off

# I2C module options
alias char-major-89 i2c-dev

alias usb-interface uhci-hcd
alias usb-interface1 ehci-hcd

alias eth0 sis900

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss

post-install snd modprobe snd-mixer-oss

options scsi_mod max_luns=255

$ cat /etc/sysconfig/usb 
# -*- Mode: sh -*-
# Set this to no if you don't want USB.
USB=yes

# This will force to load the usb system and keyboard at the early
# process of the boot proces
KEYBOARD_AT_BOOT=no

# Some driver you may want to force the load, normally all of this is
# done by the USBD daemon
MOUSE=no
KEYBOARD=no
STORAGE=yes
VISOR=no
PRINTER=no

# lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] SiS 645xx (rev 02)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SiS 530 Virtual PCI-to-PCI
bridge (AGP)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS]: Unknown device 0963 (rev 04)
00:02.1 SMBus: Silicon Integrated Systems [SiS]: Unknown device 0016
00:02.3 FireWire (IEEE 1394): Silicon Integrated Systems [SiS] FireWire Controller
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound
Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 10/100
Ethernet (rev 91)
01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 440]
(rev a3)

# lspcidrake 
unknown         : Silicon Integrated System|SiS648 Host-to-PCI Bridge [BRIDGE_HOST]
agpgart         : Silicon Integrated Systems [SiS]|5591/5592 AGP [BRIDGE_PCI]
unknown         : Silicon Integrated System|SiS963 PCI to ISA Bridge [BRIDGE_ISA]
unknown         : unknown (1039/0016/ffff/ffff) [SERIAL_SMBUS]
ohci1394        : Silicon Integrated Systems [SiS]|OHCI Compliant FireWire
Controller [SERIAL_FIREWIRE]
unknown         : Silicon Integrated Systems [SiS]|5513 [IDE] [STORAGE_IDE]
snd-intel8x0    : Silicon Integrated Systems [SiS]|SiS7012 PCI Audio Accelerator
[MULTIMEDIA_AUDIO]
usb-ohci        : Silicon Integrated Systems [SiS]|7001 USB [SERIAL_USB]
usb-ohci        : Silicon Integrated Systems [SiS]|7001 USB [SERIAL_USB]
usb-ohci        : Silicon Integrated Systems [SiS]|7001 USB [SERIAL_USB]
ehci-hcd        : Silicon Integrated Systems [SiS]|7002 USB 2.0 Controller
[SERIAL_USB]
sis900          : Silicon Integrated Systems [SiS]|SiS900 10/100 Ethernet
[NETWORK_ETHERNET]
Card:NVIDIA GeForce4 (generic): nVidia Corporation|NV17 GeForce4 MX 440
[DISPLAY_VGA]
unknown         : Virtual|Hub []


При подключенном кардридере (пробовал также с USB Drive 256Mb)

$ cat /proc/modules
sd_mod 15904 0 - Live 0xd0b98000
usb_storage 62016 0 - Live 0xd0b7c000
ehci_hcd 25604 0 - Live 0xd0816000
uhci_hcd 31248 0 - Live 0xd092d000
usbcore 99164 5 usb_storage,ehci_hcd,uhci_hcd, Live 0xd094b000
sg 36896 0 - Live 0xd0b8d000
scsi_mod 109240 3 sd_mod,usb_storage,sg, Live 0xd0b9f000
floppy 57808 0 - Live 0xd0b6c000
loop 14472 0 - Live 0xd0b67000
vfat 15104 0 - Live 0xd0b62000
fat 44608 1 vfat, Live 0xd0b3b000
ide_cd 38532 0 - Live 0xd0b51000
cdrom 35100 1 ide_cd, Live 0xd0b47000
binfmt_misc 10504 1 - Live 0xd0b37000
nvidia 2068424 12 - Live 0xd0c65000
parport_pc 36416 1 - Live 0xd0a17000
lp 11048 0 - Live 0xd09f8000
parport 39624 2 parport_pc,lp, Live 0xd09a8000
autofs4 15744 1 - Live 0xd0965000
snd_pcm_oss 51748 0 - Live 0xd0a09000
snd_seq_oss 31744 0 - Live 0xd09b3000
snd_seq_midi_event 7936 1 snd_seq_oss, Live 0xd09a5000
snd_seq 52368 4 snd_seq_oss,snd_seq_midi_event, Live 0xd09ea000
snd_intel8x0 32424 1 - Live 0xd0994000
snd_ac97_codec 57220 1 snd_intel8x0, Live 0xd09db000
snd_pcm 95752 2 snd_pcm_oss,snd_intel8x0, Live 0xd09c2000
snd_timer 25220 2 snd_seq,snd_pcm, Live 0xd099d000
gameport 4864 1 snd_intel8x0, Live 0xd0991000
snd_page_alloc 11908 2 snd_intel8x0,snd_pcm, Live 0xd098d000
snd_mpu401_uart 7552 1 snd_intel8x0, Live 0xd097b000
snd_rawmidi 24480 1 snd_mpu401_uart, Live 0xd096e000
snd_seq_device 7944 3 snd_seq_oss,snd_seq,snd_rawmidi, Live 0xd08f0000
snd_mixer_oss 18432 2 snd_pcm_oss, Live 0xd0975000
snd 52580 12
snd_pcm_oss,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_mixer_oss,
Live 0xd097f000
soundcore 9696 2 snd, Live 0xd096a000
it87 21256 0 - Live 0xd0944000
eeprom 7944 0 - Live 0xd08ea000
i2c_sensor 4480 2 it87,eeprom, Live 0xd08ed000
i2c_isa 2176 0 - Live 0xd08c9000
i2c_core 24836 4 it87,eeprom,i2c_sensor,i2c_isa, Live 0xd093c000
sis900 19076 0 - Live 0xd0936000
crc32 4608 1 sis900, Live 0xd08e7000
nls_koi8_r 5376 1 - Live 0xd080e000
ntfs 97004 1 - Live 0xd08f3000
psmouse 22156 0 - Live 0xd08c2000
agpgart 30888 0 - Live 0xd08cd000
rtc 12728 0 - Live 0xd0811000
ext3 110632 4 - Live 0xd084f000
jbd 57368 1 ext3, Live 0xd081e000

$ find /proc/bus/usb/
/proc/bus/usb/
/proc/bus/usb/001
/proc/bus/usb/001/001
/proc/bus/usb/devices

$ cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.4-std26-up-alt3 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:03.3
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

$ find /sys/bus/usb/
/sys/bus/usb/
/sys/bus/usb/drivers
/sys/bus/usb/drivers/usb-storage
/sys/bus/usb/drivers/usb
/sys/bus/usb/drivers/usb/usb1
/sys/bus/usb/drivers/hub
/sys/bus/usb/drivers/hub/1-0:1.0
/sys/bus/usb/drivers/usbfs
/sys/bus/usb/devices
/sys/bus/usb/devices/1-0:1.0
/sys/bus/usb/devices/usb1

после service usb restart в /var/log/messages:

Mar 19 16:48:20 sabitov kernel: drivers/usb/core/usb.c: deregistering driver
usb-storage
Mar 19 16:48:20 sabitov usb: Unloading USB storage: succeeded
Mar 19 16:48:20 sabitov usb: Unmounting USB filesystem: succeeded
Mar 19 16:48:20 sabitov usb: Unloading USB interface (uhci-hcd): succeeded
Mar 19 16:48:20 sabitov kernel: ehci_hcd 0000:00:03.3: remove, state 1
Mar 19 16:48:20 sabitov kernel: usb usb1: USB disconnect, address 1
Mar 19 16:48:21 sabitov kernel: hub 1-0:1.0: Cannot enable port 4.  Maybe the
USB cable is bad?
Mar 19 16:48:21 sabitov kernel: hub 1-0:1.0: cannot disable port 4 (err = -19)
Mar 19 16:48:21 sabitov kernel: hub 1-0:1.0: hub_hub_status failed (err = -19)
Mar 19 16:48:21 sabitov kernel: hub 1-0:1.0: get_hub_status failed
Mar 19 16:48:21 sabitov /etc/hotplug/usb.agent: Bad USB agent invocation
Mar 19 16:48:21 sabitov kernel: ehci_hcd 0000:00:03.3: USB bus 1 deregistered
Mar 19 16:48:21 sabitov /sbin/hotplug: no runnable /etc/hotplug/usb_host.agent
is installed
Mar 19 16:48:21 sabitov kernel: drivers/usb/core/usb.c: deregistering driver usbfs
Mar 19 16:48:21 sabitov kernel: drivers/usb/core/usb.c: deregistering driver hub
Mar 19 16:48:21 sabitov usb: Unloading USB interface (ehci-hcd): succeeded
Mar 19 16:48:22 sabitov kernel: drivers/usb/core/usb.c: registered new driver usbfs
Mar 19 16:48:22 sabitov kernel: drivers/usb/core/usb.c: registered new driver hub
Mar 19 16:48:22 sabitov kernel: USB Universal Host Controller Interface driver v2.2
Mar 19 16:48:22 sabitov usb: Loading USB interface (uhci-hcd): succeeded
Mar 19 16:48:22 sabitov kernel: ehci_hcd 0000:00:03.3: EHCI Host Controller
Mar 19 16:48:22 sabitov kernel: ehci_hcd 0000:00:03.3: irq 23, pci mem d0b32000
Mar 19 16:48:22 sabitov /sbin/hotplug: no runnable /etc/hotplug/usb_host.agent
is installed
Mar 19 16:48:23 sabitov kernel: ehci_hcd 0000:00:03.3: new USB bus registered,
assigned bus number 1
Mar 19 16:48:23 sabitov kernel: PCI: cache line size of 128 is not supported by
device 0000:00:03.3
Mar 19 16:48:23 sabitov kernel: ehci_hcd 0000:00:03.3: USB 2.0 enabled, EHCI
1.00, driver 2003-Dec-29
Mar 19 16:48:23 sabitov /etc/hotplug/usb.agent: Bad USB agent invocation
Mar 19 16:48:23 sabitov kernel: hub 1-0:1.0: USB hub found
Mar 19 16:48:23 sabitov kernel: hub 1-0:1.0: 6 ports detected
Mar 19 16:48:23 sabitov usb: Loading USB interface (ehci-hcd): succeeded
Mar 19 16:48:23 sabitov usb: Mounting USB filesystem: succeeded
Mar 19 16:48:25 sabitov kernel: Initializing USB Mass Storage driver...
Mar 19 16:48:25 sabitov kernel: drivers/usb/core/usb.c: registered new driver
usb-storage
Mar 19 16:48:25 sabitov kernel: USB Mass Storage support registered.
Mar 19 16:48:25 sabitov usb: Loading USB storage: succeeded

после отключения ридера иногда в /var/log/messages появляются подобные записи:
Mar 19 10:29:01 sabitov kernel: hub 1-0:1.0: connect-debounce failed, port 4
disabled
Mar 19 10:29:01 sabitov kernel: hub 1-0:1.0: cannot disable port 4 (err = -19)
Mar 19 10:29:01 sabitov kernel: hub 1-0:1.0: hub_hub_status failed (err = -19)
Mar 19 10:29:01 sabitov kernel: hub 1-0:1.0: get_hub_status failed
Comment 1 Anton Farygin 2004-03-19 17:29:02 MSK
Попробуйте загрузить модуль scsi следующим образом:
modprobe scsi_mod max_luns=6

Если поможет - сообщите.
Comment 2 Anton Farygin 2004-03-19 17:40:29 MSK
Упс.. а почему вместо ohci-hcd загружен uhci-hcd ?
Поправьте пожалуйста свой конфиг и попробуйте еще раз.
Comment 3 Renat Sabitov 2004-03-19 17:57:51 MSK
Изменил uhci-hcd на ohci-hcd, все заработало, спасибо.
Comment 4 Sergey Vlasov 2004-03-21 21:05:34 MSK
Проблемы в ядре как таковой и не было - вопрос закрыт.