All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme: Added QUIRK for Samsung PM1725a
@ 2020-12-04 16:16 Gopal Tiwari
  2020-12-07 14:04 ` Christoph Hellwig
  2020-12-08 14:04 ` Christoph Hellwig
  0 siblings, 2 replies; 10+ messages in thread
From: Gopal Tiwari @ 2020-12-04 16:16 UTC (permalink / raw)
  To: hch, kbusch, linux-nvme; +Cc: gtiwari, dmilburn

A system with more than one of these SSDs will only have one usable.
Hence failed to detect nvme devices due to duplicate cntlid.

[    6.274554] nvme nvme1: Duplicate cntlid 33 with nvme0, rejecting
[    6.274566] nvme nvme1: Removing after probe failure status: -22

After adding to the NVME_QUIRK_IGNORE_DEV_SUBNQN quirk resolves the issue.

Signed-off-by: Gopal Tiwari <gtiwari@redhat.com>
---
 drivers/nvme/host/pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 3be352403839..143f16a9f8d7 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3201,7 +3201,8 @@ static const struct pci_device_id nvme_id_table[] = {
 	{ PCI_DEVICE(0x144d, 0xa821),   /* Samsung PM1725 */
 		.driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY, },
 	{ PCI_DEVICE(0x144d, 0xa822),   /* Samsung PM1725a */
-		.driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY, },
+		.driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY |
+				NVME_QUIRK_IGNORE_DEV_SUBNQN, },
 	{ PCI_DEVICE(0x1d1d, 0x1f1f),	/* LighNVM qemu device */
 		.driver_data = NVME_QUIRK_LIGHTNVM, },
 	{ PCI_DEVICE(0x1d1d, 0x2807),	/* CNEX WL */
-- 
2.21.1


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-12-09  7:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-04 16:16 [PATCH] nvme: Added QUIRK for Samsung PM1725a Gopal Tiwari
2020-12-07 14:04 ` Christoph Hellwig
2020-12-08 13:28   ` Gopal Tiwari
2020-12-08 13:29     ` Christoph Hellwig
2020-12-08 13:35       ` Gopal Tiwari
2020-12-08 13:54         ` Christoph Hellwig
2020-12-08 19:11           ` Keith Busch
2020-12-09  7:33             ` Christoph Hellwig
2020-12-08 14:04 ` Christoph Hellwig
2020-12-08 14:16   ` Gopal Tiwari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.