Bug 169461 - [ugen] USB2 high-speed device detected as full speed
Summary: [ugen] USB2 high-speed device detected as full speed
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-26 20:30 UTC by Fridtjof Busse
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:


Attachments
pciconf.txt (4.79 KB, text/plain)
2012-06-27 17:36 UTC, fridtjof
no flags Details
file.dat (2 bytes, text/plain; charset=us-ascii)
2012-06-27 17:36 UTC, fridtjof
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fridtjof Busse 2012-06-26 20:30:11 UTC
Running FreeBSD 9.0 on an HP Microserver N40L, my external backup discs are only detected as full speed instead of high speed:
$ sudo usbconfig 
ugen0.1: <OHCI root HUB ATI> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen1.1: <EHCI root HUB ATI> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen2.1: <OHCI root HUB ATI> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen3.1: <EHCI root HUB ATI> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen4.1: <OHCI root HUB ATI> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen5.1: <EHCI root HUB ATI> at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen0.2: <USB 1.1 2port downstream low power hub Lite-On Technology> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen0.3: <USB Productivity Option Keyboard has the hub in  1 Lite-On Technology> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen0.4: <ASMedia ASMedia> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

ugen0.4: <ASMedia> at usbus0
umass0: <ASMedia ASMedia, class 0/0, rev 2.10/1.00, addr 4> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:6:0:-1: Attached to scbus6
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 0 0 0 0 0 0 0 0 10 0 0 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code)
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0: <ST320005 42AS CC38> Fixed Direct Access SCSI-5 device 
da0: 1.000MB/s transfers
da0: 1907729MB (3907029168 512 byte sectors: 255H 63S/T 243201C)

Writing to the disc is only possible at <1 MB/s. The same happens with a different USB disc (tried both a USB2 and a USB3 disc with different enclosures).
The only way I could get more USB speed so far was with a USB3 PCIe card, but unfortunatly I get a kernel panic after some time during rsync transfer (I'll file a different SR for this, seems to not only happen to me [1]).
Worked fine in a linux live-CD, so it is not a hardware-problem.
If you need any additional logs, please let me know.



[1] http://forums.freebsd.org/showthread.php?t=31086
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-06-26 21:37:18 UTC
Responsible Changed
From-To: freebsd-amd64->freebsd-usb

reclassify.
Comment 2 Hans Petter Selasky 2012-06-27 15:51:48 UTC
On Tuesday 26 June 2012 22:37:48 linimon@freebsd.org wrote:
> Old Synopsis: USB2 high-speed device detected as full speed
> New Synopsis: [ugen] USB2 high-speed device detected as full speed
> 
> Responsible-Changed-From-To: freebsd-amd64->freebsd-usb
> Responsible-Changed-By: linimon
> Responsible-Changed-When: Tue Jun 26 20:37:18 UTC 2012
> Responsible-Changed-Why:
> reclassify.
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=169461
> _______________________________________________
> freebsd-usb@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"

Hi,

Please check with pciconf -lv that all EHCI PCI devices have a driver 
attached.

Also check that:

sysctl hw.usb.ehci.no_hs

Is not set.

Have you tried all ports?

--HPS
Comment 3 fridtjof 2012-06-27 17:36:39 UTC
pciconf output attached.
Comment 4 Hans Petter Selasky 2012-06-27 17:42:47 UTC
On Wednesday 27 June 2012 18:35:11 Fridtjof Busse wrote:
> Hi,
> 
> thanks for your reply, please find the pciconf attached.
> 
> Am 27.06.2012 um 08:55 schrieb Hans Petter Selasky:
> > Hi,

> > pciconf -lv
> > 
> > --HPS

Hi,

Your EHCI hardware is quirked and has known issues:

sys/dev/usb/controller/ehci_pci.c

        switch (pci_get_vendor(self)) {
        case PCI_EHCI_VENDORID_ATI:
                /* SB600 and SB700 EHCI quirk */
                switch (pci_get_device(self)) {
                case 0x4386:
                        ehci_pci_ati_quirk(self, 0);
                        break;
                case 0x4396:
                        ehci_pci_ati_quirk(self, 1);
                        break;
                default:
                        break;
                }
                break;

Do you see a QUIRK printout in dmesg?

Maybe you can also need to try setting quirks in /boot/loader.conf:

hw.usb.ehci.lostintrbug: 0
hw.usb.ehci.iaadbug: 0

--HPS
Comment 5 fridtjof 2012-06-27 18:10:23 UTC
> Do you see a QUIRK printout in dmesg?

Only this line:
umass0:  SCSI over Bulk-Only; quirks =3D 0x0100

> Maybe you can also need to try setting quirks in /boot/loader.conf:
>=20
> hw.usb.ehci.lostintrbug: 0
> hw.usb.ehci.iaadbug: 0
>=20

I set the configuration in /boot/loader.conf, but no change after =
reboot. Still less than 1MB/s write speed.
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:35 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped