nvme: Add quirks for Lexar 256GB SSD
PATCH 1/1 nvme: Add quirks for Lexar 256GB SSD
Add NVME_QUIRK_NO_NS_DESC_LIST to Lexar 256GB SSD to allow it to work again, and add NVME_QUIRK_IGNORE_DEV_SUBNQN to avoid a warning.
[ 0.637476] nvme nvme0: missing or invalid SUBNQN field. [ 0.638399] nvme nvme0: Identify Descriptors failed (16386)
Reported and tested in https://bugs.mageia.org/show_bug.cgi?id=28417
--- drivers/nvme/host/pci.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/nvme/host/pci.c +3 -0
@@ -3232,6 +3232,9 @@ static const struct pci_device_id nvme_id_table[] = { NVME_QUIRK_DISABLE_WRITE_ZEROES, }, { PCI_DEVICE(0x126f, 0x2263), /* Silicon Motion unidentified */ .driver_data = NVME_QUIRK_NO_NS_DESC_LIST, }, + { PCI_DEVICE(0x1b4b, 0x1092), /* Lexar 256 GB SSD */ + .driver_data = NVME_QUIRK_NO_NS_DESC_LIST | + NVME_QUIRK_IGNORE_DEV_SUBNQN, }, { PCI_DEVICE(0x1bb1, 0x0100), /* Seagate Nytro Flash Storage */ .driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY, }, { PCI_DEVICE(0x1c58, 0x0003), /* HGST adapter */
Signature · 7 lines
2.30.0.617.g56c4b15f3c-goog _______________________________________________ Linux-nvme mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-nvme
Pascal,
Quoted 9 lines · Pascal Terjan
Add
NVME_QUIRK_NO_NS_DESC_LISTto Lexar 256GB SSD to allow it to work again, and addNVME_QUIRK_IGNORE_DEV_SUBNQNto avoid a warning.[ 0.637476] nvme nvme0: missing or invalid SUBNQN field. [ 0.638399] nvme nvme0: Identify Descriptors failed (16386)Reported and tested in https://bugs.mageia.org/show_bug.cgi?id=28417
Signed-off-by Pascal Terjan <[email protected]>
Do we need to add the Tested-by: tag ? if this is tested by other than the patch author ?
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Quoted 2 lines · Pascal Terjan
Add
NVME_QUIRK_NO_NS_DESC_LISTto Lexar 256GB SSD to allow it to work again, and addNVME_QUIRK_IGNORE_DEV_SUBNQNto avoid a warning.
Why again? The drive has always been broken since the desc list has been a mandatory feature since NVMe 1.3..
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Quoted 7 lines · Christoph Hellwig
Quoted 2 lines · Pascal Terjan
Add
NVME_QUIRK_NO_NS_DESC_LISTto Lexar 256GB SSD to allow it to work again, and addNVME_QUIRK_IGNORE_DEV_SUBNQNto avoid a warning.Why again? The drive has always been broken since the desc list has been a mandatory feature since NVMe 1.3..
According to the reporter it works on Debian which is still running a 4.19 kernel
My guess is that it worked before
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=538af88ea7d9de241e6b6f006e9049c4d96723bb
as the error was ignored
And I believe it would have worked again until
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5bedd3afee8eb01ccd256f0cd2cc0fa6f841417a
as a waorkaround was added at some point (it changed at
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fb314eb0cbb2e11540d1ae1a7b28346397f621ef
but was laready there)
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keith Busch
maintainerQuoted 9 lines · Pascal Terjan
Quoted 7 lines · Christoph Hellwig
Quoted 2 lines · Pascal Terjan
Add
NVME_QUIRK_NO_NS_DESC_LISTto Lexar 256GB SSD to allow it to work again, and addNVME_QUIRK_IGNORE_DEV_SUBNQNto avoid a warning.Why again? The drive has always been broken since the desc list has been a mandatory feature since NVMe 1.3..
Quoted 10 lines
According to the reporter it works on Debian which is still running a 4.19 kernel
My guess is that it worked before
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=538af88ea7d9de241e6b6f006e9049c4d96723bb
as the error was ignored
And I believe it would have worked again until
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5bedd3afee8eb01ccd256f0cd2cc0fa6f841417a
as a waorkaround was added at some point (it changed at
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fb314eb0cbb2e11540d1ae1a7b28346397f621ef
but was laready there)
Right, the error used to be ignored, but now we avoid the error in the first place with the quirk.
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme