Skip to contentSkip to conversation

nvme-pci: add IGNORE_DEV_SUBNQN quirk for device 1987:5012

PATCH New Jason Nader 1 participant 2 messages May 22, 2024 NVMe

lore
Share & tools
lore
#0 lore raw

cover nvme-pci: add IGNORE_DEV_SUBNQN quirk for device 1987:5012

Hi,

The existing quirk for this device was missing IGNORE_DEV_SUBNQN, however on my system it looks like the quirk should be applied.

Kernel logs before this patch:

nvme nvme0: pci function 0000:02:00.0
nvme nvme0: missing or invalid SUBNQN field.
nvme nvme0: D3 entry latency set to 10 seconds
nvme nvme0: 8/0/0 default/read/poll queues
nvme nvme0: Ignoring bogus Namespace Identifiers

Kernel logs after this patch:

nvme nvme0: pci function 0000:02:00.0
nvme nvme0: D3 entry latency set to 10 seconds
nvme nvme0: 8/0/0 default/read/poll queues
nvme nvme0: Ignoring bogus Namespace Identifiers

Jason Nader (1):
nvme-pci: add IGNORE_DEV_SUBNQN quirk for device 1987:5012

 drivers/nvme/host/pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.45.1
#1 lore raw

PATCH 1/1 nvme-pci: add IGNORE_DEV_SUBNQN quirk for device 1987:5012

The NVME drive 'Corsair Force MP510' which shows in lspci -nn as Phison Electronics Corporation E12 NVMe Controller [1987:5012] (rev 01), shows the following warning in dmesg:

nvme nvme0: missing or invalid SUBNQN field.

To fix this, add NVME_QUIRK_IGNORE_DEV_SUBNQN for this device.

---
 drivers/nvme/host/pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/nvme/host/pci.c +2 -1
index 710043086dff..fd9982a7e3c6 100644
@@ -3399,7 +3399,8 @@ static const struct pci_device_id nvme_id_table[] = {
 	{ PCI_DEVICE(0x15b7, 0x5008),   /* Sandisk SN530 */
 		.driver_data = NVME_QUIRK_BROKEN_MSI },
 	{ PCI_DEVICE(0x1987, 0x5012),	/* Phison E12 */
-		.driver_data = NVME_QUIRK_BOGUS_NID, },
+		.driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN |
+				NVME_QUIRK_BOGUS_NID, },
 	{ PCI_DEVICE(0x1987, 0x5016),	/* Phison E16 */
 		.driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN |
 				NVME_QUIRK_BOGUS_NID, },
Signature · 1 line
2.45.1