On 04.11.2023 13:08, ASSI wrote:
I'm looking for a way to get an external NVMe enclosure connected via USB4 (PCIe Alt mode) to a Ryzen 7735HS (Rembrandt) based miniPC (MinisForum UM773 Lite). The USB4 controller is properly recognized:
--8<---------------cut here---------------start------------->8--- ~> lspci -tv -[0000:00]-+-00.0 Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Root Complex … +-08.3-[36]--+-00.0 Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #8 | +-00.3 Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #5 | +-00.4 Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #6 | \-00.5 Advanced Micro Devices, Inc. [AMD] Rembrandt USB4/Thunderbolt NHI controller #1 … --8<---------------cut here---------------end--------------->8---
Connecting an NVMe enclosure with an AsMedia AS2364 controller to the USB4 port however has this result:
--8<---------------cut here---------------start------------->8--- ~> lsusb -vt … /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 10000M ID 1d6b:0003 Linux Foundation 3.0 root hub |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=uas, 10000M ID 174c:2364 ASMedia Technology Inc. … --8<---------------cut here---------------end--------------->8---
Connection over USB should result in 20000M connection speed with this enclosure and cable; however it doesn't even use 2x2 mode, much less the PCIe Alt mode that would allow NVMe tunneling (hopefully). Instead it connects via UAS, so the disk shows up as SCSI disk and I cannot use NVMe CLI tools (among other things, that would allow me to change the sector size from 512 to 4096 on the QLC based 4TB SSD without having to mount them on an internal M2 port in a spare PC).
Does anyone have any insights into how to make this work and/or can share experiences with NVMe enclosures where this works out of the box?
Does the following help? https://docs.kernel.org/6.2/admin-guide/thunderbolt.html