Linux USB
 help / color / mirror / Atom feed
From: "Till Dörges" <doerges@pre-sense.de>
To: Alan Stern <stern@rowland.harvard.edu>
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 22:05:48 +0200	[thread overview]
Message-ID: <34933b01-e4b0-10da-c935-9e6a9a6ae427@pre-sense.de> (raw)
In-Reply-To: <20200523154817.GA7091@rowland.harvard.edu>

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.
[...]
> 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!
[614072.560471] usb 6-2: device not accepting address 3, error -71
[614078.032657] xhci_hcd 0000:06:00.0: Timeout while waiting for setup device command
[614078.240963] usb 6-2: Device not responding to setup address.
[614078.241423] debugfs: Directory '01' with parent 'devices' already present!
[614078.448469] usb 6-2: device not accepting address 3, error -71
[614083.920631] xhci_hcd 0000:06:00.0: Timeout while waiting for setup device command
[614084.128937] usb 6-2: Device not responding to setup address.
[614084.129413] debugfs: Directory '01' with parent 'devices' already present!
[614084.336459] usb 6-2: device not accepting address 3, error -71
[614089.808656] xhci_hcd 0000:06:00.0: Timeout while waiting for setup device command
[614090.017000] usb 6-2: Device not responding to setup address.
[614090.017527] debugfs: Directory '01' with parent 'devices' already present!
[614090.224459] usb 6-2: device not accepting address 3, error -71
[614090.280517] scsi host5: uas_eh_device_reset_handler FAILED err -19
[614090.280522] sd 5:0:0:0: Device offlined - not ready after error recovery
[614090.280529] sd 5:0:0:0: [sdb] tag#13 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_TIMEOUT
[614090.280531] 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
[614090.280533] print_req_error: 1 callbacks suppressed
[614090.280534] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280537] buffer_io_error: 1 callbacks suppressed
[614090.280538] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280567] usb 6-2: USB disconnect, device number 3
[614090.280571] sd 5:0:0:0: rejecting I/O to offline device
[614090.280574] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280576] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280597] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280598] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280601] ldm_validate_partition_table(): Disk read failed.
[614090.280607] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280608] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280615] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280616] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280624] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280625] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280632] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280633] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280640] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280642] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280655] blk_update_request: I/O error, dev sdb, sector 24 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280657] Buffer I/O error on dev sdb, logical block 3, async page read
[614090.280664] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 0
[614090.280665] Buffer I/O error on dev sdb, logical block 0, async page read
[614090.280674]  sdb: unable to read partition table
[614090.604487] sd 5:0:0:0: [sdb] Read Capacity(16) failed: Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK
[614090.604491] sd 5:0:0:0: [sdb] Sense not available.
[614090.844483] sd 5:0:0:0: [sdb] Read Capacity(10) failed: Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK
[614090.844487] sd 5:0:0:0: [sdb] Sense not available.
[614090.940485] sd 5:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[614090.940488] sd 5:0:0:0: [sdb] 4096-byte physical blocks
[614091.020504] sd 5:0:0:0: [sdb] Write Protect is on
[614091.020507] sd 5:0:0:0: [sdb] Mode Sense: 27 40 bb f7
[614091.228484] sd 5:0:0:0: [sdb] Attached SCSI disk
[614091.285557] debugfs: Directory '01' with parent 'devices' already present!
[614096.720608] xhci_hcd 0000:06:00.0: Timeout while waiting for setup device command
[614096.928929] usb 6-2: Device not responding to setup address.
[614096.929337] debugfs: Directory '01' with parent 'devices' already present!
[614097.136449] usb 6-2: device not accepting address 4, error -71
--- snap ---


Do you have any idea what to try there?


Thanks and regards -- Till
-- 
Dipl.-Inform. Till Dörges                  doerges@pre-sense.de
PRESENSE Technologies GmbH             Nagelsweg 41, D-20097 HH
Geschäftsführer/Managing Directors       AG Hamburg, HRB 107844
Till Dörges, Jürgen Sander               USt-IdNr.: DE263765024

  reply	other threads:[~2020-05-23 20:06 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 [this message]
2020-05-23 20:33     ` Alan Stern
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=34933b01-e4b0-10da-c935-9e6a9a6ae427@pre-sense.de \
    --to=doerges@pre-sense.de \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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