From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Rybchenko Subject: vfio: failed to select IOMMU type Date: Sat, 1 Apr 2017 13:46:45 +0300 Message-ID: <694e35cd-8c9d-715b-9b6b-482b5c802846@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: Anatoly Burakov To: "dev@dpdk.org" , Alejandro Lucero Return-path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id AD87B2BDF for ; Sat, 1 Apr 2017 12:47:01 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, after the following commit (it was picked up by dpdk-next-net recently), I have problems with VFIO: === commit 94c0776b1badd1ee715d60f07391058f23494365 Author: Alejandro Lucero 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 Acked-by: Anatoly Burakov === 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.