You are not logged in.

#1 2016-02-23 16:29:08

boscowitch
Member
Registered: 2010-04-10
Posts: 12

USB3 issues with ASRock N3700-ITX SoC

Hi,

I have build me a new small home server with the
low power cpu ASRock N3700-ITX SoC So.BGA Dual Channel DDR3 Mini-ITX board

so far it has great performance and AES-NI works like a charm
except USB3 is unstable

I used it with the Sharkoon 5 HDD raid case with a soft raid with mdadm  I knew that it was pretty unstable with USB3 but on my old lenovo x1 laptop it was reliable after some firmware updates on the box and on my laptops USB3 controller.

I was able to connet it over the extra 2 sata connector with port multiplier ability.

But now I had even problems connecting a single HDD with a different adapter and no mdadm:
CSL - USB 3.0 to SATA Adapter (http://www.amazon.de/CSL-Konverter-Lauf … op?ie=UTF8)


here some dmesg:

[74100.705883] sd 5:0:0:0: [sdg] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT 
[74100.705899] sd 5:0:0:0: [sdg] tag#1 CDB: opcode=0x2a 2a 00 a2 70 f8 00 00 04 00 00
[74100.705956] sd 5:0:0:0: [sdg] tag#21 uas_eh_abort_handler 0 uas-tag 22 inflight: CMD OUT 
[74100.705964] sd 5:0:0:0: [sdg] tag#21 CDB: opcode=0x2a 2a 00 a2 70 f4 00 00 04 00 00
[74100.706093] sd 5:0:0:0: [sdg] tag#2 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT 
[74100.706109] sd 5:0:0:0: [sdg] tag#2 CDB: opcode=0x2a 2a 00 a2 70 f0 00 00 04 00 00
[74100.706277] sd 5:0:0:0: [sdg] tag#9 uas_eh_abort_handler 0 uas-tag 10 inflight: CMD 
[74100.706289] sd 5:0:0:0: [sdg] tag#9 CDB: opcode=0x2a 2a 00 a2 70 ec 00 00 04 00 00
[74100.706327] scsi host5: uas_eh_bus_reset_handler start
[74100.779593] usb 2-1.3: reset SuperSpeed USB device number 4 using xhci_hcd
[74100.796599] scsi host5: uas_eh_bus_reset_handler success

since there were a lot of UAS errors and it lead to the rsync or cp to freeze for several seconds ever 10 or 20s (basically on ever new usas error in dmesg)
i disabled it for the device in modprobe.d with:

options usb-storage quirks=174c:1153:u

which kinda worked but I still get a lot of:

[12567.182994] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12567.442719] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12568.306516] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12568.562820] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12603.018528] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12603.281292] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12603.707933] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12603.858131] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12604.194737] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12606.071628] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12606.668272] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[12606.968553] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd

hundreds if not thousand when i ran
diff
over a backup of ca 1,4TB

and it reported once 10 then 2 wrong files, but when i rechecked them spereately again with diff
they were not different o.O ?

So I wonder if this is due to these many USB xhci_hcd resets, can this lead to wrong reads or is it just that crappy adapter that overheats ?

I also tried dissable USB legacy support in UEFI but it didnt change anything.

I also updated the UEFI bios to the lates version...


here is the full dmesg on plug in with uas dissabled:

[  111.474718] usb 2-1.3: new SuperSpeed USB device number 3 using xhci_hcd
[  111.509636] usb 2-1.3: UAS is blacklisted for this device, using usb-storage instead
[  111.509644] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[  111.513231] usb-storage 2-1.3:1.0: Quirks match for vid 174c pid 1153: 800000
[  111.513339] scsi host4: usb-storage 2-1.3:1.0
[  111.514644] usbcore: registered new interface driver usb-storage
[  111.519409] usbcore: registered new interface driver uas
[  112.515513] scsi 4:0:0:0: Direct-Access     ASMT     2115             0    PQ: 0 ANSI: 6
[  112.517487] sd 4:0:0:0: [sdg] Spinning up disk...
[  113.521533] .............ready
[  125.583735] sd 4:0:0:0: [sdg] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[  125.584212] sd 4:0:0:0: [sdg] Write Protect is off
[  125.584217] sd 4:0:0:0: [sdg] Mode Sense: 43 00 00 00
[  125.584545] sd 4:0:0:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  125.677250]  sdg: sdg1
[  125.685308] sd 4:0:0:0: [sdg] Attached SCSI disk
[  158.226051] EXT4-fs (sdg1): recovery complete
[  158.253611] EXT4-fs (sdg1): mounted filesystem with ordered data mode. Opts: (null)
[  195.480224] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[  197.423508] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[  198.603193] usb 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd

and here some infos of the controlers and devices:

$ lspci 
00:00.0 Host bridge: Intel Corporation Device 2280 (rev 21)
00:02.0 VGA compatible controller: Intel Corporation Device 22b1 (rev 21)
00:13.0 SATA controller: Intel Corporation Device 22a3 (rev 21)
00:14.0 USB controller: Intel Corporation Device 22b5 (rev 21)
00:1a.0 Encryption controller: Intel Corporation Device 2298 (rev 21)
00:1b.0 Audio device: Intel Corporation Device 2284 (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 22c8 (rev 21)
00:1c.1 PCI bridge: Intel Corporation Device 22ca (rev 21)
00:1c.2 PCI bridge: Intel Corporation Device 22cc (rev 21)
00:1c.3 PCI bridge: Intel Corporation Device 22ce (rev 21)
00:1f.0 ISA bridge: Intel Corporation Device 229c (rev 21)
00:1f.3 SMBus: Intel Corporation Device 2292 (rev 21)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 11)
04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)

$ lsusb
Bus 002 Device 003: ID 174c:1153 ASMedia Technology Inc. ASM2115 SATA 6Gb/s bridge    <- USB3 to SATA CSL adapter
Bus 002 Device 002: ID 174c:3074 ASMedia Technology Inc. ASM1074 SuperSpeed hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 046d:c318 Logitech, Inc. Illuminated Keyboard
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

some more details about the USB controller:

00:14.0 USB controller: Intel Corporation Device 22b5 (rev 21) (prog-if 30 [XHCI])
        Subsystem: ASRock Incorporation Device 22b5
        Flags: bus master, medium devsel, latency 0, IRQ 119
        Memory at 91400000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [70] Power Management version 2
        Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

And if someone is interrested here is a gibber dmesg dump with UAS activated some Minutes before it completly crashed with a stack trace after roguhly 1,2TB data written here too there was a long pattern of xhci_hcd superspeed resets with every block of uas errors so it seems connected:  http://pastebin.com/4hjjppXJ

UPDATE:
Run another diff -rq --speed-large-files and one without --speed-large-files  over eSATA and compared the 1,4TB, this time without any errors, so at leastit seems that even with the usb3 freezes and hickups it still wrote the data correcly, only reading it over usb3 causes slght errors over a long read period which is still disturbing and makes USB3 unrealiable for backups since at some point they need to be read back on crash...

UPDATE2:
Also no issues over the 2 USB2 only connections...

UPDATE3:
No Problem on USB3 on intel i5 and intel i7 laptop when running diff to veriefy the 1,4TB so the adapter and hdd should have no issues...

All testing done with Kernel version 4.4.1-2

Last edited by boscowitch (2016-02-28 10:52:40)

Offline

#2 2016-02-23 18:08:05

boscowitch
Member
Registered: 2010-04-10
Posts: 12

Re: USB3 issues with ASRock N3700-ITX SoC

I would also be happy with tipps for better usb3 external adapters / JBOD cases ect. that are reliable. that way i could do more testing if it is indeed the mainboard or missing linux support for it...

Offline

#3 2016-02-28 13:41:27

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: USB3 issues with ASRock N3700-ITX SoC

BTW - have you checked the same thing with usb 3.0 external adapter device? I had the same problem with my previous motherboard from Gigabyte - Z97 HD3P with ASMT usb 3.0 chip (the same was on my family MSI Motherboard - Z97 Gaming 3). I had problems with usb 3.0 on Gigabyte, and checked the same on mentioned MSI - no problems at all. On my Gigabyte i was loosing connection with my hdd disk connected via usb 3.0. I bought an external usb 3.0 hub controller and it solved problems with connecting and disconnecting disks with the same errors that you have.

What is funny, on my Z170 Gaming M3 i don't have this problems at all - don't need to use this external 3.0 usb hub controller.

Offline

#4 2016-02-28 18:56:00

boscowitch
Member
Registered: 2010-04-10
Posts: 12

Re: USB3 issues with ASRock N3700-ITX SoC

Hmm thats interresting...

Did ur external USB3 hub haven in independed external power adapter ? I think read somewhere about too less voltage problems with usb3.... cant remember where exactly but that would be an hint...

or It helps to bride the maybe not so good supported internal hub chip used ... ?! well anyway would be nice to know what kind of adapter u used...
I will definitly try ...

If it works with an externally powerd one maybe I could also try to slightly overvoltage the PCIe where the usb3 chip is connected too... well lets see...


UPDATE: I forgot.... what I wanna know is: did u use an active hub or passiv hub damn forgot that wording wink

Last edited by boscowitch (2016-02-29 15:27:04)

Offline

#5 2016-05-07 00:44:38

glemt9
Member
From: Slovenija
Registered: 2011-11-28
Posts: 10
Website

Re: USB3 issues with ASRock N3700-ITX SoC

Just wondering...any progress on this problem?

I came a cross this forum: http://forum.asrock.com/forum_posts.asp … inux-error

...tested on "front" USB3 ports and for now no problems.

Offline

#6 2016-05-07 08:05:30

boscowitch
Member
Registered: 2010-04-10
Posts: 12

Re: USB3 issues with ASRock N3700-ITX SoC

I found that one too unfortunately after some Manual reading it seems to me that my Mainboard with higher specs has more USB3 ports therefore the 2 inside extra adapters should also go over the asmedia chip ...

I bought a cable to test it (usb pin to 2 usb 3 ) but in the end i didnt test it cause my case is too small to even guide that cable out...

the upside of this upgraded version however are 2 extra non intel internal SATA plugs that support Port multipliert (which the default don't) so i guided those 2 internal ports outside through a gap and am using eSata adapters now for my external raid cases ... this works flawless

however working usb3 would be great so far i do all files copying over LAN with my laptop ...

I opened a bug report here: https://bugs.archlinux.org/task/48362 but maybe i should contact Asrock directly too  then they could tell me for shure if there is no way to go around the asmedia chip or flash it ort sth....

Offline

Board footer

Powered by FluxBB