DPDK usage discussions
 help / color / mirror / Atom feed
From: Sowmini Varadhan <sowmini05@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] VF bound to vfio-pci fails pci_map_device
Date: Thu, 4 Feb 2016 19:07:37 -0500	[thread overview]
Message-ID: <CACP96tQyKRchBrugrC50zmf+AOezzO70687ZYmARRkG09z=CDw@mail.gmail.com> (raw)

I am using dpdk 2.0 on a machine with a Niantic card (3.8.13 kernel),
where I have set up the SR-IOV succesfully

But when I try to run any of the examples with the sriov-vf bound to
the vfio-pci driver, I run into errors, I think it might have to do
with some DPDK env settings that are in error.

I get:

# ./build/build/app/test-pmd/testpmd -c 0xf0 -n 4
   :
  EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd
  EAL: Error - exiting with code: 1
    Cause: Requested device 0000:90:10.0 cannot be used

Afaict, the error is happening because pci_map_device() is returning
an error, and in my case (dpdk-2.0.0) that is happening because
VFIO_PRESENT is not defined.

Questions are the following:

0. What is the BCP to get sriov/vfio-pci to play nicely with dpdk-2.0.0

1. what is the correct way to make sure VFIO_PRESENT is defined.
   Note thataI already have this:
      [root@brm-x52-01 dpdk-2.0.0]# grep VFIO build/.config
      CONFIG_RTE_EAL_VFIO=y

2. What else needs to be defined for VFIO to stick. I see that
   pci_vfio_is_enabled() checks for vfio_cfg.vfio_enabled, so any other
   instructions here?

3. My target is a test app that reflects back tcp or udp packets, and
   I see that testpmd at least does this for icmp (i.e., for ping). Can
   someone share some "BCP" command line to do this with testpmd?

--Sowmini

             reply	other threads:[~2016-02-05  0:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-05  0:07 Sowmini Varadhan [this message]
2016-02-05 16:41 ` Sergio Gonzalez Monroy
2016-02-06 16:58   ` Sowmini Varadhan
2016-02-18 20:41   ` Sowmini Varadhan

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='CACP96tQyKRchBrugrC50zmf+AOezzO70687ZYmARRkG09z=CDw@mail.gmail.com' \
    --to=sowmini05@gmail.com \
    --cc=users@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).