Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB3 device running at 480mb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1508
Location: San Jose, CA

PostPosted: Thu Dec 27, 2018 7:13 pm    Post subject: USB3 device running at 480mb Reply with quote

I just bought an ALFA wifi (rtl8812au) adapter. I built the driver and installed it. It works fine, but no USB devices are running at above 480mb even though the motherboard supports it.

Here's the output of lsusb -t:

Code:
/usr/src/linux # lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 1: Dev 6, If 0, Class=Vendor Specific Class, Driver=rtl8812au, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 4: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 8: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 8, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 8, If 2, Class=Human Interface Device, Driver=usbhid, 12M


No matter what port I plug it into (blue or pink), it always comes up at 480M (USB2 speed).

I found a thread from 2012 that says that pci=msi will fix issues like this, but I find it hard to believe that I have to specify something on the kernel command line to get this to work.

Does anyone have an idea what to do about this? If my google-fu isn't good and there's a thread out there that talks about this, please point me to it.

Thanks in advance.

PS: yes, I will try the pci=msi on the command line next...
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44010
Location: 56N 3W

PostPosted: Thu Dec 27, 2018 7:53 pm    Post subject: Reply with quote

RayDude,
Code:

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 4: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 8: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 8, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 8, If 2, Class=Human Interface Device, Driver=usbhid, 12M
Those devices are USB1 fast and slow devices.
That's fine.

Code:
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 1: Dev 6, If 0, Class=Vendor Specific Class, Driver=rtl8812au, 480M
I suspect that's a USB2 device.
Check its
Code:
bcdUSB
in
Code:
lsusb -v


To get 5Gbit/sec, you need a USB3 device connected to a USB3 port.
Code:
lsusb -t
/:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/4p, 5000M
    |__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/5p, 5000M

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1508
Location: San Jose, CA

PostPosted: Thu Dec 27, 2018 8:11 pm    Post subject: Reply with quote

Thanks Neddy!

I've tried literally every USB port on the back of the computer, most of them are Blue (USB3, right?) and two are Pink (USB3+, right?). The device always shows up under a USB2 HUB.

Argh. I checked the device I plugged in and it's reporting itself as bcdUSB 2.0...

Code:
Bus 005 Device 002: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x8812 RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter
  bcdDevice            0.00
  iManufacturer           1 Realtek
  iProduct                2 802.11n NIC
  iSerial                 3 123456
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           53
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
...


So it's the alfa part that is at fault, even though I can clearly see that it has a USB 3.0 cable connected to it.

I'll see if there's a firmware update for it.

Thanks.
_________________
Some day there will only be free software.


Last edited by RayDude on Fri Dec 28, 2018 4:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1508
Location: San Jose, CA

PostPosted: Thu Dec 27, 2018 8:57 pm    Post subject: Reply with quote

Fixed it:

Code:
lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=rtl88xxau, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 4: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 8: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M


Use this driver: https://github.com/aircrack-ng/rtl8812au
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1508
Location: San Jose, CA

PostPosted: Thu Dec 27, 2018 9:02 pm    Post subject: Reply with quote

Spoke too soon.

The new driver hangs after a few minutes.

But I loaded the old driver and it works and it's at 5000M...

Something the new driver did enabled the old driver to run at USB3 rates.

Man...
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2562

PostPosted: Thu Dec 27, 2018 10:01 pm    Post subject: Reply with quote

You might want to test the throughput on that device. It's unlikely that a bargain device like that is actually getting wire speed at USB3 rates.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1508
Location: San Jose, CA

PostPosted: Fri Dec 28, 2018 12:42 am    Post subject: Reply with quote

It's connecting at 860 Mb/sec, but with USB2 speeds I can't get that. In fact I'm only getting about 128 mb/sec with the USB2 driver...

I was hoping to get a higher rate...

The new driver doesn't work at all. I have to find another....
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1508
Location: San Jose, CA

PostPosted: Fri Dec 28, 2018 3:34 am    Post subject: Reply with quote

Well, this one appears to work and I got 195 mb/sec with it. Still not 867 mb/s like the Bit Rate reported by iwconfig, but still better than before.

https://github.com/zebulon2/rtl8812au-driver-5.2.20

I can't believe how many versions of this driver there are.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44010
Location: 56N 3W

PostPosted: Fri Dec 28, 2018 2:55 pm    Post subject: Reply with quote

RayDude,

You can't get anything like the headline speed.
Once you allow for latency and overhead, you will be lucky to see half that.

The ac bandwith is shared between all connected devices. Some is lost to collisions with other networks in the same band.

Think of WiFi like token ring with collisions.
Only the device that has the token is allowed to transmit. The collisions are from other networks doing the same thing on the same channel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1508
Location: San Jose, CA

PostPosted: Fri Dec 28, 2018 4:34 pm    Post subject: Reply with quote

Thanks Neddy.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum