All of lore.kernel.org
 help / color / mirror / Atom feed
* Two M.2 NVMe drives with same NQN, one gets removed
@ 2018-11-26 13:38 James Dingwall
  2018-11-26 15:31 ` Keith Busch
  0 siblings, 1 reply; 11+ messages in thread
From: James Dingwall @ 2018-11-26 13:38 UTC (permalink / raw)


Hi,

We have also encountered this issue but the devices have a customised
firmware from Lenovo:

# nvme id-ctrl /dev/nvme0
NVME Identify Controller:
vid : 0x8086
ssvid : 0x8086
sn : BTHH82250N1X1P0E
mn : INTEL SSDPEKKF010T8L
fr : L08P

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803692?comments=all

I tried to force install the Intel firmware but that did not work.  I
was fobbed off by Lenovo support with a 'we don't support Linux' even
after pointing out the upstream Intel fix.  Is there any possibility
of being able to work around this in the nvme code?

Thanks,
James

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Two M.2 NVMe drives with same NQN, one gets removed
@ 2018-11-17  0:17 John Van Bockel
  2018-11-17  1:33 ` Keith Busch
  0 siblings, 1 reply; 11+ messages in thread
From: John Van Bockel @ 2018-11-17  0:17 UTC (permalink / raw)


Hi,

I have an Intel NUC8i7HVK mini-computer and a pair of Intel 760p 1TB M.2 NVMe
SSD drives.  With Fedora 29 and Ubuntu 18.10 (both 4.18 kernels), the
nvme kernel
module insists upon disabling one of the two NVMe drives when it notices that
both have been assigned the same NVMe Qualified Name (NQN).  The one that gets
removed by the nvme module is not always the same.  Whichever remains enabled
performs perfectly.

[root at NUCnFutz ~]# dmesg | grep -i nvme

[    3.372662] nvme nvme0: pci function 0000:72:00.0
[    3.372710] nvme nvme1: pci function 0000:73:00.0
[    3.484113]  nvme0n1: p1 p2 p3 p4
[    3.584531] nvme nvme1: ignoring ctrl due to duplicate subnqn
(nqn.2017-12.org.nvmexpress:uuid:11111111-2222-3333-4444-555555555555).
[    3.584533] nvme nvme1: Removing after probe failure status: -22

If I disable one in the UEFI BIOS, the other works perfectly with Linux.  It
does not matter which I disable, the enabled drive works perfectly.  Windows 10
has no trouble performing I/O against both drives when both are enabled.  I've
tried various combinations of settings in the UEFI to see if I could alter the
result of both being given the same NQN.  Firware versions for both
the NUC8i7hvk
and 760p SSD drives are at the latest 51 and 004C versions, respectively.

With the first M.2 slot enabled in UEFI, "nvme list" & "nvme list-subsys" yield:
/dev/nvme0n1 BTHH81850C8W1P0E INTEL SSDPEKKW010T8 1 1.02 TB / 1.02 TB
512 B + 0 B 004C
nvme-subsys0 - NQN=nqn.2017-12.org.nvmexpress:uuid:11111111-2222-3333-4444-555555555555
+- nvme0 pcie 0000:72:00.0

With the second M.2 slot enabled, "nvme list" & "nvme list-susbsys" produce:
/dev/nvme0n1 BTHH81850BX31P0E INTEL SSDPEKKW010T8 1 1.02 TB / 1.02 TB
512 B + 0 B 004C
nvme-subsys0 - NQN=nqn.2017-12.org.nvmexpress:uuid:11111111-2222-3333-4444-555555555555
+- nvme0 pcie 0000:73:00.0

I did have one boot in which both remained enabled.  Slot one was given a device
name of /dev/nvme0n1 with a 0000:72:00.0 path and slot two was given the
/dev/nvme0n2 name with its 0000:73:00.0 path.  I was excited by this result but
was unable to repeat the result.  I wish I had thought to see if both continued
to share the same NQN in that one fleeting success.

Intel regards the combination of NUC8i7HVK and 2TB 760p NVMe drives as
supported.
Mine are the 1TB version of the 760p drives, so I am deviating ever so slightly.
Also, Intel doesn't claim any responsibility for running Linux on the
NUCs and says
to contact the distribution.  The problem seems to be independent of
distribution,
having tried both Fedora 29 (kernel 4.18.16 & 4.18.18) and Ubuntu
18.10 (4.18.?).

I do not know how the NQN is being assigned to the drives.  Whether
the UEFI BIOS
is to blame or is instead being assigned by a Linux kernel module.  If this is
instead a defect in the UEFI, please let me know and I'll move on to communicate
with Intel Support.

Thanks
jvbockel at gmail.com

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

end of thread, other threads:[~2018-11-30 11:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-26 13:38 Two M.2 NVMe drives with same NQN, one gets removed James Dingwall
2018-11-26 15:31 ` Keith Busch
2018-11-27  7:54   ` Christoph Hellwig
2018-11-27 10:25     ` James Dingwall
2018-11-27 15:01       ` Keith Busch
2018-11-30 11:50         ` James Dingwall
  -- strict thread matches above, loose matches on Subject: below --
2018-11-17  0:17 John Van Bockel
2018-11-17  1:33 ` Keith Busch
2018-11-18 19:08   ` John Van Bockel
     [not found]   ` <CAGmwwfc=g+4h12qMBvRVJoE66Z70kzzfkabjyxLC=d7LZp627A@mail.gmail.com>
2018-11-19 17:00     ` Keith Busch
2018-11-21 21:19       ` John Van Bockel

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.