DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Andre Richter <andre.o.richter@gmail.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] VFIO in setup.sh
Date: Tue, 31 Mar 2015 12:59:31 +0000	[thread overview]
Message-ID: <C6ECDF3AB251BE4894318F4E4512369780C7B62E@IRSMSX109.ger.corp.intel.com> (raw)
In-Reply-To: <CAKqeN2_BwrH8YE0fzzuynN9DpdCxMBBG0zC3iAe8V7b6Q6a75Q@mail.gmail.com>

> iommu groups already exist before vfio-pci is loaded.
> The whole setup process as described in the VFIO documentation, where a
> PCIe device shares an iommu group with other devices, can therefore be
> automated. Some time ago I wrote a ruby script that does exactly that
> (https://github.com/andre-richter/rVFIO/blob/master/example/pci-
> bind.rb).
> Porting it to bash should be no problem.

Makes sense to me. Maybe we could output a warning if not all devices in a group were bound to vfio-pci (and possibly list all devices that aren't bound)? IMO, the right place for such a warning would probably be dpdk_nic_bind.py though, not setup.sh.

> However, the question is if dpdk needs to cover this (corner?) case.
> I would assume that the bulk of dpdk use-cases deals with scenarios where
> the targeted NIC is the only one in its iommu group, because it is a high-
> speed NIC that is connected to a CPU-integrated PCIe-Port.
> A NIC sharing an iommu group with other devices would be most likely if it is
> behind a bridge, aka a chipset-integrated NIC or a NIC that resides in a PCIe-
> Slot that connects to the chipset. This is more common in desktop machines
> than in server grade machines.

If no other devices need to be unbound, no warnings, and no harm done :)

Thanks,
Anatoly

      reply	other threads:[~2015-03-31 13:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30 20:35 Stephen Hemminger
2015-03-30 20:37 ` Stephen Hemminger
2015-03-31  9:05   ` Burakov, Anatoly
2015-03-31  9:26     ` Andre Richter
2015-03-31  9:35       ` Burakov, Anatoly
2015-03-31 12:41         ` Andre Richter
2015-03-31 12:59           ` Burakov, Anatoly [this message]

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=C6ECDF3AB251BE4894318F4E4512369780C7B62E@IRSMSX109.ger.corp.intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=andre.o.richter@gmail.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).