[bug report] Duplicate IDs for nsid 1 on another drive

Daniel Smith dansmith at ds.gy
Tue May 2 07:03:54 PDT 2023


Much appreciated. I created this diff from the latest stable source:

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 7f25c0fe3a0b..be5fa7bae285 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3441,6 +3441,8 @@ static const struct pci_device_id nvme_id_table[] = {
                                NVME_QUIRK_IGNORE_DEV_SUBNQN, },
        { PCI_DEVICE(0x10ec, 0x5763), /* TEAMGROUP T-FORCE CARDEA ZERO
Z330 SSD */
                .driver_data = NVME_QUIRK_BOGUS_NID, },
+       { PCI_DEVICE(0x10ec, 0x5765), /* TEAMGROUP MP33 2TB SSD */
+               .driver_data = NVME_QUIRK_BOGUS_NID, },
        { PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0061),
                .driver_data = NVME_QUIRK_DMA_ADDRESS_BITS_48, },
        { PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0065),
________________________________
From: Chaitanya Kulkarni <chaitanyak at nvidia.com>
Sent: Tuesday, May 2, 2023 2:49 AM
To: Daniel Smith <dansmith at ds.gy>; linux-nvme at lists.infradead.org
<linux-nvme at lists.infradead.org>
Subject: Re: [bug report] Duplicate IDs for nsid 1 on another drive

On 5/1/23 21:44, Daniel Smith wrote:
> Hello, I ran into a shoddy manufacturer which duplicates IDs in disks.
> In this case the device is:
>
> VID:DID 10ec:5765 model:TEAM TM8FP6002T firmware:VC2S038D
>
> I was able to set NVME_QUIRK_BOGUS_NID, build, and verify it resolved
> locally, but I'm completely out of my element to submit a proper patch
> for this.
>

if you can share the diff using "git diff" I can help you to get your patch
submitted ...

-ck



More information about the Linux-nvme mailing list