bb-qq / uas

DSM Driver for UASP supported USB storage devices
19 stars 0 forks source link

DS920+ with Unitek NVME: Not working #1

Open solarssk opened 7 months ago

solarssk commented 7 months ago

Description of the problem

On device Synology DS920+ after installed component via Package Center, I couldn't use that component with Unitek S1203ABK. Inside Unitek is Realtek RTL9210.

Description of your products

Device: Synology DS920+ OS: DSM 7.2.1-69057 Update 3 USB Chipset: RTL9210 connected by USB 3.2 cable

Output of dmesg command

[ 1207.028435] Module [uas] is removed. 
[ 1207.032563] usbcore: deregistering interface driver uas
[ 1207.045302] Module [usb_storage] is removed. 
[ 1207.050202] usbcore: deregistering interface driver usb-storage
[ 1207.107068] usb-storage 1-4:1.0: USB Mass Storage device detected
[ 1207.371993] scsi host12: usb-storage 1-4:1.0
[ 1207.377063] usbcore: registered new interface driver usb-storage
[ 1208.380268] scsi 12:0:0:0: Direct-Access     Synology DiskStation              DL17 PQ: 0 ANSI: 6
[ 1208.392396] sd 12:0:0:0: Attached scsi generic sg4 type 0
[ 1208.392601] sd 12:0:0:0: [synoboot] 245760 512-byte logical blocks: (126 MB/120 MiB)
[ 1208.393428] sd 12:0:0:0: [synoboot] Write Protect is off
[ 1208.393431] sd 12:0:0:0: [synoboot] Mode Sense: 23 00 00 00
[ 1208.394696] sd 12:0:0:0: [synoboot] No Caching mode page found
[ 1208.394698] sd 12:0:0:0: [synoboot] Assuming drive cache: write through
[ 1208.405386] GPT:Primary header thinks Alt. header is not at the end of the disk.
[ 1208.405387] GPT:239649 != 245759
[ 1208.405388] GPT:Alternate GPT header not at the end of the disk.
[ 1208.405388] GPT:239649 != 245759
[ 1208.405389] GPT: Use GNU Parted to correct GPT errors.
[ 1208.405398]  synoboot: synoboot1 synoboot2
[ 1208.411720] sd 12:0:0:0: [synoboot] Attached SCSI disk
[ 1243.856188] Module [usb_storage] is removed. 
[ 1243.861092] usbcore: deregistering interface driver usb-storage
[ 1243.893673] usb-storage 1-4:1.0: USB Mass Storage device detected
[ 1243.900747] scsi host13: usb-storage 1-4:1.0
[ 1243.905829] usbcore: registered new interface driver usb-storage
[ 1243.916258] usbcore: registered new interface driver uas
[ 1244.908000] scsi 13:0:0:0: Direct-Access     Synology DiskStation              DL17 PQ: 0 ANSI: 6
[ 1244.920570] sd 13:0:0:0: Attached scsi generic sg4 type 0
[ 1244.921803] sd 13:0:0:0: [synoboot] 245760 512-byte logical blocks: (126 MB/120 MiB)
[ 1244.923402] sd 13:0:0:0: [synoboot] Write Protect is off
[ 1244.923405] sd 13:0:0:0: [synoboot] Mode Sense: 23 00 00 00
[ 1244.925855] sd 13:0:0:0: [synoboot] No Caching mode page found
[ 1244.925857] sd 13:0:0:0: [synoboot] Assuming drive cache: write through
[ 1244.932024] GPT:Primary header thinks Alt. header is not at the end of the disk.
[ 1244.932025] GPT:239649 != 245759
[ 1244.932026] GPT:Alternate GPT header not at the end of the disk.
[ 1244.932026] GPT:239649 != 245759
[ 1244.932026] GPT: Use GNU Parted to correct GPT errors.
[ 1244.932035]  synoboot: synoboot1 synoboot2
[ 1244.938083] sd 13:0:0:0: [synoboot] Attached SCSI disk
[ 1259.715812] usb 2-1: new SuperSpeed USB device number 4 using xhci_hcd
[ 1259.807767] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 1259.816702] scsi host14: usb-storage 2-1:1.0
[ 1260.896152] scsi 14:0:0:0: Direct-Access     Realtek  RTL9210 NVME             1.00 PQ: 0 ANSI: 6
[ 1260.907331] sd 14:0:0:0: Attached scsi generic sg5 type 0
[ 1260.926551] sd 14:0:0:0: [usb1] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 1260.936464] sd 14:0:0:0: [usb1] Write Protect is off
[ 1260.942036] sd 14:0:0:0: [usb1] Mode Sense: 37 00 00 08
[ 1260.943250] sd 14:0:0:0: [usb1] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1260.971134]  usb1: p1
[ 1260.984097] sd 14:0:0:0: [usb1] Attached SCSI disk
[ 1263.438226] EXT4-fs (usb1p1): warning: mounting unchecked fs, running e2fsck is recommended
[ 1263.458135] EXT4-fs (usb1p1): mounted filesystem with ordered data mode. Opts: nodelalloc,synoacl

Output of lsusb command

|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
  |__1-2         0bda:5411:0104 09  2.10  480MBit/s 0mA 1IF  (Generic 4-Port USB 2.0 Hub ffffffd6ffffffa3ffffffebffffffcb) hub
    |__1-2.2     1cf1:0030:0100 02  2.01   12MBit/s 100mA 2IFs (dresden elektronik ingenieurtechnik GmbH ConBee II DE2440262)
   1-2.2:1.0      (IF) 02:02:01 1EP  ()  
   1-2.2:1.1      (IF) 0a:00:00 2EPs ()  
    |__1-2.3     0bda:2838:0100 00  2.00  480MBit/s 500mA 2IFs (Realtek RTL2838UHIDIR 00000102)
   1-2.3:1.0      (IF) ff:ff:ff 1EP  (Vendor Specific)  
   1-2.3:1.1      (IF) ff:ff:ff 0EPs (Vendor Specific)  
    |__1-2.4     10c4:ea60:0100 00  1.10   12MBit/s 100mA 1IF  (Silicon Labs CP2102 USB to UART Bridge Controller 0001)
   1-2.4:1.0      (IF) ff:00:00 2EPs ()  
  |__1-4         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 7F001B481713F271)
  1-4:1.0         (IF) 08:06:50 2EPs () usb-storage host8 (synoboot)
|__usb2          1d6b:0003:0404 09  3.00 5000MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
  |__2-1         0bda:9210:3000 00  3.20 5000MBit/s 896mA 1IF  (Realtek RTL9210 012345679221)
  2-1:1.0         (IF) 08:06:50 2EPs () usb-storage host9 (usb1)
  |__2-2         0bda:0411:0104 09  3.00 5000MBit/s 0mA 1IF  (Generic 4-Port USB 3.0 Hub ffffffd6ffffffa3ffffffebffffffc0) hub
bb-qq commented 7 months ago

Did you eject all USB storage devices from the control panel before starting the driver? (details)

solarssk commented 7 months ago

Yap, as you wrote in manual :-)

bb-qq commented 7 months ago

Hmm, this chip seems to have been reported recently as a device that does not work well on Linux. https://patchwork.kernel.org/project/linux-usb/patch/20240117141132.1023457-1-bruno@clisp.org/

I am not sure if this is the cause of the device not being recognized in UAS mode, as my version of the driver does not yet include this chip in the blacklist, but it may be related.