[OmniOS-discuss] OmniOS Bloody USB3 Feedback

Volker A. Brandt vab at bb-c.de
Fri Mar 17 23:56:23 UTC 2017


Hello all!


Today I did some USB3 testing.  Here is the feedback.
I used this card, based on the NEC/Renesas uPD720202:

  https://www.amazon.de/Exsys-PCI-Express-Erweiterungskarte-Super-Speed-Spezifikationen/dp/B01440VZF0/

The card has a 4pin "molex" power input which I did not hook up.

This was just a quick functional test in the only available PCIe slot in
a Sun Fire X2270, using the latest bloody.  Here are some more details:


1. Add card to system, power up, boot

Card is recognized:

  Mar 17 18:32:36 omnit0 pcplusmp: [ID 805372 kern.info] pcplusmp: pciclass,0c0330 (xhci) instance 0 irq 0x33 vector 0x83 ioapic 0xff intin 0xff is bound to cpu 7

/etc/path_to_inst has:

  "/pci at 0,0/pci8086,340e at 7/pci1912,15 at 0" 0 "xhci"


2. Plug in external Toshiba USB3 2.5" HD (my only USB3 device :-):

  Mar 17 18:43:19 omnit0 usba: [ID 912658 kern.notice] USB 3.0 device (usb480,a006) operating at super speed (USB 3.x) on USB 3.0 root hub: storage at 2, scsa2usb0 at bus address 2
  Mar 17 18:43:19 omnit0 usba: [ID 349649 kern.notice] TOSHIBA External USB 3.0 20130702020443
  Mar 17 18:43:19 omnit0 genunix: [ID 936769 kern.notice] scsa2usb0 is /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 2
  Mar 17 18:43:19 omnit0 genunix: [ID 408114 kern.notice] /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 2 (scsa2usb0) online
  Mar 17 18:43:22 omnit0 scsi: [ID 583861 kern.notice] sd1 at scsa2usb0: target 0 lun 0
  Mar 17 18:43:22 omnit0 genunix: [ID 936769 kern.notice] sd1 is /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 2/disk at 0,0
  Mar 17 18:43:22 omnit0 genunix: [ID 408114 kern.notice]
  /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 2/disk at 0,0 (sd1) online

Device nodes are looking good, "cfgadm -la" shows connected storage:

Ap_Id                          Type         Receptacle   Occupant     Condition
...
usb9/1                         unknown      empty        unconfigured ok
usb9/2                         usb-storage  connected    configured   ok
usb9/3                         unknown      empty        unconfigured ok
usb9/4                         unknown      empty        unconfigured ok

The 1-4 confuses me a bit, the card has two ports.  Maybe it's because
a USB3 port really also contains a USB2 port...


3. Import the pool on the Toshiba HD, start a scrub, do "zpool iostat 1":
  
  # zpool list -v Transfer
  NAME         SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
  Transfer     928G   135G   793G         -      -    14%  1.00x  ONLINE  -
    c3t0d0     928G   135G   793G         -      -    14%

  ...
                 capacity     operations    bandwidth
  pool        alloc   free   read  write   read  write
  ----------  -----  -----  -----  -----  -----  -----
  Transfer     135G   793G    502      0  62.4M      0
  Transfer     135G   793G    538      0  66.8M      0
  Transfer     135G   793G    387     30  46.5M   110K
  Transfer     135G   793G    503      0  62.5M      0
  ...

So it's not really fast, but much better than USB2. :-)


4. While the scrub is running, insert a USB2 stick into the other port:

  Mar 17 18:49:21 omnit0 usba: [ID 912658 kern.notice] USB 2.0 device (usb90c,1000) operating at hi speed (USB 2.x) on USB 3.0 root hub: storage at 3, scsa2usb1 at bus address 3
  Mar 17 18:49:21 omnit0 usba: [ID 349649 kern.notice] General USB Flash Disk FBK1602242500409
  Mar 17 18:49:21 omnit0 genunix: [ID 936769 kern.notice] scsa2usb1 is /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3
  Mar 17 18:49:21 omnit0 genunix: [ID 408114 kern.notice] /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3 (scsa2usb1) online
  Mar 17 18:49:22 omnit0 scsi: [ID 583861 kern.notice] sd2 at scsa2usb1: target 0 lun 0
  Mar 17 18:49:22 omnit0 genunix: [ID 936769 kern.notice] sd2 is /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3/disk at 0,0
  Mar 17 18:49:22 omnit0 genunix: [ID 408114 kern.notice] /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3/disk at 0,0 (sd2) online
  Mar 17 18:49:22 omnit0 genunix: [ID 127566 kern.info] device pciclass,030000 at 5(display#0) keeps up device sd at 0,0(disk#2), but the former is not power managed

cfgadm -al says:

  Ap_Id                          Type         Receptacle   Occupant     Condition
  ...
  usb9/1                         unknown      empty        unconfigured ok
  usb9/2                         usb-storage  connected    configured   ok
  usb9/3                         usb-storage  connected    configured   ok
  usb9/4                         unknown      empty        unconfigured ok


5. Pull the stick, insert a different one.

  Mar 17 18:52:57 omnit0 scsi: [ID 107833 kern.warning] WARNING: /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3/disk at 0,0 (sd2):
  Mar 17 18:52:57 omnit0  Command failed to complete...Device is gone
  Mar 17 18:53:01 omnit0 genunix: [ID 408114 kern.notice] /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3/disk at 0,0 (sd2) removed
  Mar 17 18:53:01 omnit0 last message repeated 1 time
  Mar 17 18:53:01 omnit0 genunix: [ID 408114 kern.notice] /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3 (scsa2usb1) removed
  Mar 17 18:53:07 omnit0 usba: [ID 912658 kern.notice] USB 2.0 device (usb13fe,1e23) operating at hi speed (USB 2.x) on USB 3.0 root hub: storage at 3, scsa2usb1 at bus address 3
  Mar 17 18:53:07 omnit0 usba: [ID 349649 kern.notice] Verbatim STORE N GO 0700078415BE00D2
  Mar 17 18:53:07 omnit0 genunix: [ID 936769 kern.notice] scsa2usb1 is /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3
  Mar 17 18:53:07 omnit0 genunix: [ID 408114 kern.notice] /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3 (scsa2usb1) online
  Mar 17 18:53:10 omnit0 scsi: [ID 583861 kern.notice] sd2 at scsa2usb1: target 0 lun 0
  Mar 17 18:53:10 omnit0 genunix: [ID 936769 kern.notice] sd2 is /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3/disk at 0,0
  Mar 17 18:53:10 omnit0 genunix: [ID 408114 kern.notice] /pci at 0,0/pci8086,340e at 7/pci1912,15 at 0/storage at 3/disk at 0,0 (sd2) online
  Mar 17 18:53:10 omnit0 genunix: [ID 127566 kern.info] device pciclass,030000 at 5(display#0) keeps up device sd at 0,0(disk#2), but the former is not power managed

Everything worked, all this time the zpool scrub did not skip a beat.


6. Try to unconfigure the stick before removing it to avoid the ugly
   "Command failed to complete...Device is gone" message.

  # cfgadm -c unconfigure usb9/3 
  Unconfigure the device: /devices/pci at 0,0/pci8086,340e at 7/pci1912,15 at 0:3
  This operation will suspend activity on the USB device
  Continue (yes/no)? y
  cfgadm: Hardware specific failure: Cannot issue devctl to ap_id: /devices/pci at 0,0/pci8086,340e at 7/pci1912,15 at 0:3
  Exit 1

And sure enough, it's still "configured":

  ...
  usb9/1                         unknown      empty        unconfigured ok
  usb9/2                         usb-storage  connected    configured   ok
  usb9/3                         usb-storage  connected    configured   ok
  usb9/4                         unknown      empty        unconfigured ok


Executive summary:  Works as expected, except the cfgadm -c unconfigure.

Thanks to Robert and Dan for giving us USB3 support in OmniOS!


Regards -- Volker
-- 
------------------------------------------------------------------------
Volker A. Brandt               Consulting and Support for Oracle Solaris
Brandt & Brandt Computer GmbH                   WWW: http://www.bb-c.de/
Am Wiesenpfad 6, 53340 Meckenheim, GERMANY            Email: vab at bb-c.de
Handelsregister: Amtsgericht Bonn, HRB 10513              Schuhgröße: 46
Geschäftsführer: Rainer J.H. Brandt und Volker A. Brandt

"When logic and proportion have fallen sloppy dead"


More information about the OmniOS-discuss mailing list