Skip to contentSkip to conversation

nvme-pci: add NO_NS_DESC_LIST quirk for SSSTC CL1 SSDs

PATCH In review Chengyuan He 4 participants 4 messages Nov 5 – Nov 7 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme-pci: add NO_NS_DESC_LIST quirk for SSSTC CL1 SSDs

The SSSTC CL1 series (PCI ID 1e95:9100, e.g. CL1-3D128-Q11, a Silicon Motion SM2263XT based OEM drive shipped in Dell laptops) reports NVMe version 1.3 but fails the Namespace Identification Descriptor list (CNS 03h) with Invalid Field in Command:

nvme nvme1: Identify Descriptors failed (nsid=1, status=0x2)

nvme_scan_ns() gives up on the namespace when nvme_identify_ns_descs() fails, so no block device is created even though the controller is live and namespace 1 is otherwise fully functional.

The failure was reproduced with the latest vendor firmware 22301119 (Dell package NJV53, A09) as well as with an older third-party firmware. The drive reports an all-zero NGUID and EUI64, so skipping the descriptor list loses no identifiers.

The generic Silicon Motion SM2263 entry (126f:2263) already carries NVME_QUIRK_NO_NS_DESC_LIST. This drive reports 126f:2263 only as its subsystem ID, so that entry does not match it.

Add NVME_QUIRK_NO_NS_DESC_LIST for 1e95:9100 as well.

Tested on 7.0.14 by booting with nvme.quirks=1e95:9100:no_ns_desc_list, after which the namespace shows up and I/O works.

---
 drivers/nvme/host/pci.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/nvme/host/pci.c +2 -0
index eade0b1..af19c75 100644
@@ -4282,6 +4282,8 @@ static const struct pci_device_id nvme_id_table[] = {
 		.driver_data = NVME_QUIRK_BOGUS_NID, },
 	{ PCI_DEVICE(0x10ec, 0x5765), /* TEAMGROUP MP33 2TB SSD */
 		.driver_data = NVME_QUIRK_BOGUS_NID, },
+	{ PCI_DEVICE(0x1e95, 0x9100), /* SSSTC CL1 series */
+		.driver_data = NVME_QUIRK_NO_NS_DESC_LIST, },
 	{ PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0061),
 		.driver_data = NVME_QUIRK_DMA_ADDRESS_BITS_48, },
 	{ PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0065),

base-commit: c64d9b2c1f4fd1d8fa52dab37b48428a99c4d58d --
2.54.0

#3 lore raw
Quoted 5 lines · Keith Busch
Quoted 1 line · Chengyuan He

Your sign off email doesn't match the patch's author. Which one should be used?

Sorry about that, please use [email protected]. Both addresses belong to the same Gmail account, which was renamed recently, and Gmail's SMTP server rewrote the From: header to the old address.

If it's easier for you, I can resend the patch with an in-body From:
line instead.

Thanks,
Chengyuan