On Fri, Apr 23, 2010 at 05:34:14PM -0400, Alan Stern wrote: > On Fri, 23 Apr 2010, Sarah Sharp wrote: > > > > Does this look okay to you? I don't have any way to test it. > > > > Yes and no. Everything seems to behave properly with all the USB > > devices I have; the I can read and write to the USB 3.0 hard drives, > > etc. (The one thing I don't have is a USB 3.0 device that has > > descriptors between the SuperSpeed Endpoint Companion Descriptor and the > > next Endpoint Descriptor, like a UAS device would have). > > > > However, some devices are missing from the lsusb output, which is very > > strange. Specifically, the roothub is always missing, and any hubs > > directly connected to it disappear after a device has been plugged into > > them. Hubs further up the tree do not disappear from the lsusb output. > > I think this might be related to the fact that the roothub doesn't have > > a SuperSpeed Endpoint Companion Descriptor. > > Very weird indeed. What shows up in /sys/kernel/debug/usb/devices? The USB devices show up fine there. Here's with the roothub and just a HS hub: sarah@xanatos:~$ lsusb Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 003: ID 0a5c:2145 Broadcom Corp. Bus 003 Device 002: ID 08ff:2810 AuthenTec, Inc. Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub sarah@xanatos:~$ ls /sys/bus/usb/devices/ 1-0:1.0 3-0:1.0 3-1:1.0 3-2:1.0 3-2:1.2 4-0:1.0 6-0:1.0 8-0:1.0 usb1 usb3 usb5 usb7 usb9 2-0:1.0 3-1 3-2 3-2:1.1 3-2:1.3 5-0:1.0 7-0:1.0 9-0:1.0 usb2 usb4 usb6 usb8 sarah@xanatos:~$ ls /sys/bus/usb/devices/usb9/ 9-0:1.0 avoid_reset_quirk bDeviceProtocol bMaxPower configuration devpath idVendor product speed version 9-3 bcdDevice bDeviceSubClass bNumConfigurations descriptors driver manufacturer quirks subsystem authorized bConfigurationValue bmAttributes bNumInterfaces dev ep_00 maxchild remove uevent authorized_default bDeviceClass bMaxPacketSize0 busnum devnum idProduct power serial urbnum > If that looks all right then maybe the problem is somehow in lsusb. > You can find out what lsusb is up to by doing > > echo 1 >/sys/module/usbcore/parameters/usbfs_snoop > > before starting the program and then looking at the dmesg log after it > runs. Here's the output from dmesg when I run lsusb after executing that command: Apr 23 14:59:00 xanatos kernel: [ 419.934509] usb usb8: usb auto-resume Apr 23 14:59:00 xanatos kernel: [ 419.934516] usb usb8: wakeup_rh Apr 23 14:59:00 xanatos kernel: [ 419.972135] hub 8-0:1.0: hub_resume Apr 23 14:59:00 xanatos kernel: [ 419.972327] usb usb8: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 419.972351] usb usb8: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:00 xanatos kernel: [ 419.972361] hub 8-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 14:59:00 xanatos kernel: [ 419.972512] usb usb8: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 419.972528] usb usb8: usbdev_do_ioctl: IOCTL Apr 23 14:59:00 xanatos kernel: [ 419.972741] usb usb7: usb auto-resume Apr 23 14:59:00 xanatos kernel: [ 419.972749] usb usb7: wakeup_rh Apr 23 14:59:00 xanatos kernel: [ 420.012118] hub 7-0:1.0: hub_resume Apr 23 14:59:00 xanatos kernel: [ 420.012294] usb usb7: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.012310] usb usb7: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:00 xanatos kernel: [ 420.012324] hub 7-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 14:59:00 xanatos kernel: [ 420.012428] usb usb7: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.012443] usb usb7: usbdev_do_ioctl: IOCTL Apr 23 14:59:00 xanatos kernel: [ 420.012612] usb usb6: usb auto-resume Apr 23 14:59:00 xanatos kernel: [ 420.012621] usb usb6: wakeup_rh Apr 23 14:59:00 xanatos kernel: [ 420.052122] hub 6-0:1.0: hub_resume Apr 23 14:59:00 xanatos kernel: [ 420.052298] usb usb6: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.052314] usb usb6: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:00 xanatos kernel: [ 420.052327] hub 6-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 14:59:00 xanatos kernel: [ 420.052460] usb usb6: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.052475] usb usb6: usbdev_do_ioctl: IOCTL Apr 23 14:59:00 xanatos kernel: [ 420.052644] usb usb5: usb auto-resume Apr 23 14:59:00 xanatos kernel: [ 420.052651] usb usb5: wakeup_rh Apr 23 14:59:00 xanatos kernel: [ 420.092134] hub 5-0:1.0: hub_resume Apr 23 14:59:00 xanatos kernel: [ 420.092311] usb usb5: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.092327] usb usb5: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:00 xanatos kernel: [ 420.092345] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 14:59:00 xanatos kernel: [ 420.092440] usb usb5: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.092455] usb usb5: usbdev_do_ioctl: IOCTL Apr 23 14:59:00 xanatos kernel: [ 420.092627] usb usb4: usb auto-resume Apr 23 14:59:00 xanatos kernel: [ 420.092636] ehci_hcd 0000:00:1d.7: resume root hub Apr 23 14:59:00 xanatos kernel: [ 420.120168] hub 4-0:1.0: hub_resume Apr 23 14:59:00 xanatos kernel: [ 420.120616] usb usb4: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.120633] usb usb4: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:00 xanatos kernel: [ 420.120646] hub 4-0:1.0: state 7 ports 6 chg 0000 evt 0000 Apr 23 14:59:00 xanatos kernel: [ 420.120745] usb usb4: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.120760] usb usb4: usbdev_do_ioctl: IOCTL Apr 23 14:59:00 xanatos kernel: [ 420.120938] usb 3-2: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.120952] usb 3-2: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:00 xanatos kernel: [ 420.121084] usb 3-1: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.121099] usb 3-1: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:00 xanatos kernel: [ 420.121192] usb usb3: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.121207] usb usb3: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:00 xanatos kernel: [ 420.121311] usb 3-2: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.121326] usb 3-2: usbdev_do_ioctl: IOCTL Apr 23 14:59:00 xanatos kernel: [ 420.121427] usb 3-1: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.121440] usb 3-1: usbdev_do_ioctl: IOCTL Apr 23 14:59:00 xanatos kernel: [ 420.121530] usb usb3: opened by process 4233: lsusb Apr 23 14:59:00 xanatos kernel: [ 420.121544] usb usb3: usbdev_do_ioctl: IOCTL Apr 23 14:59:00 xanatos kernel: [ 420.121712] usb usb2: usb auto-resume Apr 23 14:59:00 xanatos kernel: [ 420.121720] ehci_hcd 0000:00:1a.7: resume root hub Apr 23 14:59:00 xanatos kernel: [ 420.176120] hub 2-0:1.0: hub_resume Apr 23 14:59:00 xanatos kernel: [ 420.176571] usb usb2: opened by process 4233: lsusb Apr 23 14:59:01 xanatos kernel: [ 420.176579] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0000 Apr 23 14:59:01 xanatos kernel: [ 420.176597] usb usb2: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:01 xanatos kernel: [ 420.176749] usb usb2: opened by process 4233: lsusb Apr 23 14:59:01 xanatos kernel: [ 420.176764] usb usb2: usbdev_do_ioctl: IOCTL Apr 23 14:59:01 xanatos kernel: [ 420.176924] usb usb1: usb auto-resume Apr 23 14:59:01 xanatos kernel: [ 420.176931] usb usb1: wakeup_rh Apr 23 14:59:01 xanatos kernel: [ 420.216121] hub 1-0:1.0: hub_resume Apr 23 14:59:01 xanatos kernel: [ 420.216297] usb usb1: opened by process 4233: lsusb Apr 23 14:59:01 xanatos kernel: [ 420.216313] usb usb1: usbdev_do_ioctl: CONNECTINFO Apr 23 14:59:01 xanatos kernel: [ 420.216332] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 14:59:01 xanatos kernel: [ 420.216423] usb usb1: opened by process 4233: lsusb Apr 23 14:59:01 xanatos kernel: [ 420.216438] usb usb1: usbdev_do_ioctl: IOCTL It seems like it's not asking for anything from bus 9. Now if I plug in a mouse into the HS hub, this is the output: Apr 23 15:02:26 xanatos kernel: [ 625.481121] usb 9-3.1: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.481129] usb 9-3.1: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.481309] usb 9-3.1: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.481315] usb 9-3.1: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.481379] usb usb8: usb auto-resume Apr 23 15:02:26 xanatos kernel: [ 625.481382] usb usb8: wakeup_rh Apr 23 15:02:26 xanatos kernel: [ 625.520140] hub 8-0:1.0: hub_resume Apr 23 15:02:26 xanatos kernel: [ 625.520329] usb usb8: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.520345] usb usb8: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.520360] hub 8-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 15:02:26 xanatos kernel: [ 625.520466] usb usb8: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.520481] usb usb8: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.520656] usb usb7: usb auto-resume Apr 23 15:02:26 xanatos kernel: [ 625.520664] usb usb7: wakeup_rh Apr 23 15:02:26 xanatos kernel: [ 625.560120] hub 7-0:1.0: hub_resume Apr 23 15:02:26 xanatos kernel: [ 625.560301] usb usb7: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.560318] usb usb7: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.560331] hub 7-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 15:02:26 xanatos kernel: [ 625.560472] usb usb7: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.560487] usb usb7: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.560667] usb usb6: usb auto-resume Apr 23 15:02:26 xanatos kernel: [ 625.560675] usb usb6: wakeup_rh Apr 23 15:02:26 xanatos kernel: [ 625.600137] hub 6-0:1.0: hub_resume Apr 23 15:02:26 xanatos kernel: [ 625.600317] usb usb6: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.600333] usb usb6: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.600346] hub 6-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 15:02:26 xanatos kernel: [ 625.600484] usb usb6: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.600499] usb usb6: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.600673] usb usb5: usb auto-resume Apr 23 15:02:26 xanatos kernel: [ 625.600681] usb usb5: wakeup_rh Apr 23 15:02:26 xanatos kernel: [ 625.640176] hub 5-0:1.0: hub_resume Apr 23 15:02:26 xanatos kernel: [ 625.640352] usb usb5: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.640368] usb usb5: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.640381] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 15:02:26 xanatos kernel: [ 625.640485] usb usb5: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.640501] usb usb5: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.640674] usb usb4: usb auto-resume Apr 23 15:02:26 xanatos kernel: [ 625.640683] ehci_hcd 0000:00:1d.7: resume root hub Apr 23 15:02:26 xanatos kernel: [ 625.668167] hub 4-0:1.0: hub_resume Apr 23 15:02:26 xanatos kernel: [ 625.668624] usb usb4: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.668641] usb usb4: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.668654] hub 4-0:1.0: state 7 ports 6 chg 0000 evt 0000 Apr 23 15:02:26 xanatos kernel: [ 625.668795] usb usb4: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.668810] usb usb4: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.668989] usb 3-2: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.669003] usb 3-2: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.669127] usb 3-1: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.669141] usb 3-1: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.669239] usb usb3: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.669254] usb usb3: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.669362] usb 3-2: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.669377] usb 3-2: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.669474] usb 3-1: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.669488] usb 3-1: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.669580] usb usb3: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.669594] usb usb3: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.669774] usb usb2: usb auto-resume Apr 23 15:02:26 xanatos kernel: [ 625.669782] ehci_hcd 0000:00:1a.7: resume root hub Apr 23 15:02:26 xanatos kernel: [ 625.720137] hub 2-0:1.0: hub_resume Apr 23 15:02:26 xanatos kernel: [ 625.720589] usb usb2: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.720606] usb usb2: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.720624] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0000 Apr 23 15:02:26 xanatos kernel: [ 625.720759] usb usb2: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.720774] usb usb2: usbdev_do_ioctl: IOCTL Apr 23 15:02:26 xanatos kernel: [ 625.720942] usb usb1: usb auto-resume Apr 23 15:02:26 xanatos kernel: [ 625.720949] usb usb1: wakeup_rh Apr 23 15:02:26 xanatos kernel: [ 625.760133] hub 1-0:1.0: hub_resume Apr 23 15:02:26 xanatos kernel: [ 625.760309] usb usb1: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.760325] usb usb1: usbdev_do_ioctl: CONNECTINFO Apr 23 15:02:26 xanatos kernel: [ 625.760338] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000 Apr 23 15:02:26 xanatos kernel: [ 625.760466] usb usb1: opened by process 4270: lsusb Apr 23 15:02:26 xanatos kernel: [ 625.760481] usb usb1: usbdev_do_ioctl: IOCTL So lsusb is accessing the mouse, but not the roothub or HS hub. Sarah Sharp -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html