#1737 closed enhancement (fixed)

JMicron ab12:34cd USB 3.0 Bridge needs -d sat

Reported by: lemonuk Owned by: Christian Franke
Priority: minor Milestone: Release 7.4
Component: drivedb Version:
Keywords: usb Cc:

Description

Followup from here: https://www.smartmontools.org/ticket/338
dmesg log:

[Jul14 17:50] usb 2-1: new SuperSpeed USB device number 6 using xhci_hcd
[  +0.017371] usb 2-1: New USB device found, idVendor=ab12, idProduct=34cd, bcdDevice= 4.05
[  +0.000005] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000003] usb 2-1: Product: External Disk
[  +0.000001] usb 2-1: Manufacturer: USB30
[  +0.000002] usb 2-1: SerialNumber: 01600000002D
[  +0.005995] scsi host5: uas
[  +0.000514] scsi 5:0:0:0: Direct-Access     USB30                     0405 PQ: 0 ANSI: 6

This hardware is a SATA to USB adapter enclosure.
Exact model:
Sveon STG064 Laptop Hard Drive 2.5 Inch Silver in Red (2.5 - Hard Drive, SATA, Serial ATA II, Serial ATA III, 9.5 mm, Hard Drive, 2.0/3.0 (3.1 Gen 1), Hard Drive)
Purchase link: https://www.amazon.de/-/en/Sveon-STG064-Laptop-Drive-Silver/dp/B0798MCWL8

It requires some hard drive connected to SATA port when connecting the USB to the computer, otherwise dmesg does not output anything.

Test:

# smartctl -H /dev/sdf
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.4.6-arch1-1] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdf: Unknown USB bridge [0xab12:0x34cd (0x405)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

This works fine:

# smartctl -H /dev/sdf -d sat

Change History (8)

comment:1 by lemonuk, 11 months ago

lsusb:

# lsusb --version
lsusb (usbutils) 015

Debug data:

# lsusb -s 002:006 -v

Bus 002 Device 006: ID ab12:34cd aplic JMICRON JMS578 SATA 6Gb/s bridge
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0xab12 aplic
  idProduct          0x34cd JMICRON JMS578 SATA 6Gb/s bridge
  bcdDevice            4.05
  iManufacturer           1 USB30
  iProduct                2 External Disk
  iSerial                 3 01600000002D
  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     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        Command pipe (0x01)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        MaxStreams             32
        Status pipe (0x02)
      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
        Data-in pipe (0x03)
      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               7
        MaxStreams             32
        Data-out pipe (0x04)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000f0e
      BESL Link Power Management (LPM) Supported
    BESL value     3840 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          32 micro seconds
Device Status:     0x000c
  (Bus Powered)
  U1 Enabled
  U2 Enabled

comment:2 by lemonuk, 11 months ago

The SSD is recognized fine:

# smartctl -x /dev/sdf -d sat |grep 'Device is'
Device is:        In smartctl database 7.3/5440
Last edited 11 months ago by lemonuk (previous) (diff)

comment:4 by lemonuk, 11 months ago

I get this information about the SSD:

SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     128 (minimum power consumption without standby)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unavailable
=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

comment:5 by lemonuk, 11 months ago

Added entry to wiki, no idea if should put something into Comment, apparently works fine and gives the needed information:
https://www.smartmontools.org/wiki/Supported_USB-Devices_idVendor-0x1000?sfp_email=&sfph_mail=&action=diff&version=20&old_version=14&sfp_email=&sfph_mail=

Version 3, edited 11 months ago by lemonuk (previous) (next) (diff)

comment:6 by Christian Franke, 11 months ago

Keywords: usb added
Milestone: unscheduled
Priority: trivialminor

comment:7 by Christian Franke, 11 months ago

Milestone: unscheduledRelease 7.4
Owner: set to Christian Franke
Status: newaccepted

comment:8 by Christian Franke, 11 months ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.