From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by dpdk.org (Postfix) with ESMTP id 5055695DC for ; Fri, 5 Feb 2016 01:07:38 +0100 (CET) Received: by mail-ob0-f178.google.com with SMTP id is5so74206690obc.0 for ; Thu, 04 Feb 2016 16:07:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WjCTSsKkr/4ccoIOCrn0zUTnVQFWObjFfCNFczJQcfs=; b=DQKQLRFrOpuIWaXHKN3ii3I+4Uy8u/FIMR/ozJlNS5dVtpBvNOVvRfzhUTAaztTbiR W6TF4uBS3zL/R4xMXQ9uPgck6/RkpnET9QLcjJ7lJ2zHcJ7Mz+dSxy2p3bTneYJ+KbAK P9L44eE5+RIHfsJkcIbeuMJXwVtRfVI8husUiM/dzGdUTbLD+pQCTitjGsYV8+oUjEAF 1BIqJViALeirI0IQ8McJ+lUhWAKpr3g+w0VG/PG3LWsylMKwxoAPnzdN55DQL3CH578W 8aZdehpR+aXvHpiWy/AXX3kfn3SBONgDETHknzfVhtzcsrDXkwYuIqn1jooaFbEzImpV IVsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=WjCTSsKkr/4ccoIOCrn0zUTnVQFWObjFfCNFczJQcfs=; b=H+pGrXSLHBJopfcgpc7zuXZ/odkbWKRDQN3+t0257VRaD5eMP9FfYNurskc3BDBT0J +Wu8N8I/TKl1Wrp6R91jnGNUkYsT2Wmjz+AT44cRlmNROkVAiINdvYgQb5J8l6yQ9pR0 6eddwqzHhdKH1kj+ZRdAKWXRG1+s3lv9649J+LOl8hs8ySiPIbXJyT3qjpiatUgk/ZMT xChKe5tX3hcdfq1sztSVwZx4oCD1FbkbOAB6AQqj+C8nSKE4es6BDaXaGtS0k1ch2ppA 3EjOYQnPRa98gXT4i9xYL4FtYSnYYdb/EmAfiy4UOUkSNyDWjivORylRuDuW0EFu9pcc /QGQ== X-Gm-Message-State: AG10YOQMToKlH/uuHBe55LY45LNE8CkvccVPBn/ctUwPvhDRn4SOBnTBNxsSX3NsstWLu3jYuFI2zO+3o4czKQ== MIME-Version: 1.0 X-Received: by 10.60.135.10 with SMTP id po10mr10214083oeb.56.1454630857657; Thu, 04 Feb 2016 16:07:37 -0800 (PST) Received: by 10.157.47.179 with HTTP; Thu, 4 Feb 2016 16:07:37 -0800 (PST) Date: Thu, 4 Feb 2016 19:07:37 -0500 Message-ID: From: Sowmini Varadhan To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Subject: [dpdk-users] VF bound to vfio-pci fails pci_map_device X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 00:07:38 -0000 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