* [SPDK] hotplug support and testing
@ 2017-02-27 22:58 Will Del Genio
0 siblings, 0 replies; 3+ messages in thread
From: Will Del Genio @ 2017-02-27 22:58 UTC (permalink / raw)
To: spdk
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
Hello,
I’m currently working on testing the hotplug support for local PCIe connected NVMe drives (P3700s and 3600s at the moment) on linux. (Linux sb1 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux)
Right now spdk requires the setup script to be manually run which unbinds the nvme driver and binds the uio_pci_generic driver. Is there a way to have that happen automatically on hotplugging of an nvme device? From what I understand it could be done via script called by a udev rule.
Is that the right way to handle it? Are there any other plans for hotplug support moving forward I should be aware of?
Thanks for the help,
Will Del Genio
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2992 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SPDK] hotplug support and testing
@ 2017-02-28 0:52 Chang, Cunyin
0 siblings, 0 replies; 3+ messages in thread
From: Chang, Cunyin @ 2017-02-28 0:52 UTC (permalink / raw)
To: spdk
[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]
Hi,
We could make it automatically when one new device inserted in to the system, we could bind this device to the
uio_pci_generic driver automatically, but from the user perspective, they may not want all new nvme device added
into system driven by SPDK, they may just want to use the kernel nvme driver, so we just keep the new inserted device
driven by kernel driver, when the user want to use SPDK, they can bind the device to uio_pci_generic driver manually.
From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Will Del Genio
Sent: Tuesday, February 28, 2017 6:58 AM
To: spdk(a)lists.01.org
Subject: [SPDK] hotplug support and testing
Hello,
I’m currently working on testing the hotplug support for local PCIe connected NVMe drives (P3700s and 3600s at the moment) on linux. (Linux sb1 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux)
Right now spdk requires the setup script to be manually run which unbinds the nvme driver and binds the uio_pci_generic driver. Is there a way to have that happen automatically on hotplugging of an nvme device? From what I understand it could be done via script called by a udev rule.
Is that the right way to handle it? Are there any other plans for hotplug support moving forward I should be aware of?
Thanks for the help,
Will Del Genio
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 5003 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SPDK] hotplug support and testing
@ 2017-02-28 16:35 Walker, Benjamin
0 siblings, 0 replies; 3+ messages in thread
From: Walker, Benjamin @ 2017-02-28 16:35 UTC (permalink / raw)
To: spdk
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
On Mon, 2017-02-27 at 22:58 +0000, Will Del Genio wrote:
> Hello,
>
> I’m currently working on testing the hotplug support for local PCIe
> connected NVMe drives (P3700s and 3600s at the moment) on linux.
> (Linux sb1 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC
> 2017 x86_64 x86_64 x86_64 GNU/Linux)
>
> Right now spdk requires the setup script to be manually run which
> unbinds the nvme driver and binds the uio_pci_generic driver. Is
> there a way to have that happen automatically on hotplugging of an
> nvme device? From what I understand it could be done via script
> called by a udev rule.
You can change which devices the kernel assigns to which drivers by
writing to /sys/bus/pci/drivers/.../new_id and
/sys/bus/pci/drivers/.../remove_id. See
https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-pci
If you change NVMe devices to automatically be bound to
uio_pci_generic, then SPDK will pick them up in the next
call to spdk_nvme_probe().
>
> Is that the right way to handle it? Are there any other plans for
> hotplug support moving forward I should be aware of?
>
> Thanks for the help,
> Will Del Genio
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3274 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-28 16:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-28 16:35 [SPDK] hotplug support and testing Walker, Benjamin
-- strict thread matches above, loose matches on Subject: below --
2017-02-28 0:52 Chang, Cunyin
2017-02-27 22:58 Will Del Genio
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.