Bug 13054 (jinita) - bug reports while executing usb/ip.the usb device stops working
Summary: bug reports while executing usb/ip.the usb device stops working
Status: RESOLVED OBSOLETE
Alias: jinita
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 08:47 UTC by jinita
Modified: 2012-10-30 16:47 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.27
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description jinita 2009-04-10 08:47:43 UTC
i used the commands 
 
modprobe usbip_common_mod 
modprobe usbip 
modprobe vhci_hcd 
usbipd --debug 
 
side by side i also executed files which monitored for the all the errors  
 
i inserted my pendrive.... 
 
This is the sequence i used for testing  
 
On server 
 
bind_driver --list 
bind_driver --usbip [busid] 
 
On client 
 
usbip --list ipaddress 
usbip --attach [busid] [ipaddress] 
After that i unmounted my device 
usbip --detach [portno] 
 
To check the availability of the device on server 
bind_driver --list 
 
removed usbip modules using commands 
rmmod usbip 
rmmod vhci_hcd 
rmmod usbip_common_mod 
 
These are the bugs im getting while executing these commands. 
 
Wen attached a usb device(pendrive) 
 
modprobe usbip_common_mod 
modprobe usbip 
modprobe vhci_hcd 
 
1)usbipd –debug 
 
 
usbipd --debug  
usbip err: stub_server.c: 433 (do_standalone_mode) open usb.ids  
Bind usbip.ko to a usb device to be exportable!  
usbip err: stub_server.c: 307 (listen_all_addrinfo) no socket to listen to  
 
log messages 
 
** ERROR **: no socket to listen to  
aborting...  
Aborted  
linux-8yl2:/usr/src/packages/SOURCES/usbip_a/usbip-0.1.6/src # usbipd -D  
usbip err: stub_server.c: 433 (do_standalone_mode) open usb.ids  
Bind usbip.ko to a usb device to be exportable!  
 
 
Server 
2)linux-8yl2:~ # bind_driver –list  
List USB devices  
- busid 1-3 (090c:1000)  
1-3:1.0 -> usb-storage  
 
log messages 
Apr 9 23:00:22 linux-8yl2 usbipd: usbip err: stub_server.c: 307 (listen_all_addrinfo) no socket to listen to  
Apr 9 23:03:57 linux-8yl2 su: (to root) geeko on /dev/pts/3  
 
 
Server 
3)linux-8yl2:~ # bind_driver --usbip 1-3  
** (process:17573): DEBUG: 1-3:1.0 -> usb-storage  
** (process:17573): DEBUG: unbinding interface  
** (process:17573): DEBUG: write "add 1-3" to /sys/bus/usb/drivers/usbip/match_busid  
** Message: bind 1-3 to usbip, complete!  
linux-8yl2:~ #  
 
log messages 
Apr 9 23:05:30 linux-8yl2 kernel: usbip 1-3:1.0: USB/IP Stub: register a new interface (bus 1 dev 23 ifn 0)  
Apr 9 23:05:30 linux-8yl2 hald[2173]: forcibly attempting to lazy unmount /dev/sdb1 as enclosing drive was disconnected  
Apr 9 23:05:30 linux-8yl2 hald: unmounted /dev/sdb1 from '/media/JINITA_____' on behalf of uid 0  
Apr 9 23:05:30 linux-8yl2 gnome-keyring-daemon[3409]: removing removable location: volume_uuid_F7F7_546E  
 
 
 
 
Client 
4)usbip --list localhost  
usbip err: vhci_attach.c: 586 (main ) open usb.ids  
- localhost  
1-3: unknown vendor : unknown product (090c:1000)  
: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3  
: (Defined at Interface level) (00/00/00)  
: 0 - unknown class / unknown subclass / unknown protocol (08/06/50)  
 
log messages 
Apr 9 23:07:02 linux-8yl2 usbipd: connected from 127.0.0.1:48028  
 
 
 
Client 
5)linux-8yl2:~ # usbip --attach localhost 1-3  
usbip err: vhci_attach.c: 586 (main ) open usb.ids  
8 ports available  
 
port 0 attached  
 
 
 
log messages 
Apr 9 23:09:43 linux-8yl2 usbipd: connected from 127.0.0.1:48029  
Apr 9 23:09:43 linux-8yl2 kernel: usbip 1-3:1.0: stub up  
Apr 9 23:09:43 linux-8yl2 usbipd: connect 1-3  
Apr 9 23:09:43 linux-8yl2 kernel: usbip: rhport(0) sockfd(3) devid(65559) speed(3)  
Apr 9 23:09:43 linux-8yl2 kernel: usbip: changed 1  
Apr 9 23:09:43 linux-8yl2 kernel: usbip: changed 0  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: new high speed USB device using vhci_hcd and address 2  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: new high speed USB device using vhci_hcd and address 3  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: new high speed USB device using vhci_hcd and address 4  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: SetAddress Request (4) to port 0  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: configuration #1 chosen from 1 choice  
Apr 9 23:09:43 linux-8yl2 kernel: usbip: set_configuration (1) to 1-3  
Apr 9 23:09:43 linux-8yl2 kernel: usbip: but, skip!  
Apr 9 23:09:43 linux-8yl2 kernel: usbip 6-1:1.0: this device 6-1 is not in match_busid table. skip!  
Apr 9 23:09:43 linux-8yl2 kernel: scsi7 : SCSI emulation for USB Mass Storage devices  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: New USB device found, idVendor=090c, idProduct=1000  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: Product: USB DISK  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: Manufacturer: SMI Corporation  
Apr 9 23:09:43 linux-8yl2 kernel: usb 6-1: SerialNumber: AA04012700007542  
Apr 9 23:09:43 linux-8yl2 kernel: usb-storage: device found at 4  
Apr 9 23:09:43 linux-8yl2 kernel: usb-storage: waiting for device to settle before scanning  
Apr 9 23:09:44 linux-8yl2 kernel: scsi 7:0:0:0: Direct-Access AMKETTE Spectra ST 238 1100 PQ: 0 ANSI: 0 CCS  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] 7831552 512-byte hardware sectors: (4.00GB/3.73GiB)  
Apr 9 23:09:44 linux-8yl2 kernel: usbip: urb completion with non-zero status -121  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] Write Protect is off  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] Mode Sense: 43 00 00 00  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] Assuming drive cache: write through  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] 7831552 512-byte hardware sectors: (4.00GB/3.73GiB)  
Apr 9 23:09:44 linux-8yl2 kernel: usbip: urb completion with non-zero status -121  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] Write Protect is off  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] Mode Sense: 43 00 00 00  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] Assuming drive cache: write through  
Apr 9 23:09:44 linux-8yl2 kernel: sdb: sdb1  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: [sdb] Attached SCSI removable disk  
Apr 9 23:09:44 linux-8yl2 kernel: sd 7:0:0:0: Attached scsi generic sg2 type 0  
Apr 9 23:09:44 linux-8yl2 kernel: usb-storage: device scan complete  
Apr 9 23:09:45 linux-8yl2 hald: mounted /dev/sdb1 on behalf of uid 1000  
Apr 9 23:09:45 linux-8yl2 gnome-keyring-daemon[3409]: adding removable location: volume_uuid_F7F7_546E at /media/JINITA_____  
 
 
 
when unmounted volume 
 
log messages 
Apr 9 23:13:51 linux-8yl2 gnome-keyring-daemon[3409]: removing removable location: volume_uuid_F7F7_546E  
 
Client 
6)usbip --detach 0  
usbip err: vhci_attach.c: 586 (main ) open usb.ids  
8 ports available  
 
port 0 detached  
 
 
log messages 
Apr 9 23:15:24 linux-8yl2 kernel: vhci_rx : ***ERROR*** (drivers/staging/usbip/vhci_rx.c,205) vhci_rx_pdu: receiving pdu failed! size is 0, should be 48  
Apr 9 23:15:24 linux-8yl2 kernel: usbip: vhci_tx signal catched  
Apr 9 23:15:24 linux-8yl2 kernel: usbip: stop threads  
Apr 9 23:15:24 linux-8yl2 kernel: usbip: release socket  
Apr 9 23:15:24 linux-8yl2 kernel: usbip: disconnect device  
Apr 9 23:15:24 linux-8yl2 kernel: usbip 1-3:1.0: recv a header, 0  
Apr 9 23:15:55 linux-8yl2 kernel: usbip: vhci_hcd: dequeue a urb f7d155c0  
Apr 9 23:15:55 linux-8yl2 kernel: vhci_hcd vhci_hcd: Unlink after no-IRQ? Controller is probably using the wrong IRQ.  
Apr 9 23:15:55 linux-8yl2 kernel: usbip: vhci_hcd: device eeec111c seems to be disconnected  
Apr 9 23:15:55 linux-8yl2 kernel: usbip: vhci_hcd: vhci_urb_dequeue() gives back urb f7d155c0  
Apr 9 23:15:55 linux-8yl2 kernel: usb 6-1: USB disconnect, address 4  
Apr 9 23:15:55 linux-8yl2 kernel: sd 7:0:0:0: Device offlined - not ready after error recovery  
 
 
 
after detaching 
 
Server 
7)bind_driver --list  
List USB devices  
- busid 1-3 (090c:1000)  
1-3:1.0 -> none  
 
 
8)rmmod usbip 
the system hangs and have to restart. 
Apr 9 23:18:39 linux-8yl2 kernel: usbcore: deregistering interface driver usbip
Comment 1 Alan 2012-10-30 16:47:50 UTC
If this is still seen on modern kernels then please re-open/update

Note You need to log in before you can comment on or make changes to this bug.