• Juraj Pecigos's avatar
    nvme-pci: mark Lexar NM760 as IGNORE_DEV_SUBNQN · 1231363a
    Juraj Pecigos authored
    A system with more than one of these SSDs will only have one usable.
    The kernel fails to detect more than one nvme device due to duplicate
    cntlids.
    
    before:
    [    9.395229] nvme 0000:01:00.0: platform quirk: setting simple suspend
    [    9.395262] nvme nvme0: pci function 0000:01:00.0
    [    9.395282] nvme 0000:03:00.0: platform quirk: setting simple suspend
    [    9.395305] nvme nvme1: pci function 0000:03:00.0
    [    9.409873] nvme nvme0: Duplicate cntlid 1 with nvme1, subsys nqn.2022-07.com.siliconmotion:nvm-subsystem-sn-                    , rejecting
    [    9.409982] nvme nvme0: Removing after probe failure status: -22
    [    9.427487] nvme nvme1: allocated 64 MiB host memory buffer.
    [    9.445088] nvme nvme1: 16/0/0 default/read/poll queues
    [    9.449898] nvme nvme1: Ignoring bogus Namespace Identifiers
    
    after:
    [    1.161890] nvme 0000:01:00.0: platform quirk: setting simple suspend
    [    1.162660] nvme nvme0: pci function 0000:01:00.0
    [    1.162684] nvme 0000:03:00.0: platform quirk: setting simple suspend
    [    1.162707] nvme nvme1: pci function 0000:03:00.0
    [    1.191354] nvme nvme0: allocated 64 MiB host memory buffer.
    [    1.193378] nvme nvme1: allocated 64 MiB host memory buffer.
    [    1.211044] nvme nvme1: 16/0/0 default/read/poll queues
    [    1.211080] nvme nvme0: 16/0/0 default/read/poll queues
    [    1.216145] nvme nvme0: Ignoring bogus Namespace Identifiers
    [    1.216261] nvme nvme1: Ignoring bogus Namespace Identifiers
    
    Adding the NVME_QUIRK_IGNORE_DEV_SUBNQN quirk to resolves the issue.
    Signed-off-by: default avatarJuraj Pecigos <kernel@juraj.dev>
    Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    1231363a
pci.c 93.4 KB