All of lore.kernel.org
 help / color / mirror / Atom feed
From: Walker, Benjamin <benjamin.walker at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] "Requested device XXX cannot be used" warning in device detach procedure may be misleading
Date: Mon, 13 Mar 2017 16:10:54 +0000	[thread overview]
Message-ID: <1489421452.12574.5.camel@intel.com> (raw)
In-Reply-To: 8b74f6ae-5d34-3934-06d2-f30ed72159e4@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]

On Mon, 2017-03-13 at 12:28 +0800, Freeman Zhang wrote:
> Hi
> 
> On 3/13/17 12:03 PM, Chang, Cunyin wrote:
> > 
> > Actually, the error message caused by the function
> > spdk_pci_device_detach(), after we detach the device, we try to
> > call the function
> > rte_eal_pci_probe_one(), but we do not have callback function for
> > the dpdk nvme driver at this point, so the error message show up, 
> > but  this function will add the device back to dpdk pci device
> > list, then we could probe the device next time when
> > we want to use it again. So it has no adverse effects but just one
> > error message, but we still trying to fix it now.
> > 
> 
> Thanks for your reply!
> 
> I've noticed it and that is why I think it's kind of misleading. So I
> guess we should not focus only on reusing codes but also making it
> clearer for both users and developers.

The problem is that DPDK is not exposing a public API to do the
operation we need to do (unload a driver but not remove it entirely
from the list of PCI devices). We're working with the DPDK team to add
a public API to do that while also investigating better ways to work
around the issue that don't leave us with this confusing error message.

> 
> 
> All the best!
> Freeman
> 
> _______________________________________________
> 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 --]

             reply	other threads:[~2017-03-13 16:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-13 16:10 Walker, Benjamin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-03-13  4:28 [SPDK] "Requested device XXX cannot be used" warning in device detach procedure may be misleading Freeman Zhang
2017-03-13  4:03 Chang, Cunyin
2017-03-12  3:43 Freeman Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489421452.12574.5.camel@intel.com \
    --to=spdk@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.