From: Alan Stern <stern@rowland.harvard.edu>
To: "Till Dörges" <doerges@pre-sense.de>
Cc: linux-usb@vger.kernel.org
Subject: Re: Ext. HDDs not working under Linux via USB 3.0 but under Windows
Date: Sat, 23 May 2020 16:33:49 -0400 [thread overview]
Message-ID: <20200523203349.GA12853@rowland.harvard.edu> (raw)
In-Reply-To: <34933b01-e4b0-10da-c935-9e6a9a6ae427@pre-sense.de>
On Sat, May 23, 2020 at 10:05:48PM +0200, Till Dörges wrote:
> Hi Alan,
>
> thanks for the really quick response!
>
> Am 23.05.20 um 17:48 schrieb Alan Stern:
>
> >> I'm trying to get external HDDs from Sony to work under Linux with USB 3.0.
> [...]
> >> - PSZ-HA2T: idVendor=054c, idProduct=087d
> >> - PSZ-HA1T: idVendor=054c, idProduct=087d
> >> - PSZ-HA50: idVendor=054c, idProduct=087d
> >> - PSZ-HC1T: idVendor=054c, idProduct=0c4f
> [...]
> >> I've also tried several of the quirk settings
> >> (https://github.com/torvalds/linux/blob/ead751507de86d90fa250431e9990a8b881f713c/drivers/usb/storage/usb.c#L527).
> >
> > Unfortunately, the uas driver ignores those settings.
Whoops. I was wrong about this; uas does indeed use the quirk settings.
> [...]
> > Try adding an entry to the unusual_uas.h file for the device, specifying
> > the USB_FL_NO_REPORT_OPCODES flag.
>
> I'm not sure I understand correctly. Do I have to compile the uas Kernel module
> myself if I want to test a flag?
>
> Because with setting the f flag (via options usb-storage quirks=054c:087d:f) the
> PSZ-HA*1*T starts behaving nicely.
>
> --- snip ---
> $ cat /sys/module/usb_storage/parameters/quirks
> 054c:087d:f,054c:0c4f:f
> --- snip ---
>
>
> The PSZ-HA*2*T, however, still doesn't work with that.
>
> dmesg shows:
> --- snip ---
> [613960.192066] scsi host5: uas
> [613960.192179] usbcore: registered new interface driver uas
> [613960.195028] usb 6-2: cmd cmplt err -71
> [613980.764509] scsi 5:0:0:0: tag#12 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
> [613980.764513] scsi 5:0:0:0: tag#12 CDB: Inquiry 12 00 00 00 24 00
> [613980.780506] scsi host5: uas_eh_device_reset_handler start
> [613980.910565] usb 6-2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
> [613980.940879] scsi host5: uas_eh_device_reset_handler success
> [613984.957905] scsi 5:0:0:0: Direct-Access Sony PSZ-H 320: PQ: 0
> ANSI: 6
> [613990.960817] sd 5:0:0:0: Attached scsi generic sg3 type 0
> [613990.961028] sd 5:0:0:0: [sdb] Spinning up disk...
> [613991.984560] .ready
> [613999.987984] sd 5:0:0:0: [sdb] 281474976710656 512-byte logical blocks: (144
> PB/128 PiB)
> [613999.987988] sd 5:0:0:0: [sdb] 4096-byte physical blocks
> [614001.988698] sd 5:0:0:0: [sdb] Write Protect is off
> [614001.988702] sd 5:0:0:0: [sdb] Mode Sense: 67 00 10 08
> [614005.989956] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports
> DPO and FUA
> [614007.990627] sd 5:0:0:0: [sdb] Optimal transfer size 524287 logical blocks > sd
> driver limit (65535 logical blocks)
> [614008.004886] sd 5:0:0:0: [sdb] Spinning up disk...
> [614009.040540] .ready
> [614056.540501] sd 5:0:0:0: [sdb] tag#13 uas_eh_abort_handler 0 uas-tag 1 inflight:
> CMD IN
> [614056.540507] sd 5:0:0:0: [sdb] tag#13 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00
> 00 00 00 08 00 00
> [614056.556501] scsi host5: uas_eh_device_reset_handler start
> [614056.686376] usb 6-2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
> [614056.716509] scsi host5: uas_eh_device_reset_handler success
> [614066.768485] sd 5:0:0:0: [sdb] tag#13 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD
> [614066.768490] sd 5:0:0:0: [sdb] tag#13 CDB: Test Unit Ready 00 00 00 00 00 00
> [614066.768493] scsi host5: uas_eh_device_reset_handler start
> [614072.144648] xhci_hcd 0000:06:00.0: Timeout while waiting for setup device command
> [614072.353271] usb 6-2: Device not responding to setup address.
> [614072.354062] debugfs: Directory '01' with parent 'devices' already present!
...
> --- snap ---
>
>
> Do you have any idea what to try there?
That device seems to be behaving so badly, it's hard to tell what the
underlying problem is.
I'd start by blacklisting the device for UAS, so forcing it to use
usb-storage, which is a somewhat simpler protocol. Next, you should
collect a usbmon trace showing what happens when you plug in the
PSZ-HA2T. That will tell us what's going on, even if it doesn't suggest
a way to work around the problems.
(The instructions for usbmon are in the kernel source file
Documentation/usb/usbmon.rst.)
Alan Stern
next prev parent reply other threads:[~2020-05-23 20:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-23 14:57 Ext. HDDs not working under Linux via USB 3.0 but under Windows Till Dörges
2020-05-23 15:48 ` Alan Stern
2020-05-23 20:05 ` Till Dörges
2020-05-23 20:33 ` Alan Stern [this message]
2020-05-24 7:46 ` Till Dörges
2020-05-24 14:34 ` Alan Stern
2020-06-17 16:02 ` Till Dörges
2020-06-17 16:37 ` Alan Stern
2020-06-18 6:07 ` Till Dörges
2020-06-18 7:30 ` Till Dörges
2020-06-19 12:07 ` Till Dörges
2020-06-19 15:05 ` Alan Stern
2020-06-19 18:01 ` Till Dörges
2020-08-25 18:45 ` Alan Stern
2020-08-26 11:51 ` Till Dörges
2020-08-26 14:28 ` Alan Stern
2020-08-26 14:32 ` [PATCH] usb: storage: Add unusual_uas entry for Sony PSZ drives Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200523203349.GA12853@rowland.harvard.edu \
--to=stern@rowland.harvard.edu \
--cc=doerges@pre-sense.de \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox