From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1C207A0577 for ; Tue, 14 Apr 2020 10:41:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1AAF61C28F; Tue, 14 Apr 2020 10:41:21 +0200 (CEST) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id 35E481C0C6 for ; Tue, 14 Apr 2020 08:31:29 +0200 (CEST) Received: by mail-lf1-f66.google.com with SMTP id 198so8463289lfo.7 for ; Mon, 13 Apr 2020 23:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whitestack-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=nhZfs8xue9fUY6sTk3nRDb3tfRzd2VWGwdkfO7ZAmMA=; b=GRtmDG+m4Frb6ITPtrQKWtQl9ZVjdGGVuxHxFOBs71g/FkX3b01o+EvIKkyIu6hLSk bNV5BytQsWmH2dNLQScgzaRXW7QYzzsWe+Rfr0Oot8sy+c/5hVEr27kMP7rlmPkMjq3d ZdqQEM4DjP9KkgdNQKWifWTL5HMpBGyT+pQtTx52FKRU0wMn1QU0lfOJInVlc0/jNtzg Ffg0MBIRrL0guhKOfRH+VsutLBA17+RTqcVR0UOj3ywc29Mf6N362PDow+jO4JUuhyO1 ZklH5CxNtq+fkgCqepsFjpAhn1hZtAn6XipqFrtjRWllVGqhFe2ceIyn+UNilxuTP0wL lG8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nhZfs8xue9fUY6sTk3nRDb3tfRzd2VWGwdkfO7ZAmMA=; b=NaTCdbDnw6IuGXxzRGd3CObORw5hpGJq1B2Bqm2vOGR4JtNIUjjCtasTOMZ0MJkCWN MqSsewPyXbO7rLoAakxUBa+keSxCZMd4N59e7Jl/IWW8ckYouqu4QZmbuzSS0cDycXKt CTpNqoud7id6Jmll/7ELMqGmjgJWPorFN/pbr8NsasTPQ5kW+zhPDR7S1B3iafd+tBJA QU+4QlC0wVOm/aJ4cqRL2oep3nsPGFlXOYQGkg+TLFoTVAdXpSsK8Zbfm8ZwJ3iTiE8e LNRjPPIlhtL5OC+ZMxGJbhrIgcVJBeuM8UR11t7rNZoFdmusdwfCud0Td5FkRpavb7Qq R9Yw== X-Gm-Message-State: AGi0PuZ+/gDtQriSa71PEb2d5G91RZ35qC+GgvfnYWo3ifec0gG2iRSy LYs/PEFQ1piDfHBY3lQNxMBYh13WHNYz625DA6OV12VGAUA= X-Google-Smtp-Source: APiQypL8IIZLnfnrvDd6QXzuK+2jfenUMffUknSN+VaUTaxLuS7oMysm3236X1xDO4Ac5B5R9eGRBpl385WIwVK8rmo= X-Received: by 2002:a05:6512:54e:: with SMTP id h14mr12618171lfl.56.1586845888042; Mon, 13 Apr 2020 23:31:28 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?Sm9zw6kgTWlndWVsIEd1em3DoW4=?= Date: Tue, 14 Apr 2020 02:31:17 -0400 Message-ID: To: users@dpdk.org X-Mailman-Approved-At: Tue, 14 Apr 2020 10:41:17 +0200 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Binding X722 in Ubuntu X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi I am trying to bind Intel X722 NICs, but it is not working in Ubuntu 18.04 *root@hyper02:~# ./dpdk-devbind.py -s* Network devices using DPDK-compatible driver ============================================ Network devices using kernel driver =================================== 0000:1c:00.0 'Ethernet Controller 10G X550T' if=eno1 drv=ixgbe unused=vfio-pci 0000:1c:00.1 'Ethernet Controller 10G X550T' if=eno2 drv=ixgbe unused=vfio-pci 0000:60:00.0 'Ethernet Connection X722 for 10GbE SFP+' if=enp96s0f0 drv=i40e unused=vfio-pci 0000:60:00.1 'Ethernet Connection X722 for 10GbE SFP+' if=enp96s0f1 drv=i40e unused=vfio-pci . . . . *root@hyper02:~# ./dpdk-devbind.py -b vfio-pci 0000:60:00.0 *Error: bind failed for 0000:60:00.0 - Cannot bind to driver vfio-pci Error: unbind failed for 0000:60:00.0 - Cannot open /sys/bus/pci/drivers//unbind What am I missing? *root@hyper02:~# uname -a* Linux hyper02 5.0.0-44-generic #48~18.04.1-Ubuntu SMP Wed Mar 18 09:11:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux *root@hyper02:~# cat /proc/cmdline *BOOT_IMAGE=/vmlinuz-5.0.0-44-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro default_hugepagesz=2M hugepagesz=2M hugepages=53248 transparent_hugepage=never iommu=pt intel_iommu=on isolcpus=16,17,34,35,52,53,70,71 *root@hyper02:~# modinfo vfio_pci* filename: /lib/modules/5.0.0-44-generic/kernel/drivers/vfio/pci/vfio-pci.ko description: VFIO PCI - User Level meta-driver author: Alex Williamson license: GPL v2 version: 0.2 srcversion: 96BFF0777823471DD68104B depends: vfio,irqbypass,vfio_virqfd retpoline: Y intree: Y name: vfio_pci vermagic: 5.0.0-44-generic SMP mod_unload signat: PKCS#7 signer: sig_key: sig_hashalgo: md4 parm: ids:Initia # cat /proc/cmdline BOOT_IMAGE=/vmlinuz-5.0.0-44-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro default_hugepagesz=2M hugepagesz=2M hugepages=53248 transparent_hugepage=never iommu=pt intel_iommu=on isolcpus=16,17,34,35,52,53,70,71 l PCI IDs to add to the vfio driver, format is "vendor:device[:subvendor[:subdevice[:class[:class_mask]]]]" and multiple comma separated entries can be specified (string) parm: nointxmask:Disable support for PCI 2.3 style INTx masking. If this resolves problems for specific devices, report lspci -vvvxxx to linux-pci@vger.kernel.org so the device can be fixed automatically via the broken_intx_masking flag. (bool) parm: disable_vga:Disable VGA resource access through vfio-pci (bool) parm: disable_idle_d3:Disable using the PCI D3 low power state for idle, unused devices (bool) *lspci -v* 60:00.0 Ethernet controller: Intel Corporation Ethernet Connection X722 for 10GbE SFP+ (rev 04) Subsystem: Intel Corporation Ethernet Network Adapter X722-2 Flags: fast devsel, IRQ 36, NUMA node 0 Memory at ba000000 (64-bit, prefetchable) [size=16M] Memory at bc008000 (64-bit, prefetchable) [size=32K] Expansion ROM at bc280000 [disabled] [size=512K] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+ Capabilities: [70] MSI-X: Enable- Count=129 Masked- Capabilities: [a0] Express Endpoint, MSI 00 Capabilities: [e0] Vital Product Data Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number d8-b3-8e-ff-ff-1e-f2-f8 Capabilities: [150] Alternative Routing-ID Interpretation (ARI) Capabilities: [160] Single Root I/O Virtualization (SR-IOV) Capabilities: [1a0] Transaction Processing Hints Capabilities: [1b0] Access Control Services Kernel modules: i40e Thanks a lot JM