LesGirauds
Posts: 18
Joined: Tue Aug 13, 2013 2:52 pm

[SOLVED] Pi4 with USB3 SCSI drive problem

Thu Jul 18, 2019 11:49 am

My Toshiba USB3 SCSI drive worked ok, albeit slowly, on my previous Pi. With the Pi4, I was hoping to unleash full power of USB3. Not so, in fact it performs more slowly and grinds the Pi4 to a halt. It runs happily (slowly) connected to a USB2 port btw.

The sticky (https://www.raspberrypi.org/forums/view ... 8&t=245931) seemed like similar symptoms so I thought I'd try it. No improvement, though the quirks are recognised (UAS not blacklisted, perhaps understandably). So I think I'm barking up the wrong tree with that.

Is the drive simply incompatible?

Code: Select all

dmesg | grep usb-storage
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M  smsc95xx.macaddr=DC:A6:32:01:00:17 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  usb-storage.quirks=0480:a20b:u dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=54315418-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.808389] usbcore: registered new interface driver usb-storage
[   48.455130] usb-storage 2-2.3:1.0: USB Mass Storage device detected
[   48.455597] usb-storage 2-2.3:1.0: Quirks match for vid 0480 pid a20b: 800000
[   48.455736] scsi host0: usb-storage 2-2.3:1.0

Code: Select all

lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0480:a20b Toshiba America Inc 
Bus 002 Device 002: ID 05e3:0612 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

cat /boot/cmdline.txt
usb-storage.quirks=0480:a20b:u dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=54315418-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

Code: Select all

dmesg
[ 1115.547486] usb 2-1: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
[ 1115.580189] usb 2-1: New USB device found, idVendor=05e3, idProduct=0612, bcdDevice=92.24
[ 1115.580204] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1115.580217] usb 2-1: Product: USB3.0 Hub
[ 1115.580230] usb 2-1: Manufacturer: GenesysLogic
[ 1115.581899] hub 2-1:1.0: USB hub found
[ 1115.584207] hub 2-1:1.0: 4 ports detected
[ 1115.687196] usb 1-1.1: new high-speed USB device number 4 using xhci_hcd
[ 1115.831019] usb 1-1.1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=92.24
[ 1115.831034] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1115.831047] usb 1-1.1: Product: USB2.0 Hub
[ 1115.831058] usb 1-1.1: Manufacturer: GenesysLogic
[ 1115.832735] hub 1-1.1:1.0: USB hub found
[ 1115.834291] hub 1-1.1:1.0: 4 ports detected
[ 1115.917549] usb 2-1.3: new SuperSpeed Gen 1 USB device number 5 using xhci_hcd
[ 1115.948252] usb 2-1.3: New USB device found, idVendor=0480, idProduct=a20b, bcdDevice= 1.00
[ 1115.948266] usb 2-1.3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 1115.948278] usb 2-1.3: Product: External USB 3.0
[ 1115.948290] usb 2-1.3: Manufacturer: TOSHIBA
[ 1115.948301] usb 2-1.3: SerialNumber: 236366282BF1
[ 1115.950122] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[ 1115.950612] usb-storage 2-1.3:1.0: Quirks match for vid 0480 pid a20b: 800000
[ 1115.950730] scsi host0: usb-storage 2-1.3:1.0
[ 1117.027830] scsi 0:0:0:0: Direct-Access     TOSHIBA  External USB 3.0 0    PQ: 0 ANSI: 6
[ 1117.028722] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1117.028756] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 1117.029383] sd 0:0:0:0: [sda] Write Protect is off
[ 1117.029405] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 1117.030449] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1120.078402]  sda: sda1
[ 1120.081440] sd 0:0:0:0: [sda] Attached SCSI disk

SOLVED: I was using a powered hub, as I thought was recommended. When I plug the drive directly into the USB3 port, it is recognised and all works as it ought without the need for registering quirks.

I thought the powered hub was necessary because of the power draw on the Pi. It was only when I read by chance a comment that the Pi4's 3A supply was designed to provide power to an SSD that I thought to try mine like that. Maybe a powered hub was needed previously with the 2.5A supply?
Last edited by LesGirauds on Thu Aug 08, 2019 10:44 am, edited 1 time in total.

LesGirauds
Posts: 18
Joined: Tue Aug 13, 2013 2:52 pm

Re: Pi4 with USB3 SCSI drive problem

Fri Jul 19, 2019 11:47 am

I have another SCSI drive so, out of interest, I put that in a USB case and plugged it into the Pi4. Same thing; quite happy in USB2 but not so in USB3. Another drive I have, a pucker 160GB SSD drive, is instantly recognised and working well on the Pi USB3. So something to do with SCSI drives then?

If I'm totally misunderstanding something then please tell me. Both of these SCSI drives perform quite happily (and speedily) when plugged into my laptop's USB3 port so I'm obviously missing something to be naively anticpating that they function on the Pi USB3. :)

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23931
Joined: Sat Jul 30, 2011 7:41 pm

Re: Pi4 with USB3 SCSI drive problem

Fri Jul 19, 2019 12:45 pm

Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

LesGirauds
Posts: 18
Joined: Tue Aug 13, 2013 2:52 pm

Re: Pi4 with USB3 SCSI drive problem

Fri Jul 19, 2019 12:53 pm

Thanks, I'd seen that yesterday and made the recommended charges but they sadly didn't change anything. That's why I posted this new thread.

In short, the 'quirk' is recognised but UAS is not blacklisted... but that might be correct as it might be the only protocol a SCSI drive has to communicate... I really don't know. This is all a level of tech above my pay grade.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2123
Joined: Thu Jul 11, 2013 2:37 pm

Re: Pi4 with USB3 SCSI drive problem

Fri Jul 19, 2019 1:57 pm

The blacklist has no effect because it appears your adapter doesn't support UAS anyway.

Can you change the USB3.0 cable for another one or is it captive? We have seen poor performance with badly shielded cables causing the USB3.0 link to get continually reset.
Rockets are loud.
https://astro-pi.org

LesGirauds
Posts: 18
Joined: Tue Aug 13, 2013 2:52 pm

Re: Pi4 with USB3 SCSI drive problem

Fri Jul 19, 2019 3:46 pm

I can change the cable, yes, but I'm using the one supplied with the drive and it works with my laptop. It has a funky connector at the drive end (not seen one before) so getting a replacement might be an online purchase.

Return to “Troubleshooting”