#1008 closed defect (invalid)

JMicron 152d:0539 always run smart check only over the first disk

Reported by: Daniele Palumbo Owned by:
Priority: minor Milestone:
Component: all Version: 6.6
Keywords: Cc:

Description

I have bought quite time ago a Orico B01823CC8Y, 4 bay open tray.

-d jmicron is not working
When i run smartctl with -d sat -t [long|short], always the first disc is scanned, even if this is not te first one recognized.

See this example

~# smartctl -d sat /dev/sdb  -t short
smartctl 6.6 2016-05-31 r4324 [armv7l-linux-4.9.86-odroidxu4] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 1 minutes for test to complete.
Test will complete after Wed Mar 14 01:46:23 2018

Use smartctl -X to abort test.
~# smartctl -d sat /dev/sdb  -a|grep 'Serial\|# 1'
Serial Number:    Z296XNGZ
# 1  Short offline       Aborted by host               10%     26764         -
# smartctl -d sat /dev/sda  -a|grep 'Serial\|# 1'
Serial Number:    9WM3VKQ8
# 1  Short offline       Self-test routine in progress 80%     18258         -
~# 

lsusb of the device

# lsusb -d 152d:0539 -v
Bus 004 Device 003: ID 152d:0539 JMicron Technology Corp. / JMicron USA Technology Corp. JMS539/567 SuperSpeed SATA II/III 3.0G/6.0G Bridge
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
  idProduct          0x0539 JMS539/567 SuperSpeed SATA II/III 3.0G/6.0G Bridge
  bcdDevice           28.06
  iManufacturer          10 JMicron
  iProduct               11 USB to ATA/ATAPI Bridge
  iSerial                 5 000000000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           44
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    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
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           42
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      Link Power Management (LPM) Supported
  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
  Container ID Device Capability:
    bLength                20
    bDescriptorType        16
    bDevCapabilityType      4
    bmAttributes   0x00000002
      Link Power Management (LPM) Supported
  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
  Container ID Device Capability:
    bLength                20
    bDescriptorType        16
    bDevCapabilityType      4
    bReserved               0
    ContainerID             {00010203-0405-0607-0800-000000000000}
Device Status:     0x0001
  Self Powered

Please sk for any furher data needed

Change History (1)

comment:1 Changed 20 months ago by Christian Franke

Resolution: invalid
Status: newclosed

This is a bug in the JMicron USB bridge firmware and cannot be fixed by smartctl.

If a port multiplier is used, the firmware routes SAT ATA PASS-THROUGH NON DATA always to the same drive. DATA IN commands work as expected, therefore smartctl -x ... works for all drives, but smartctl -t ... does not.

The same issue was reported 2015 for a similar USB bridge (0x152d:0x0539, bcdDevice 28.12 instead of 28.06). See this thread on old smartmontools-support ML fur further info and another test case (smartctl -s apm,N ...).

Note: See TracTickets for help on using tickets.