RE: [PATCH 0/4] usbutils fixes for USB 3.0 devices

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

 



> -----Original Message-----
> From: Sarah Sharp [mailto:sarah.a.sharp@xxxxxxxxxxxxxxx]
> Sent: Thursday, September 09, 2010 12:31 PM
> To: John Youn
> Cc: Greg KH; linux-usb@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH 0/4] usbutils fixes for USB 3.0 devices
> 
> On Thu, Sep 09, 2010 at 12:13:37PM -0700, John Youn wrote:
> > > > I've tested the patches with our hardware and it doesn't show up
> in
> > > lsusb.  It shows up in /proc/bus/usb/devices and it also works fine
> as
> > > both a 2.0 and 3.0 hub.  Downstream 3.0 and 2.0 devices show up in
> > > lsusb as well.  Only the hub itself does not.  There are no
> > > error/warning messages from lsusb.  VIA hub also shows up fine.
> I've
> > > attached the device/hub descriptor output.
> > >
> > > Do you have CONFIG_USB_SUSPEND set to yes?  That can cause USB hubs
> > > under xHCI to disappear when they can't be suspended.
> > >
> > > Sarah Sharp
> >
> > That seemed to be the issue.  I can now see the details of our hub in
> lsusb.  However it seg faults just before displaying the 3.0 root hub
> port status.  This happens with or without our hub plugged in.  The
> root hub was not displaying before with CONFIG_USB_SUSPEND=y.
> 
> Which seg faults, the kernel or lsusb?  Please send dmesg and USBmon
> output.


The seg fault is from lsusb.

Could there be some parse error of the data coming from the root hub since it returns a 2.0 formatted hub descriptor?
 
Lsusb, dmesg, and usbmon output:

Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         3 
  bMaxPacketSize0         9
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0003 3.0 root hub
  bcdDevice            2.06
  iManufacturer           3 Linux 2.6.35+ xhci_hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 0000:06:00.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay          4080 nano seconds
  DeviceRemovable    0x00
 Hub Port Status:
Segmentation fault (core dumped)


[  103.151129] xhci_hcd 0000:06:00.0: get port status, actual port 0 status  = 0x2a0
[  103.151133] xhci_hcd 0000:06:00.0: Get port status returned 0x100
[  103.151143] lsusb[2066]: segfault at a0009042909 ip 0000003267847ff7 sp 00007fff33a51ae0 error 4 in libc-2.12.so[3267800000+175000]



ffff88009c0af780 2509549790 S Ci:9:001:0 s 80 06 0300 0000 00ff 255 <
ffff88009c0af780 2509549812 C Ci:9:001:0 0 4 = 04030904
ffff88009c0af780 2509549822 S Ci:9:001:0 s 80 06 0303 0409 00ff 255 <
ffff88009c0af780 2509549827 C Ci:9:001:0 0 46 = 2e034c00 69006e00 75007800 20003200 2e003600 2e003300 35002b00 20007800
ffff88009c0af780 2509549831 S Ci:9:001:0 s 80 06 0300 0000 00ff 255 <
ffff88009c0af780 2509549833 C Ci:9:001:0 0 4 = 04030904
ffff88009c0af780 2509549837 S Ci:9:001:0 s 80 06 0302 0409 00ff 255 <
ffff88009c0af780 2509549840 C Ci:9:001:0 0 42 = 2a037800 48004300 49002000 48006f00 73007400 20004300 6f006e00 74007200
ffff88009c0af780 2509549843 S Ci:9:001:0 s 80 06 0300 0000 00ff 255 <
ffff88009c0af780 2509549845 C Ci:9:001:0 0 4 = 04030904
ffff88009c0af780 2509549849 S Ci:9:001:0 s 80 06 0301 0409 00ff 255 <
ffff88009c0af780 2509549851 C Ci:9:001:0 0 26 = 1a033000 30003000 30003a00 30003600 3a003000 30002e00 3000
ffff88009c0af780 2509549996 S Ci:9:001:0 s a0 06 2a00 0000 000d 13 <
ffff88009c0af780 2509550000 C Ci:9:001:0 0 13 = 09290409 000a0000 ff000000 00
ffff88009c0af780 2509550040 S Ci:9:001:0 s a3 00 0000 0001 0004 4 <
ffff88009c0af780 2509550067 C Ci:9:001:0 0 4 = 00010000




--
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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux