Re: Debugging USB 3.0 Speeds
On Wed, 6 Sep 2017, Mathias Nyman wrote: On 06.09.2017 12:24, Oliver Neukum wrote: Am Dienstag, den 05.09.2017, 13:52 -0700 schrieb Shaya Potter: I've added a USB 3.0 card that should support super speed to a server I have, but it's not working at super-speed speeds for the external hard drives I connect, and a having a hard time diagnosing why (hardware issue/quirk? driver issue?) Before installing the card, xhci wasn't ever used, now it is, so that makes it clear that it is a usb 3.0 card. It's a 4 port card, but what's weird is that the card seems to expose 2 USB hubs with 4 ports. It should do so. XHCI always provides two virtual controllers as the concept of companion controllers for lower speeds has been abandoned. I have tested these drives in other computers (windows) and they seemed to work at super-speed speeds, plan is to try a different usb 3.0 card as well in this machine which I also know worked in windows at super-speed speeds, but trying to understand f there are other ways to debug it. i.e. even lsusb -v shows that these devices should be capable of super-speed speeds This is an issue with the XHCI driver. Please switch on dynamic debugging for it. To do this just: mount -t debugfs none /sys/kernel/debug echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control before plugging in the usb 3.0 device and I left out lspci -nn output from my initial email, it's 07:00.0 USB controller [0c03]: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller [1912:0014] (rev 03) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Debugging USB 3.0 Speeds
On Wed, 6 Sep 2017, Mathias Nyman wrote: On 06.09.2017 12:24, Oliver Neukum wrote: Am Dienstag, den 05.09.2017, 13:52 -0700 schrieb Shaya Potter: I've added a USB 3.0 card that should support super speed to a server I have, but it's not working at super-speed speeds for the external hard drives I connect, and a having a hard time diagnosing why (hardware issue/quirk? driver issue?) Before installing the card, xhci wasn't ever used, now it is, so that makes it clear that it is a usb 3.0 card. It's a 4 port card, but what's weird is that the card seems to expose 2 USB hubs with 4 ports. It should do so. XHCI always provides two virtual controllers as the concept of companion controllers for lower speeds has been abandoned. I have tested these drives in other computers (windows) and they seemed to work at super-speed speeds, plan is to try a different usb 3.0 card as well in this machine which I also know worked in windows at super-speed speeds, but trying to understand f there are other ways to debug it. i.e. even lsusb -v shows that these devices should be capable of super-speed speeds This is an issue with the XHCI driver. Please switch on dynamic debugging for it. To do this just: mount -t debugfs none /sys/kernel/debug echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control before plugging in the usb 3.0 device 200K of logs, so using patebin https://pastebin.com/b6bZQcAP -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Debugging USB 3.0 Speeds
On 06.09.2017 12:24, Oliver Neukum wrote: Am Dienstag, den 05.09.2017, 13:52 -0700 schrieb Shaya Potter: I've added a USB 3.0 card that should support super speed to a server I have, but it's not working at super-speed speeds for the external hard drives I connect, and a having a hard time diagnosing why (hardware issue/quirk? driver issue?) Before installing the card, xhci wasn't ever used, now it is, so that makes it clear that it is a usb 3.0 card. It's a 4 port card, but what's weird is that the card seems to expose 2 USB hubs with 4 ports. It should do so. XHCI always provides two virtual controllers as the concept of companion controllers for lower speeds has been abandoned. I have tested these drives in other computers (windows) and they seemed to work at super-speed speeds, plan is to try a different usb 3.0 card as well in this machine which I also know worked in windows at super-speed speeds, but trying to understand f there are other ways to debug it. i.e. even lsusb -v shows that these devices should be capable of super-speed speeds This is an issue with the XHCI driver. Please switch on dynamic debugging for it. To do this just: mount -t debugfs none /sys/kernel/debug echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control before plugging in the usb 3.0 device -Mathias -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Debugging USB 3.0 Speeds
Am Dienstag, den 05.09.2017, 13:52 -0700 schrieb Shaya Potter: > I've added a USB 3.0 card that should support super speed to a server I > have, but it's not working at super-speed speeds for the external hard > drives I connect, and a having a hard time diagnosing why (hardware > issue/quirk? driver issue?) > > Before installing the card, xhci wasn't ever used, now it is, so that > makes it clear that it is a usb 3.0 card. It's a 4 port card, but what's > weird is that the card seems to expose 2 USB hubs with 4 ports. It should do so. XHCI always provides two virtual controllers as the concept of companion controllers for lower speeds has been abandoned. > I have tested these drives in other computers (windows) and they seemed to > work at super-speed speeds, plan is to try a different usb 3.0 card as > well in this machine which I also know worked in windows at super-speed > speeds, but trying to understand f there are other ways to debug it. > > i.e. even lsusb -v shows that these devices should be capable of > super-speed speeds This is an issue with the XHCI driver. Please switch on dynamic debugging for it. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Debugging USB 3.0 Speeds
I've added a USB 3.0 card that should support super speed to a server I have, but it's not working at super-speed speeds for the external hard drives I connect, and a having a hard time diagnosing why (hardware issue/quirk? driver issue?) Before installing the card, xhci wasn't ever used, now it is, so that makes it clear that it is a usb 3.0 card. It's a 4 port card, but what's weird is that the card seems to expose 2 USB hubs with 4 ports. i.e. [2.086988] xhci_hcd :07:00.0: xHCI Host Controller [2.086996] xhci_hcd :07:00.0: new USB bus registered, assigned bus number 2 [2.092364] xhci_hcd :07:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0010 [2.092561] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [2.092563] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [2.092564] usb usb2: Product: xHCI Host Controller [2.092565] usb usb2: Manufacturer: Linux 4.9.0-3-amd64 xhci-hcd [2.092566] usb usb2: SerialNumber: :07:00.0 [2.092741] hub 2-0:1.0: USB hub found [2.092749] hub 2-0:1.0: 4 ports detected quickly followed by [2.092881] xhci_hcd :07:00.0: xHCI Host Controller [2.092884] xhci_hcd :07:00.0: new USB bus registered, assigned bus number 3 [2.095951] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM. [2.095965] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003 [2.095966] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [2.095967] usb usb3: Product: xHCI Host Controller [2.095968] usb usb3: Manufacturer: Linux 4.9.0-3-amd64 xhci-hcd [2.095969] usb usb3: SerialNumber: :07:00.0 [2.096100] hub 3-0:1.0: USB hub found [2.096116] hub 3-0:1.0: 4 ports detected lsusb -t shows the hubs and the problem /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M |__ Port 3: Dev 5, If 0, Class=Mass Storage, Driver=uas, 480M |__ Port 4: Dev 6, If 0, Class=Hub, Driver=hub/3p, 480M |__ Port 1: Dev 11, If 0, Class=Mass Storage, Driver=uas, 480M the hard drives I plug in are connecting to the 480Mbps "hub", not the 5000Mbps hub. and this is clear from the kernel logs when connecting the external hard drive [538663.101097] usb 2-4: new high-speed USB device number 6 using xhci_hcd [538663.246919] usb 2-4: New USB device found, idVendor=0bc2, idProduct=ab44 [538663.246922] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [538663.246923] usb 2-4: Product: Backup+ Hub [538663.246924] usb 2-4: Manufacturer: Seagate [538663.248429] hub 2-4:1.0: USB hub found [538663.248973] hub 2-4:1.0: 3 ports detected [538664.169034] usb 2-4.1: new high-speed USB device number 11 using xhci_hcd [538664.319996] usb 2-4.1: New USB device found, idVendor=0bc2, idProduct=ab38 [538664.31] usb 2-4.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1 [538664.32] usb 2-4.1: Product: Backup+ Hub BK [538664.320001] usb 2-4.1: Manufacturer: Seagate I have tested these drives in other computers (windows) and they seemed to work at super-speed speeds, plan is to try a different usb 3.0 card as well in this machine which I also know worked in windows at super-speed speeds, but trying to understand f there are other ways to debug it. i.e. even lsusb -v shows that these devices should be capable of super-speed speeds SuperSpeed USB Device Capability: bLength10 bDescriptorType16 bDevCapabilityType 3 bmAttributes 0x00 wSpeedsSupported 0x000e Device can operate at Full Speed (12Mbps) Device can operate at High Speed (480Mbps) Device can operate at SuperSpeed (5Gbps) For reference, this is the stock Debian 4.9 kernel in Debian stretch Linux spotter 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux any help in understanding what's going on would be appreciated. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html