Date: Sat, 21 Dec 2019 15:22:41 -0600 From: Denver Hull <denverh@comcast.net> To: Hans Petter Selasky <hps@selasky.org>, freebsd-usb@freebsd.org Subject: Re: Timeouts during initial Mode Sense commands Message-ID: <e869ec49-781b-be8f-5960-896d1dc56c72@comcast.net> In-Reply-To: <aef42f56-1c69-1325-30ae-ff1bb02ee830@selasky.org> References: <d842e49b-8f40-f5af-b8c3-3e23349be7ab@comcast.net> <be235eb1-d78f-0fb7-a3b9-23e82f9096a1@selasky.org> <98b6599e-5027-48c9-4230-47bc0f087180@comcast.net> <b8915704-fb28-662f-197c-923bd632f35e@selasky.org> <079c989a-5d45-df1f-ed48-15cdd8c8f194@comcast.net> <aef42f56-1c69-1325-30ae-ff1bb02ee830@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hans Petter Selasky wrote: > On 2019-12-21 00:46, Denver Hull wrote: >> How hard would it be to change things to use 0x1a instead of 0x5a >> temporarily? > > There is a tool called usbtest in /usr/src/tools/tools/usbtest which > can exercise the SCSI commands for mass storage devices. > > --HPS > Very nice, thanks. My tools require an actual SCSI device node so they aren't much help when there isn't one. The usbtest host mode tests seem to work ok with the device in question, but not the mass storage tests: >30 Attaching to: ugen2.12: <Adafruit Industries LLC CircuitPlayground Express> at usbus2 @ iface 2 Resetting device ... Testing SCSI commands ... ERROR: CBW reception: 4 ERROR: CBW reception: 4 ERROR: CBW reception: 4 Cannot read disk capacity (0 / 4) ERROR: CBW reception: 4 Cannot read disk capacity (1 / 4) ERROR: CBW reception: 4 Cannot read disk capacity (2 / 4) ERROR: CBW reception: 4 Cannot read disk capacity (3 / 4) [0.2.4] - Mass Storage Test Parameters: However, I did dust off one of my old tools and tried using it to send both 6 byte and 10 byte mode sense commands from Linux. The 6 byte commands always worked, but not the 10. They resulted in lots of "connection reset by peer" and "broken pipe" status messages, along with port reset commands. I saved wireshark/usbmon traces from both, and have attached them. I think they're small enough to get through this time. If the problem with these devices really is that they can't respond properly to 10 byte mode sense commands (and that's how it's beginning to look), then what? Thanks, Denver
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e869ec49-781b-be8f-5960-896d1dc56c72>