Let’s keep using DPDK 17.02 + SPDK 17.03, we have some modification from DPDK 16.11 to
DPDK 17.02 for the pci devices probe.
From: SPDK [mailto:email@example.com] On Behalf Of Baruch Even
Sent: Sunday, April 23, 2017 7:46 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: Re: [SPDK] NVMe device reinsertion not detected
Is it a requirement to use the exact DPDK version or can I use dpdk 16.11 with spdk 17.03?
'm having some problems and am wondering if this is a supported version at all.
On Sun, Apr 23, 2017 at 11:28 AM Baruch Even
Thanks. I'll try it with the latest SPDK.
It was also suggested to me offlne to try and do a direct probe of the devices which is
something that is only supported from the latest spdk.
On Fri, Apr 21, 2017 at 3:46 AM Chang, Cunyin
The case you mentioned is not what we expected, we suppose the driver should detect the
Hot insert event when you insert a new device into system and bind it to uio_pci_generic
driver, I suggest you use the latest SPDK
Version and DPDK17.02, please also make sure the CONFIG_DEBUG=y in CONFIG file before you
compile the SPDK, if SPDK get new
Event, you will find the dump information: “add nvme address:”, which means SPDK detect
one event from uio_pci_generic driver.
If not, maybe something wrong when you bind the device to uio_pci_generic driver. Please
also provide some details steps when you test
From: SPDK [mailto:firstname.lastname@example.org<mailto:email@example.com>] On
Behalf Of Baruch Even
Sent: Thursday, April 20, 2017 3:05 PM
Subject: [SPDK] NVMe device reinsertion not detected
I'm using spdk 16.12 and dpdk 16.11 and am having an issue with NVMe device
reinsertion that is not getting detected and I wanted to check with you about the current
state of device hot plug and hot removal as I've seen at ticket that mentions there
are known issues with these.
Currently we have the devices working at startup by detecting the already bound devices at
startup and that works just fine. When I then go on to test device removal the removal
gets detected fine when I call the probe function periodically. If I reinsert the
device and bind it to the uio_pci_generic driver it is not being detected by spdk and is
not added back, at least there is no probe/attach callbacks getting called and I can't
see any traces from dpdk showing up.
If I restart the process the device will get detected and taken back as usual and it can
serve as a temporary workaround but it is not a good overall approach.
Is this a known issue?
What can be done about this?
 It would be nice to expose this file descriptor to allow select/poll/epoll to be used
to call an event instead of periodic polls for this very rare event.
SPDK mailing list