nvme: fix possible initialization failure for P4500/P4600 SSDs
PATCH 1/1 nvme: fix possible initialization failure for P4500/P4600 SSDs
From: Wu Zheng <[email protected]>
Subnqn isn't supported in P4500/P4600 SSDs. It's a fixed unavailable value in each P4500/P4600 SSD.
Multiple SSDs need to return the different subnqn when SSDs are initialization. To P4500/P4600 SSDs, in nvme_init_subnqn, id->subnqn is not null and it's from P4500/P4600. However, multiple P4500/P4600 SSDs return the same subnqn. It causes the possible initialization failure.
To fix this, the flag of NVME_QUIRK_IGNORE_DEV_SUBNQN need to be added to driver_data of P4500/P4600 for nvme_id_table.
--- drivers/nvme/host/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/nvme/host/pci.c +2 -1
@@ -3326,7 +3326,8 @@ static const struct pci_device_id nvme_id_table[] = { NVME_QUIRK_DEALLOCATE_ZEROES, }, { PCI_VDEVICE(INTEL, 0x0a54), /* Intel P4500/P4600 */ .driver_data =NVME_QUIRK_STRIPE_SIZE | - NVME_QUIRK_DEALLOCATE_ZEROES, }, +NVME_QUIRK_DEALLOCATE_ZEROES | + NVME_QUIRK_IGNORE_DEV_SUBNQN, }, { PCI_VDEVICE(INTEL, 0x0a55), /* Dell Express Flash P4600 */ .driver_data = NVME_QUIRK_STRIPE_SIZE | NVME_QUIRK_DEALLOCATE_ZEROES, },
Signature · 1 line
2.7.4
Keith Busch
maintainerQuoted 4 lines · Zheng Wu
From: Wu Zheng <[email protected]>
Subnqn isn't supported in P4500/P4600 SSDs. It's a fixed unavailable value in each P4500/P4600 SSD.
According to ark.intel.com, P4500/4600 were released nearly 4 years ago. My understanding was these were a popular product. Why are we hearing about this issue only now? Is this issue specific to a particular firmware version, or has Linux really been incompatible with these this entire time?
drivers/nvme/host/pci.c static const struct pci_device_id nvme_id_table[] = { · line 3333
Quoted 10 lines
drivers/nvme/host/pci.c +2
-1@@ -3326,7 +3326,8 @@ static const struct pci_device_id nvme_id_table[] = { NVME_QUIRK_DEALLOCATE_ZEROES, }, { PCI_VDEVICE(INTEL, 0x0a54), /* Intel P4500/P4600 */ .driver_data =NVME_QUIRK_STRIPE_SIZE | - NVME_QUIRK_DEALLOCATE_ZEROES, }, +NVME_QUIRK_DEALLOCATE_ZEROES | + NVME_QUIRK_IGNORE_DEV_SUBNQN, }, { PCI_VDEVICE(INTEL, 0x0a55), /* Dell Express Flash P4600 */ .driver_data = NVME_QUIRK_STRIPE_SIZE | NVME_QUIRK_DEALLOCATE_ZEROES, },
So the generic P4600 is broken, but Dell's is not?