DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Andrew Rybchenko <arybchenko@solarflare.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	Alejandro Lucero <alejandro.lucero@netronome.com>
Subject: Re: [dpdk-dev] vfio: failed to select IOMMU type
Date: Mon, 3 Apr 2017 16:11:51 +0000	[thread overview]
Message-ID: <C6ECDF3AB251BE4894318F4E451236978220D38B@IRSMSX109.ger.corp.intel.com> (raw)
In-Reply-To: <694e35cd-8c9d-715b-9b6b-482b5c802846@solarflare.com>

> From: Andrew Rybchenko [mailto:arybchenko@solarflare.com]
> Sent: Saturday, April 1, 2017 11:47 AM
> To: dev@dpdk.org; Alejandro Lucero <alejandro.lucero@netronome.com>
> Cc: Burakov, Anatoly <anatoly.burakov@intel.com>
> Subject: vfio: failed to select IOMMU type
> 
> Hi,
> 
> after the following commit (it was picked up by dpdk-next-net recently), I
> have problems with VFIO:
> ===
> commit 94c0776b1badd1ee715d60f07391058f23494365
> Author: Alejandro Lucero <alejandro.lucero@netronome.com>
> Date:   Wed Mar 29 10:54:50 2017 +0100
> 
>      vfio: support hotplug
> 
>      Current device hotplug is just supported by UIO managed devices.
>      This patch adds same functionality with VFIO.
> 
>      It has been validated through tests using IOMMU and also with
>      VFIO and no-iommu mode.
> 
>      Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
>      Acked-by: Anatoly Burakov <anatoly.burakov@intel.com> ===
> 
> The second PCI function fails to bind:
> # testpmd -w 06:00.0 -w 06:00.1 -c 0xc -n 4  -- --rxd=512 --txd=512 --crc-strip -
> -disable-hw-vlan-filter --disable-hw-vlan-strip
> EAL: Detected 16 lcore(s)
> EAL: 2048 hugepages of size 2097152 reserved, but no mounted hugetlbfs
> found for that size
> EAL: Probing VFIO support...
> EAL: VFIO support initialized
> EAL: PCI device 0000:06:00.0 on NUMA socket 0
> EAL:   probe driver: 1924:a03 net_sfc_efx
> EAL:   using IOMMU type 1 (Type 1)
> EAL: Ignore mapping IO port bar(0) addr: 2101
> EAL: PCI device 0000:06:00.1 on NUMA socket 0
> EAL:   probe driver: 1924:a03 net_sfc_efx
> EAL:   0000:06:00.1 failed to select IOMMU type
> EAL: Requested device 0000:06:00.1 cannot be used
> EAL: Requested device 0000:7f:08.0 cannot be used
> EAL: Requested device 0000:7f:08.2 cannot be used
> EAL: Requested device 0000:7f:08.3 cannot be used ...
> 
> Also I don't understand why it spams about many other PCI functions taking
> into account that just 2 are specified in whitelist.
> 
> I've bisected to find commit when the problem appears, but has not found
> root cause yet.
> 
> Andrew.

Hi Andrew,

It would be interesting to know what was wrong there. The whitelist issue is surprising, and from the logs it seems like EAL is trying to set up DMA mappings multiple times. Posting a more detailed log would be very helpful in tracking down the issue as well. I have tested that code with ixgbe devices, so I'm not too sure what can go wrong there.

Thanks,
Anatoly

  reply	other threads:[~2017-04-03 16:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-01 10:46 Andrew Rybchenko
2017-04-03 16:11 ` Burakov, Anatoly [this message]
2017-04-04 15:29   ` Andrew Rybchenko
2017-04-04 15:52     ` Burakov, Anatoly
2017-04-04 16:10       ` Andrew Rybchenko
2017-04-04 16:20         ` Burakov, Anatoly
2017-04-05  7:15           ` Alejandro Lucero
2017-04-05  7:12       ` Alejandro Lucero
2017-04-06  9:10         ` Burakov, Anatoly
2017-04-18 11:22           ` Alejandro Lucero
2017-04-24  9:09             ` Burakov, Anatoly

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=C6ECDF3AB251BE4894318F4E451236978220D38B@IRSMSX109.ger.corp.intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=alejandro.lucero@netronome.com \
    --cc=arybchenko@solarflare.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).