OHCI Host Controler Died
I'm running Debian SID with a custom Linux 2.6.0-test5 kernel on my Compaq Evo N800v notebook. When running Windows XP in VMware, and accessing an Aladdin eToken (cryptographic USB smartcard) from my virtual machine, the USB host controller crashes immediately.
Here's the interesting part of lspci:
Quoted 15 lines
00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset \Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset \AGP Bridge (rev 04)
00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev \42)
00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev \02)
00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev \02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM \AC'97 Audio (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc \Radeon Mobility M7 LW [Radeon Mobility 7500] 02:04.0 Communication controller: Conexant HSF 56k HSFi Modem
Quoted 8 lines
\(rev 01)
02:06.0 CardBus bridge: Texas Instruments PCI1410 PC card \Cardbus Controller (rev 02)
02:08.0 Ethernet controller: Intel Corp. 82801CAM (ICH3) \PRO/100 VE (LOM) Ethernet Controller (rev 42) 02:0e.0 USB Controller: NEC Corporation USB (rev 41) 02:0e.1 USB Controller: NEC Corporation USB (rev 41) 02:0e.2 USB Controller: NEC Corporation USB 2.0 (rev 02)
Here's my kernel config:
Quoted 8 lines
CONFIG_USB=y
#CONFIG_USB_DEBUGis not setCONFIG_USB_DEVICEFS=y
#CONFIG_USB_BANDWIDTHis not set
#CONFIG_USB_DYNAMIC_MINORSis not set
#CONFIG_USB_EHCI_HCDis not setCONFIG_USB_OHCI_HCD=y
#CONFIG_USB_UHCI_HCDis not set
Here's the interesting part of syslog:
Quoted 13 lines
Sep 9 11:37:23 invi-laptop kernel:hub 1-0:0: debounce: port 1: delay 100ms stable 4 status
0x301hub 1-0:0: new USB device on port 1, assigned address 2 ohci-hcd 0000:02:0e.0: OHCI Unrecoverable Error, disabled ohci-hcd 0000:02:0e.0: HC died; cleaning up
usb 1-1: USB disconnect, address 2
ohci-hcd 0000:02:0e.0: edd4f76000(#0) state 0(has tds)drivers/usb/core/message.c: error getting string descriptor 0 \(error=-108)drivers/usb/core/mesage.c: error getting string descriptor 0 \(error=-19)
usbfs:USBDEVFS_CONTROLfailed cmd vmware-vmx dev 2 rqt 128 rq 6 len \4 ret -19
By the way, if I insert the token when VMware is *not* running, /proc/bus/usb shows that the token was detected correctly:
Quoted 22 lines
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.0-test5 ohci-hcd S: Product=OHCI Host Controller S: SerialNumber=0000:02:0e.1 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=255msT: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.0-test5 ohci-hcd S: Product=OHCI Host Controller S: SerialNumber=0000:02:0e.0 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=255ms
Quoted 7 lines
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 D: Ver= 1.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0529 ProdID=050c Rev= 1.00 S: Manufacturer=AKS S: Product=eToken Pro 4154C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 60mA
I: If#= 0 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
Any ideas?
Thanks for your time, Remo
Quoted 2 lines · Remo Inverardi
By the way, if I insert the token when VMware is *not* running,
/proc/bus/usbshows that the token was detected correctly:
Great, go bug vmware then :)
I didn't think their product was supposed to be working on 2.6 yet anyway...
thanks,
greg k-h
Greg,
Quoted 1 line
Great, go bug vmware then :)
I will -- but ...
I was under the impression that all of VMware's USB code is running in user space. Running "grep -ir usb ." in VMware's modules/source directory did not return any hits, so this assumption is probably correct.
This does look like a kernel bug to me, since it should not be possible to crash the OHCI driver from user space.
Regards, Remo
Quoted 9 lines · Remo Inverardi
Greg,
Quoted 1 line
Great, go bug vmware then :)
I will -- but ...
I was under the impression that all of VMware's USB code is running in user space. Running "grep -ir usb ." in VMware's modules/source directory did not return any hits, so this assumption is probably correct.
I'm under that impression too, but due to them requiring kernel drivers to support their program, I can not be sure.
Quoted 2 lines
This does look like a kernel bug to me, since it should not be possible to crash the OHCI driver from user space.
I agree. And if you can figure out how it does that, we would really appreciate it :)
thanks,
greg k-h