Skip to content

Commit e89086c

Browse files
iBugkeithbusch
authored andcommitted
drivers/nvme: Add quirks for device 126f:2262
This commit adds NVME_QUIRK_NO_DEEPEST_PS and NVME_QUIRK_BOGUS_NID for device [126f:2262], which appears to be a generic VID:PID pair used for many SSDs based on the Silicon Motion SM2262/SM2262EN controller. Two of my SSDs with this VID:PID pair exhibit the same behavior: * They frequently have trouble exiting the deepest power state (5), resulting in the entire disk unresponsive. Verified by setting nvme_core.default_ps_max_latency_us=10000 and observing them behaving normally. * They produce all-zero nguid and eui64 with `nvme id-ns` command. The offending products are: * HP SSD EX950 1TB * HIKVISION C2000Pro 2TB Signed-off-by: Jiawei Fu <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 798edad commit e89086c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/nvme/host/pci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3363,6 +3363,9 @@ static const struct pci_device_id nvme_id_table[] = {
33633363
NVME_QUIRK_BOGUS_NID, },
33643364
{ PCI_VDEVICE(REDHAT, 0x0010), /* Qemu emulated controller */
33653365
.driver_data = NVME_QUIRK_BOGUS_NID, },
3366+
{ PCI_DEVICE(0x126f, 0x2262), /* Silicon Motion generic */
3367+
.driver_data = NVME_QUIRK_NO_DEEPEST_PS |
3368+
NVME_QUIRK_BOGUS_NID, },
33663369
{ PCI_DEVICE(0x126f, 0x2263), /* Silicon Motion unidentified */
33673370
.driver_data = NVME_QUIRK_NO_NS_DESC_LIST |
33683371
NVME_QUIRK_BOGUS_NID, },

0 commit comments

Comments
 (0)