Linux USB
 help / color / mirror / Atom feed
* SanDisk  Extreme Pro 55AF and UAS
@ 2023-09-19 13:34 Massimo Burcheri
  2023-09-19 13:47 ` Oliver Neukum
  0 siblings, 1 reply; 4+ messages in thread
From: Massimo Burcheri @ 2023-09-19 13:34 UTC (permalink / raw)
  To: linux-usb

Hello,

I have a SanDisk USB3.2 Gen2x2 NVMe enclosure.

Bus 004 Device 004: ID 0781:55af SanDisk Corp. Extreme Pro 55AF

That was working with UAS fine on all machines.

Now on one machine it started failing with UAS. The same drive and same cable on
a different machine with almost same setup and kernel is still working fine with
uas.

Here is the failing machine:

Sep 19 07:00:15 [kernel] usb-storage 2-1.6:1.0: USB Mass Storage device detected
Sep 19 07:00:15 [kernel] scsi host0: usb-storage 2-1.6:1.0
Sep 19 07:00:15 [kernel] usbcore: registered new interface driver usb-storage
Sep 19 07:00:15 [kernel] scsi host7: uas
Sep 19 07:00:15 [kernel] usbcore: registered new interface driver uas
Sep 19 07:00:15 [kernel] scsi 7:0:0:0: Direct-Access     SanDisk  Extreme Pro 55AF 1087 PQ: 0 ANSI: 6
Sep 19 07:00:15 [kernel] sd 7:0:0:0: [sdc] 7813971617 512-byte logical blocks: (4.00 TB/3.64 TiB)
Sep 19 07:00:15 [kernel] sd 7:0:0:0: [sdc] Write Protect is off
Sep 19 07:00:15 [kernel] scsi 7:0:0:1: Enclosure         SanDisk  SES Device       1087 PQ: 0 ANSI: 6
Sep 19 07:00:15 [kernel] sd 7:0:0:0: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
Sep 19 07:00:15 [kernel] sd 7:0:0:0: [sdc] Preferred minimum I/O size 512 bytes
Sep 19 07:00:15 [kernel] sd 7:0:0:0: [sdc] Optimal transfer size 2097152 bytes
Sep 19 07:00:16 [kernel] scsi 0:0:0:0: Direct-Access     Generic- Compact Flash    1.00 PQ: 0 ANSI: 0 CCS
Sep 19 07:00:16 [kernel] sd 0:0:0:0: [sdd] Media removed, stopped polling
Sep 19 07:00:16 [kernel] sd 0:0:0:0: [sdd] Attached SCSI removable disk
Sep 19 07:00:16 [kernel] scsi 0:0:0:1: Direct-Access     Generic- SM/xD-Picture    1.00 PQ: 0 ANSI: 0 CCS
Sep 19 07:00:16 [kernel] sd 0:0:0:1: [sde] Media removed, stopped polling
Sep 19 07:00:16 [kernel] sd 0:0:0:1: [sde] Attached SCSI removable disk
Sep 19 07:00:16 [kernel] scsi 0:0:0:2: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
Sep 19 07:00:16 [kernel] scsi 0:0:0:3: Direct-Access     Generic- MS/MS-Pro/HG     1.00 PQ: 0 ANSI: 0 CCS
Sep 19 07:00:16 [kernel] sd 0:0:0:2: [sdf] Media removed, stopped polling
Sep 19 07:00:16 [kernel] sd 0:0:0:2: [sdf] Attached SCSI removable disk
Sep 19 07:00:16 [kernel] sd 0:0:0:3: [sdg] Media removed, stopped polling
Sep 19 07:00:16 [kernel] sd 0:0:0:3: [sdg] Attached SCSI removable disk
Sep 19 07:00:16 [kernel] scsi 0:0:0:4: Direct-Access     Generic- SD/MMC/MS/MSPRO  1.00 PQ: 0 ANSI: 0 CCS
Sep 19 07:00:16 [kernel] sd 0:0:0:4: [sdh] Media removed, stopped polling
Sep 19 07:00:16 [kernel] sd 0:0:0:4: [sdh] Attached SCSI removable disk
Sep 19 07:00:29 [kernel] usb 4-4: USB disconnect, device number 3
Sep 19 07:00:29 [kernel] sd 7:0:0:0: [sdc] tag#24 uas_zap_pending 0 uas-tag 1 inflight: CMD 
Sep 19 07:00:29 [kernel] sd 7:0:0:0: [sdc] tag#24 CDB: Test Unit Ready 00 00 00 00 00 00
Sep 19 07:00:29 [kernel] scsi 7:0:0:1: tag#26 uas_zap_pending 0 uas-tag 2 inflight: CMD 
Sep 19 07:00:29 [kernel] scsi 7:0:0:1: tag#26 CDB: Inquiry 12 01 00 00 0d 00
Sep 19 07:00:29 [kernel] sd 7:0:0:0: [sdc] Read Capacity(16) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Sep 19 07:00:29 [kernel] sd 7:0:0:0: [sdc] Sense not available.
Sep 19 07:00:29 [kernel] sd 7:0:0:0: [sdc] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Sep 19 07:00:29 [kernel] sd 7:0:0:0: [sdc] Sense not available.
Sep 19 07:00:29 [kernel] sd 7:0:0:0: [sdc] 0 512-byte logical blocks: (0 B/0 B)
Sep 19 07:00:29 [kernel] sdc: detected capacity change from 7813971617 to 0
Sep 19 07:00:29 [kernel] sd 7:0:0:0: [sdc] Attached SCSI disk
Sep 19 07:00:33 [kernel] usb 4-4: new SuperSpeed USB device number 4 using xhci_hcd
Sep 19 07:00:33 [kernel] usb 4-4: New USB device found, idVendor=0781, idProduct=55af, bcdDevice=10.87
Sep 19 07:00:33 [kernel] usb 4-4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Sep 19 07:00:33 [kernel] usb 4-4: Product: Extreme Pro 55AF
Sep 19 07:00:33 [kernel] usb 4-4: Manufacturer: SanDisk
Sep 19 07:00:33 [kernel] usb 4-4: SerialNumber: 323134385331643031333831
Sep 19 07:00:33 [kernel] scsi host7: uas
Sep 19 07:00:33 [mtp-probe] checking bus 4, device 4: "/sys/devices/pci0000:00/0000:00:14.0/usb4/4-4"
Sep 19 07:00:33 [mtp-probe] bus: 4, device: 4 was not an MTP device
Sep 19 07:00:33 [mtp-probe] checking bus 4, device 4: "/sys/devices/pci0000:00/0000:00:14.0/usb4/4-4"
Sep 19 07:00:33 [mtp-probe] bus: 4, device: 4 was not an MTP device
Sep 19 07:00:34 [kernel] scsi 7:0:0:0: Direct-Access     SanDisk  Extreme Pro 55AF 1087 PQ: 0 ANSI: 6
Sep 19 07:00:34 [kernel] sd 7:0:0:0: [sdc] 7813971617 512-byte logical blocks: (4.00 TB/3.64 TiB)
Sep 19 07:00:34 [kernel] sd 7:0:0:0: [sdc] Write Protect is off
Sep 19 07:00:34 [kernel] scsi 7:0:0:1: Enclosure         SanDisk  SES Device       1087 PQ: 0 ANSI: 6
Sep 19 07:00:34 [kernel] sd 7:0:0:0: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
Sep 19 07:00:34 [kernel] sd 7:0:0:0: [sdc] Preferred minimum I/O size 512 bytes
Sep 19 07:00:34 [kernel] sd 7:0:0:0: [sdc] Optimal transfer size 2097152 bytes
Sep 19 07:00:42 [metalog] Got SIGUSR1 - enabling synchronous mode.
Sep 19 07:01:04 [kernel] scsi 7:0:0:1: tag#21 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD IN 
Sep 19 07:01:04 [kernel] scsi 7:0:0:1: tag#21 CDB: Inquiry 12 01 00 00 04 00
Sep 19 07:01:04 [kernel] sd 7:0:0:0: [sdc] tag#26 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
Sep 19 07:01:04 [kernel] sd 7:0:0:0: [sdc] tag#26 CDB: Test Unit Ready 00 00 00 00 00 00
Sep 19 07:01:04 [kernel] scsi host7: uas_eh_device_reset_handler start
Sep 19 07:01:04 [kernel] usb 4-4: reset SuperSpeed USB device number 4 using xhci_hcd
Sep 19 07:01:04 [kernel] scsi host7: uas_eh_device_reset_handler success
Sep 19 07:01:04 [kernel] scsi host7: uas_eh_device_reset_handler start
Sep 19 07:01:05 [kernel] usb 4-4: reset SuperSpeed USB device number 4 using xhci_hcd
Sep 19 07:01:05 [kernel] scsi host7: uas_eh_device_reset_handler success
Sep 19 07:01:05 [kernel] sd 7:0:0:0: [sdc] tag#25 data cmplt err -75 uas-tag 2 inflight: CMD 
Sep 19 07:01:05 [kernel] sd 7:0:0:0: [sdc] tag#25 CDB: Mode Sense(6) 1a 00 3f 00 04 00
Sep 19 07:01:35 [kernel] sd 7:0:0:0: [sdc] tag#25 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD 
Sep 19 07:01:35 [kernel] sd 7:0:0:0: [sdc] tag#25 CDB: Mode Sense(6) 1a 00 3f 00 04 00
Sep 19 07:01:35 [kernel] scsi 7:0:0:1: tag#20 uas_eh_abort_handler 0 uas-tag 1 inflight: IN 
Sep 19 07:01:35 [kernel] scsi 7:0:0:1: tag#20 CDB: Inquiry 12 01 80 00 14 00
Sep 19 07:01:35 [kernel] scsi host7: uas_eh_device_reset_handler start
Sep 19 07:01:35 [kernel] usb 4-4: reset SuperSpeed USB device number 4 using xhci_hcd
Sep 19 07:01:35 [kernel] scsi host7: uas_eh_device_reset_handler success
Sep 19 07:01:35 [kernel] scsi host7: uas_eh_device_reset_handler start
Sep 19 07:01:35 [kernel] usb 4-4: reset SuperSpeed USB device number 4 using xhci_hcd
Sep 19 07:01:35 [kernel] scsi host7: uas_eh_device_reset_handler success
Sep 19 07:01:35 [kernel]  sdc: sdc1 sdc2 sdc3

When plugging the device it seems to interact somehow with the internal card
reader module on that machine, so I left these lines here in the log for
analysis.

Searching the web for these error messages I found I needed to disable UAS and continue with usb-storage:
options usb-storage quirks=0781:55af:u
That works, but reduces the performance a lot. What is broken?

I remember the issue started when I tried a new longer cable on that machine.
Because it didn't work properly I switched back to the original cable again
which didn't solve the issues. Testing the drive with original cable again on
other machines is still working with uas, so I don't think the drive is broken.
Could the local physical USB interface be broken by that cable test in a way
that only affects UAS? I doubt.

Best regards,
Massimo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SanDisk Extreme Pro 55AF and UAS
  2023-09-19 13:34 SanDisk Extreme Pro 55AF and UAS Massimo Burcheri
@ 2023-09-19 13:47 ` Oliver Neukum
  2023-09-21 12:01   ` Massimo Burcheri
  2023-09-27 15:53   ` Massimo Burcheri
  0 siblings, 2 replies; 4+ messages in thread
From: Oliver Neukum @ 2023-09-19 13:47 UTC (permalink / raw)
  To: burcheri.massimo+linux-usb, linux-usb

On 19.09.23 15:34, Massimo Burcheri wrote:
  
> Searching the web for these error messages I found I needed to disable UAS and continue with usb-storage:
> options usb-storage quirks=0781:55af:u
> That works, but reduces the performance a lot. What is broken?

Probably your device. Are you using bus powered devices?

	Regards
		Oliver


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SanDisk Extreme Pro 55AF and UAS
  2023-09-19 13:47 ` Oliver Neukum
@ 2023-09-21 12:01   ` Massimo Burcheri
  2023-09-27 15:53   ` Massimo Burcheri
  1 sibling, 0 replies; 4+ messages in thread
From: Massimo Burcheri @ 2023-09-21 12:01 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-usb

On Tue, 2023-09-19 at 15:47 +0200, Oliver Neukum wrote:
> On 19.09.23 15:34, Massimo Burcheri wrote:

> > Searching the web for these error messages I found I needed to disable UAS
> > and continue with usb-storage:
> > options usb-storage quirks=0781:55af:u
> > That works, but reduces the performance a lot. What is broken?

> Probably your device. Are you using bus powered devices?

Which device, Linux machine or NVMedrive/enclosure?
Yes, the drive is bus powered.
The drive with same cable still works fine with UAS on my other Linux machine.
The drive with same cable works on the failing machine with usb-storage module,
only uas is failing.

What could that be?

Best regards,
Massimo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SanDisk Extreme Pro 55AF and UAS
  2023-09-19 13:47 ` Oliver Neukum
  2023-09-21 12:01   ` Massimo Burcheri
@ 2023-09-27 15:53   ` Massimo Burcheri
  1 sibling, 0 replies; 4+ messages in thread
From: Massimo Burcheri @ 2023-09-27 15:53 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-usb

On Tue, 2023-09-19 at 15:47 +0200, Oliver Neukum wrote:

> Probably your device. Are you using bus powered devices?

Bus powered device.
Why does the drive still run fine with uas on other machines?
Why did it run with uas also on the now failing machine, until something had
changed?
What could be broken due to test with a longer 1 meter cable?

Does uas have higher spec requirements to the USB bus? I thought it's just
another protocol run on USB3 with SuperSpeed (5Gbps). Using that drive on the
failing machine still works with the usb-storage module using the older Bulk-
only protocol.

Here is the full lsusb -v of that device, currently running with uas on this
machine:

Bus 004 Device 015: ID 0781:55af SanDisk Corp. Extreme Pro 55AF
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.20
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x0781 SanDisk Corp.
  idProduct          0x55af 
  bcdDevice           10.87
  iManufacturer           2 SanDisk
  iProduct                3 Extreme Pro 55AF
  iSerial                 1 323134385331643031333831
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0079
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              896mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-out pipe (0x04)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        Command pipe (0x01)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x002a
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x0000f41e
      BESL Link Power Management (LPM) Supported
    BESL value     1024 us 
    Deep BESL value    61440 us 
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat        2047 micro seconds
  SuperSpeedPlus USB Device Capability:
    bLength                20
    bDescriptorType        16
    bDevCapabilityType     10
    bmAttributes         0x00000001
      Sublink Speed Attribute count 2
      Sublink Speed ID count 1
    wFunctionalitySupport   0x1100
      Min functional Speed Attribute ID: 0
      Min functional RX lanes: 1
      Min functional TX lanes: 1
    bmSublinkSpeedAttr[0]   0x000a4030
      Speed Attribute ID: 0 10Gb/s Symmetric RX SuperSpeedPlus
    bmSublinkSpeedAttr[1]   0x000a40b0
      Speed Attribute ID: 0 10Gb/s Symmetric TX SuperSpeedPlus
Device Status:     0x000c
  (Bus Powered)
  U1 Enabled
  U2 Enabled


Best regards,
Massimo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-27 15:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-19 13:34 SanDisk Extreme Pro 55AF and UAS Massimo Burcheri
2023-09-19 13:47 ` Oliver Neukum
2023-09-21 12:01   ` Massimo Burcheri
2023-09-27 15:53   ` Massimo Burcheri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox