DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: "Richardson, Bruce" <bruce.richardson@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] vfio detection
Date: Tue, 17 Jun 2014 08:40:00 +0000	[thread overview]
Message-ID: <C6ECDF3AB251BE4894318F4E451236976CC9C5FA@IRSMSX101.ger.corp.intel.com> (raw)
In-Reply-To: <59AF69C657FD0841A61C55336867B5B01AA36B6E@IRSMSX103.ger.corp.intel.com>

Hi Bruce,

> I have a number of NIC ports which were working correctly yesterday and are
> bound correctly to the igb_uio driver - and I want to keep using them
> through the igb_uio driver for now, not vfio. However, whenever I run a
> dpdk application today, I find that the vfio kernel module is getting loaded
> each time - even after I manually remove it, and verify that it has been
> removed by checking lsmod. Is this expected? If so, why are we loading the
> vfio driver when I just want to continue using igb_uio which works fine?

Can you elaborate a bit on what do you mean by "loading vfio driver"? Do you mean the vfio-pci kernel gets loaded by DPDK? I certainly didn't put in any code that would automatically load that driver, and certainly not binding devices to it.

> Secondly, then, when testpmd or any other app loads, it automatically tries
> to map the NIC using vfio and then aborts on the very first NIC port when it
> fails to do so.

This shouldn't happen, unless you have a device bound to VFIO and have another device in the same IOMMU group that is bound to something else. Can you provide a log of what you are seeing?

> This a) prevents the port from being mapped using igb_uio, and
> b) for ports which are meant to stay under linux control, forces me to start
> enumerating ports using blacklist or whitelisting, rather than having things
> "just work" on a properly configured system as before, i.e. if a port is bound
> to igb_uio or vfio it is used, if not bound, it is ignored. Again, is this by design
> and expected, because it seems a major regression in usability?

I think automatic port unbinding and binding was removed, so this again shouldn't happen at all.

It would be useful to have logs for all of these described situations, because we certainly didn't encounter any of that during the validation cycle.

Best regards,
Anatoly Burakov
DPDK SW Engineer


 

  reply	other threads:[~2014-06-17  8:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-16 22:24 Richardson, Bruce
2014-06-17  8:40 ` Burakov, Anatoly [this message]
2014-06-17 16:28   ` Richardson, Bruce
2014-06-17 16:36     ` Thomas Monjalon
2014-06-17 16:38       ` Richardson, Bruce
2014-06-17 16:38     ` Richardson, Bruce
2014-06-17 17:41       ` Neil Horman
2014-06-17 17:45         ` Richardson, Bruce
2014-06-17 18:43           ` Neil Horman
2014-06-18 11:01     ` Burakov, Anatoly
2014-06-18 16:18       ` Richardson, Bruce

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=C6ECDF3AB251BE4894318F4E451236976CC9C5FA@IRSMSX101.ger.corp.intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).