USB3 port only works as USB2

Dunuin

Contributor
Joined
Mar 7, 2013
Messages
110
Hi,

I bought four WD Elements 8TB USB3 HDDs to create a raidz1 pool for backups. Thats working fine and is copying files without problems for 24 hours but it is just way to slow. I found out that only USB2 speed is used and all 4 drives share the same port because I used a 4-port-usb3-hub to connect them because my X10SLL-F Mainboard only got 1 external USB3 port.

The logs are showing this:
Mar 7 17:37:05 BM-Homeserver ugen1.5: <Generic 4-Port USB 2.0 Hub> at usbus1 Mar 7 17:37:05 BM-Homeserver uhub5 on uhub2 Mar 7 17:37:05 BM-Homeserver uhub5: <Generic 4-Port USB 2.0 Hub, class 9/0, rev 2.10/1.21, addr 5> on usbus1 Mar 7 17:37:05 BM-Homeserver uhub5: MTT enabled Mar 7 17:37:06 BM-Homeserver uhub5: 4 ports with 4 removable, self powered Mar 7 17:37:22 BM-Homeserver ugen1.6: <Western Digital Elements 25A3> at usbus1 Mar 7 17:37:22 BM-Homeserver umass0 on uhub5 Mar 7 17:37:22 BM-Homeserver umass0: <Western Digital Elements 25A3, class 0/0, rev 2.10/10.21, addr 6> on usbus1 Mar 7 17:37:22 BM-Homeserver umass0: SCSI over Bulk-Only; quirks = 0xc101 Mar 7 17:37:22 BM-Homeserver umass0:9:0: Attached to scbus9 Mar 7 17:37:26 BM-Homeserver ugen1.7: <Western Digital Elements 25A3> at usbus1 Mar 7 17:37:26 BM-Homeserver umass1 on uhub5 Mar 7 17:37:26 BM-Homeserver umass1: <Western Digital Elements 25A3, class 0/0, rev 2.10/10.21, addr 7> on usbus1 Mar 7 17:37:26 BM-Homeserver umass1: SCSI over Bulk-Only; quirks = 0xc101 Mar 7 17:37:26 BM-Homeserver umass1:10:1: Attached to scbus10 Mar 7 17:37:30 BM-Homeserver ugen1.8: <Western Digital Elements 25A3> at usbus1 Mar 7 17:37:30 BM-Homeserver umass2 on uhub5 Mar 7 17:37:30 BM-Homeserver umass2: <Western Digital Elements 25A3, class 0/0, rev 2.10/10.21, addr 8> on usbus1 Mar 7 17:37:30 BM-Homeserver umass2: SCSI over Bulk-Only; quirks = 0xc101 Mar 7 17:37:30 BM-Homeserver umass2:11:2: Attached to scbus11 Mar 7 17:37:34 BM-Homeserver ugen1.9: <Western Digital Elements 25A3> at usbus1 Mar 7 17:37:34 BM-Homeserver umass3 on uhub5 Mar 7 17:37:34 BM-Homeserver umass3: <Western Digital Elements 25A3, class 0/0, rev 2.10/10.21, addr 9> on usbus1 Mar 7 17:37:34 BM-Homeserver umass3: SCSI over Bulk-Only; quirks = 0xc101 Mar 7 17:37:34 BM-Homeserver umass3:12:3: Attached to scbus12 Mar 7 17:37:39 BM-Homeserver da4 at umass-sim0 bus 0 scbus9 target 0 lun 0 Mar 7 17:37:39 BM-Homeserver da4: <WD Elements 25A3 1021> Fixed Direct Access SPC-4 SCSI device Mar 7 17:37:39 BM-Homeserver da4: Serial Number XXXXXXA Mar 7 17:37:39 BM-Homeserver da4: 40.000MB/s transfers Mar 7 17:37:39 BM-Homeserver da4: 7630853MB (15627986944 512 byte sectors) Mar 7 17:37:39 BM-Homeserver da4: quirks=0x2<NO_6_BYTE> Mar 7 17:37:43 BM-Homeserver da5 at umass-sim1 bus 1 scbus10 target 0 lun 0 Mar 7 17:37:43 BM-Homeserver da5: <WD Elements 25A3 1021> Fixed Direct Access SPC-4 SCSI device Mar 7 17:37:43 BM-Homeserver da5: Serial Number XXXXXX Mar 7 17:37:43 BM-Homeserver da5: 40.000MB/s transfers Mar 7 17:37:43 BM-Homeserver da5: 7630853MB (15627986944 512 byte sectors) Mar 7 17:37:43 BM-Homeserver da5: quirks=0x2<NO_6_BYTE> Mar 7 17:37:47 BM-Homeserver da6 at umass-sim2 bus 2 scbus11 target 0 lun 0 Mar 7 17:37:47 BM-Homeserver da6: <WD Elements 25A3 1021> Fixed Direct Access SPC-4 SCSI device Mar 7 17:37:47 BM-Homeserver da6: Serial Number XXXXXX Mar 7 17:37:47 BM-Homeserver da6: 40.000MB/s transfers Mar 7 17:37:47 BM-Homeserver da6: 7630853MB (15627986944 512 byte sectors) Mar 7 17:37:47 BM-Homeserver da6: quirks=0x2<NO_6_BYTE> Mar 7 17:37:51 BM-Homeserver da7 at umass-sim3 bus 3 scbus12 target 0 lun 0 Mar 7 17:37:51 BM-Homeserver da7: <WD Elements 25A3 1021> Fixed Direct Access SPC-4 SCSI device Mar 7 17:37:51 BM-Homeserver da7: Serial Number XXXXXX Mar 7 17:37:51 BM-Homeserver da7: 40.000MB/s transfers Mar 7 17:37:51 BM-Homeserver da7: 7630853MB (15627986944 512 byte sectors) Mar 7 17:37:51 BM-Homeserver da7: quirks=0x2<NO_6_BYTE>

root@BM-Homeserver[~]# usbconfig ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=S AVE (0mA) ugen0.1: <Intel EHCI root HUB> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=S AVE (0mA) ugen1.2: <vendor 0x8087 product 0x8000> at usbus1, cfg=0 md=HOST spd=HIGH (480Mb ps) pwr=SAVE (0mA) ugen0.2: <vendor 0x8087 product 0x8008> at usbus0, cfg=0 md=HOST spd=HIGH (480Mb ps) pwr=SAVE (0mA) ugen1.3: <vendor 0x0557 product 0x7000> at usbus1, cfg=0 md=HOST spd=HIGH (480Mb ps) pwr=SAVE (100mA) ugen1.4: <vendor 0x0557 product 0x2419> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbp s) pwr=ON (160mA) ugen1.5: <Generic 4-Port USB 2.0 Hub> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps ) pwr=SAVE (0mA) ugen1.6: <Western Digital Elements 25A3> at usbus1, cfg=0 md=HOST spd=HIGH (480M bps) pwr=ON (30mA) ugen1.7: <Western Digital Elements 25A3> at usbus1, cfg=0 md=HOST spd=HIGH (480M bps) pwr=ON (30mA) ugen1.8: <Western Digital Elements 25A3> at usbus1, cfg=0 md=HOST spd=HIGH (480M bps) pwr=ON (30mA) ugen1.9: <Western Digital Elements 25A3> at usbus1, cfg=0 md=HOST spd=HIGH (480M bps) pwr=ON (30mA)

<ATA Patriot Burst 61.3> at scbus0 target 1 lun 0 (pass0,da0) <ATA Patriot Burst 61.3> at scbus0 target 2 lun 0 (pass1,da1) <ATA Patriot Burst J1.3> at scbus0 target 3 lun 0 (pass2,da2) <ATA Patriot Burst KA.3> at scbus0 target 4 lun 0 (pass3,da3) <Intenso SSD Q1107A0> at scbus1 target 0 lun 0 (pass4,ada0) <Intenso SSD Q1013E1> at scbus2 target 0 lun 0 (pass5,ada1) <WDC WD80EMAZ-00WJTA0 83.H0A83> at scbus3 target 0 lun 0 (pass6,ada2) <WDC WD80EMAZ-00WJTA0 83.H0A83> at scbus4 target 0 lun 0 (pass7,ada3) <WDC WD80EMAZ-00WJTA0 83.H0A83> at scbus5 target 0 lun 0 (pass8,ada4) <WDC WD80EMAZ-00WJTA0 83.H0A83> at scbus6 target 0 lun 0 (pass9,ada5) <AHCI SGPIO Enclosure 2.00 0001> at scbus7 target 0 lun 0 (pass10,ses0) <WD Elements 25A3 1021> at scbus9 target 0 lun 0 (da4,pass11) <WD Elements 25A3 1021> at scbus10 target 0 lun 0 (da5,pass12) <WD Elements 25A3 1021> at scbus11 target 0 lun 0 (da6,pass13) <WD Elements 25A3 1021> at scbus12 target 0 lun 0 (da7,pass14)

"usbdevs" to get more information seems not to be shipped with FreeNAS.

Isn't FreeNAS able to use USB3 by default?
Is there a way to find out why only USB2 is used and not USB3?
How to find out if the USB Controller on the mainboard, the USB-Hub or the USB-HDDs is causing the USB3 to fall back to USB2 mode?
 

demon

Contributor
Joined
Dec 6, 2014
Messages
117
It doesn't look like the kernel is seeing any XHCI anything. Did you mess with any USB-related ROM setup settings? What version of FreeNAS are you running? You might need to go change the "XHCI Mode" setting in the system's ROM Setup to "Enabled", it might be assuming because it's not Windows or Linux that it doesn't know about XHCI.
 

Dunuin

Contributor
Joined
Mar 7, 2013
Messages
110
Do you mean UEFI/BIOS with "ROM setup"? I'm using FreeNAS-11.3-U1.
 

demon

Contributor
Joined
Dec 6, 2014
Messages
117
Yeah, BIOS/UEFI setup. If you’re running the latest version, then the drivers shouldn’t be the problem, but I wanted to be sure you weren’t running something old like 9.10. 11.x definitely should work with XHCI controllers.
 

Dunuin

Contributor
Joined
Mar 7, 2013
Messages
110
You were right. The XHCI was set to "disabled" and I changed it to "Smart Auto" and now the Mainboard and USB-Hub are listed as "SUPER" speed but the USB-HDDs are still only listed as "HIGH" speed:

root@BM-Homeserver[~]# usbconfig ugen2.1: <Intel EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=S AVE (0mA) ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr =SAVE (0mA) ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=S AVE (0mA) ugen0.2: <Generic 4-Port USB 2.0 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps ) pwr=SAVE (0mA) ugen1.2: <vendor 0x8087 product 0x8008> at usbus1, cfg=0 md=HOST spd=HIGH (480Mb ps) pwr=SAVE (0mA) ugen2.2: <vendor 0x8087 product 0x8000> at usbus2, cfg=0 md=HOST spd=HIGH (480Mb ps) pwr=SAVE (0mA) ugen0.3: <Western Digital Elements 25A3> at usbus0, cfg=0 md=HOST spd=HIGH (480M bps) pwr=ON (30mA) ugen0.4: <Western Digital Elements 25A3> at usbus0, cfg=0 md=HOST spd=HIGH (480M bps) pwr=ON (30mA) ugen0.5: <Western Digital Elements 25A3> at usbus0, cfg=0 md=HOST spd=HIGH (480M bps) pwr=ON (30mA) ugen0.6: <Western Digital Elements 25A3> at usbus0, cfg=0 md=HOST spd=HIGH (480M bps) pwr=ON (30mA) ugen0.7: <vendor 0x0557 product 0x7000> at usbus0, cfg=0 md=HOST spd=HIGH (480Mb ps) pwr=SAVE (100mA) ugen0.8: <vendor 0x0557 product 0x2419> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbp s) pwr=ON (160mA) ugen0.9: <Generic 4-Port USB 3.0 Hub> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbp s) pwr=SAVE (0mA)

Is there a way to change some configs so the HDDs work with USB3 speed to?

Edit:
Ok, it is now listed as super speed as long as I don't boot with the hub and HDDs already connected.

root@BM-Homeserver[~]# usbconfig ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.7: <vendor 0x0557 product 0x7000> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) ugen0.8: <vendor 0x0557 product 0x2419> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (160mA) ugen0.2: <Generic 4-Port USB 2.0 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.3: <Generic 4-Port USB 3.0 Hub> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.4: <Western Digital Elements 25A3> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA) ugen0.5: <Western Digital Elements 25A3> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA) ugen0.6: <Western Digital Elements 25A3> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA) ugen0.9: <Western Digital Elements 25A3> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA)
 
Last edited:

demon

Contributor
Joined
Dec 6, 2014
Messages
117
Hm, got me. If the intervening hub is USB3-capable, it should definitely work. Can you temporarily plug it directly into the USB3 port on the machine and see if that works?
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
Why did no one ask the obvious question:
Is your USB controller supported by BSD 11?
 

demon

Contributor
Joined
Dec 6, 2014
Messages
117
@ornias: If you read the thread, you'd see that it is supported. After enabling XHCI mode in the ROM setup, it's showing up and seeing an XHCI root hub.
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
@ornias: If you read the thread, you'd see that it is supported. After enabling XHCI mode in the ROM setup, it's showing up and seeing an XHCI root hub.
Maybe I am missing something but I've seen no listed controller type, thats why I was asking.
So I don't think it's warranted to add a passive agressive assumption that I didn't read the thread....

Supported and Detected are significant different things.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I think I once saw some reference to this where if EHCI is loaded it takes the devices first, so you need to disable it... not sure that really gets you what you want as USB2 may then not work right.
 

demon

Contributor
Joined
Dec 6, 2014
Messages
117
Maybe I am missing something but I've seen no listed controller type, thats why I was asking.
So I don't think it's warranted to add a passive agressive assumption that I didn't read the thread....

Supported and Detected are significant different things.

It would not detect an XHCI root hub if it wasn't using it in USB3 mode.
 
Top