Bug 220549 - External USB 3.0 drive does not work when attached to USB 2.0 port in laptop
Summary: External USB 3.0 drive does not work when attached to USB 2.0 port in laptop
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 11.0-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-07 22:19 UTC by Slawomir Wojciech Wojtczak
Modified: 2018-05-24 08:45 UTC (History)
4 users (show)

See Also:


Attachments
10.2TB.pcap.gz (1.76 KB, application/gzip)
2017-07-09 23:38 UTC, Slawomir Wojciech Wojtczak
no flags Details
10.16G.pcap.gz (11.23 KB, application/gzip)
2017-07-09 23:39 UTC, Slawomir Wojciech Wojtczak
no flags Details
11.2TB.pcap.gz (1.81 KB, application/gzip)
2017-07-09 23:39 UTC, Slawomir Wojciech Wojtczak
no flags Details
11.16G.pcap.gz (45.29 KB, application/gzip)
2017-07-09 23:40 UTC, Slawomir Wojciech Wojtczak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slawomir Wojciech Wojtczak 2017-07-07 22:19:30 UTC
When I attach working Western Digital Elements 2TB Drive with USB 3.0 interface to Lenovo Thinkpad T520 laptop with USB 2.0 port, it does not work.

The FreeBSD release is 11.1-RC1.

# uname -a
FreeBSD t520.local 11.1-RC1 FreeBSD 11.1-RC1 #0 r320486: Fri Jun 30 02:25:16 UTC 2017     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

Below are messages when I attach the drive.

# cat /var/log/messages
Jul  8 00:14:18 t520 kernel: ugen1.4: <Western Digital Elements 1048> at usbus1
Jul  8 00:14:18 t520 kernel: umass0 on uhub2
Jul  8 00:14:18 t520 kernel: umass0: <MSC Bulk-Only Transport> on usbus1
Jul  8 00:14:18 t520 kernel: umass0:  SCSI over Bulk-Only; quirks = 0xc101
Jul  8 00:14:18 t520 kernel: umass0:5:0: Attached to scbus5
Jul  8 00:14:25 t520 kernel: (da0:umass-sim0:0:0:0): got CAM status 0x44
Jul  8 00:14:25 t520 kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device
Jul  8 00:14:25 t520 kernel: g_access(918): provider da0 has error

# dmesg
ugen1.4: <Western Digital Elements 1048> at usbus1
umass0 on uhub2
umass0: <MSC Bulk-Only Transport> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0xc101
umass0:5:0: Attached to scbus5
(da0:umass-sim0:0:0:0): got CAM status 0x44
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device
g_access(918): provider da0 has error
g_access(918): provider da0 has error
g_access(918): provider da0 has error
g_access(918): provider da0 has error

Regards.
Comment 1 Slawomir Wojciech Wojtczak 2017-07-08 15:06:17 UTC
Same behavior with other computer with FreeBSD 11.1-RC1 on USB 3.0 port.

This drive worked flawlessly on FreeBSD 10.x. Problems started on 11.x.

This drive also works good on Windows laptop/system.

Regards.
Comment 2 Hans Petter Selasky freebsd_committer freebsd_triage 2017-07-08 15:13:17 UTC
Hi,

This is likely a SCSI / CAM protocol issue and not an USB issue.

Can you dump all the USB commands from 10.x and 11.1 ?

1) plug device and note ugenX.Y numbers
2) unplug device
3) start "usbdump -i usbusX -f Y -s 65536 -w freebsd10.pcap"
4) CTRL+C and safe .pcap file.

Repeat for FreeBSD 11.

--HPS
Comment 3 Hans Petter Selasky freebsd_committer freebsd_triage 2017-07-08 15:15:45 UTC
What does the dmesg look like in FreeBSD 10 ?

--HPS
Comment 4 Slawomir Wojciech Wojtczak 2017-07-09 23:38:58 UTC
Created attachment 184210 [details]
10.2TB.pcap.gz
Comment 5 Slawomir Wojciech Wojtczak 2017-07-09 23:39:22 UTC
Created attachment 184211 [details]
10.16G.pcap.gz
Comment 6 Slawomir Wojciech Wojtczak 2017-07-09 23:39:49 UTC
Created attachment 184212 [details]
11.2TB.pcap.gz
Comment 7 Slawomir Wojciech Wojtczak 2017-07-09 23:40:06 UTC
Created attachment 184213 [details]
11.16G.pcap.gz
Comment 8 Slawomir Wojciech Wojtczak 2017-07-09 23:42:50 UTC
The story seems to be little more complicated, but ....

10.16G.pcap.gz
Its 10.3-RELEASE with WORKING USB 3.0 (16G) drive on FreeBSD.
 
10.2TB.pcap.gz
Its 10.3-RELEASE with THIS NON WORKING USB 3.0 (2TB) drive on FreeBSD.

11.16G.pcap.gz
Its 11.1-RC1 with WORKING USB 3.0 (16G) drive on FreeBSD.

11.2TB.pcap.gz
Its 11.1-RC1 with THIS NON WORKING USB 3.0 (2TB) drive on FreeBSD.

Now about the 'story' ... I earlier had Lenovo Thinkpad W530 on which this 2TB drive worked flawlessly (on USB 3.0 port) and now I have Lenovo Thinkpad T520 on which this 2TB drive does not work (T520 does not have USB 3.0 ports).

Regards.
Comment 9 Slawomir Wojciech Wojtczak 2017-07-09 23:49:17 UTC
To be even more precise, I had 10.3-RELEASE on Thinkpad W530 and that 2TB drive worked good, I moved to Thinkpad T520 with 11.0-RELEASE (drive did not worked) and upgraded to 10.1-RC1 and that 2TB drive still does not work.
Comment 10 Slawomir Wojciech Wojtczak 2017-07-09 23:49:55 UTC
All the attached files are from the Thinkpad T520 on which this 2TB drive does not work.
Comment 11 Hans Petter Selasky freebsd_committer freebsd_triage 2017-07-10 19:52:29 UTC
Thank you! I'll try to have a look at these traces when time permits.
Comment 12 Slawomir Wojciech Wojtczak 2017-07-19 13:48:24 UTC
Any progress? :)
Comment 13 Hans Petter Selasky freebsd_committer freebsd_triage 2017-07-19 20:19:48 UTC
No, not yet.
Comment 14 Slawomir Wojciech Wojtczak 2018-05-24 08:45:28 UTC
Could not reproduce anymore.