From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by dpdk.org (Postfix) with ESMTP id 88E342A1A for ; Thu, 17 Sep 2015 11:35:51 +0200 (CEST) Received: by lanb10 with SMTP id b10so7490988lan.3 for ; Thu, 17 Sep 2015 02:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=j6El9h8bWZb/E7zZspnayNWpK9caKJOB7buoHMWRc7g=; b=QeRvpS1yGUDLfLE11K1oNNDv1t7n5+Pfq2Wwx8IXNBKLz7BEOGi6e7u/DRhDssASdf rO+IfsIQcU0ph3g8L6BIKp03QTEx75JgBs6BxeFiCn0IadjFHO29SRKnfYcER2ytn7u4 Rixhrc65Nnt2HcFARrLlNjA7Ackc6WzG1KN4yebXlbeVBVAoDDXymhzT92xeLuABIkiy PG6NzKX/l1SR4JhsApJ5y20rOP1LqfK32u8sn/nEchxtXY3w7V9uslcaYGEfa88TG+jp Jh3/wSbVxpViYhIs9kRC/c19T0l9U5HN65+gNJ4dV/oKfFKkzZDVlz92L+mw32FPaBhG g9jQ== MIME-Version: 1.0 X-Received: by 10.152.3.136 with SMTP id c8mr27825594lac.7.1442482551127; Thu, 17 Sep 2015 02:35:51 -0700 (PDT) Received: by 10.25.216.202 with HTTP; Thu, 17 Sep 2015 02:35:51 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Sep 2015 11:35:51 +0200 Message-ID: From: Jesper Wramberg To: "Van Haaren, Harry" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] X520 virtual functions worked in 2.0 but fails in 2.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2015 09:35:51 -0000 Hey there, Thanks for your help. I checked the eth_ixgbevf_dev_init() function against DPDK 2.0 but did think about changes in the eth_ixgbe_dev_init() function. Anyway, I have just been using 2.0 for now but it's nice to know I wasn't doing anything wrong :-) Regards, Jesper Wramberg 2015-09-16 13:27 GMT+02:00 Van Haaren, Harry : > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jesper Wramberg > > Hi all, > > Hi Jesper, > > > I got a Dell PowerEdge R630 with an X520 NIC. I want to set up two VFs > that > > use the first port on the NIC. I've done the following: > > Your process is correct - nothing wrong here. > > > EAL: PCI device 0000:03:10.0 on NUMA socket 0 > > EAL: probe driver: 8086:10ed rte_ixgbevf_pmd > > EAL: PCI memory mapped at 0x7f08c0108000 > > EAL: PCI memory mapped at 0x7f08c010c000 > > PMD: eth_ixgbevf_dev_init(): >> > > PMD: ixgbevf_intr_disable(): >> > > PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -100 > > PMD: rte_eth_dev_init: driver rte_ixgbevf_pmd: > > eth_dev_init(vendor_id=0x32902 device_id=0x10ed) failed > > EAL: Error - exiting with code: 1 > > Cause: Requested device 0000:03:10.0 cannot be used > > This is a recently-discovered regression from commit > 0eb609239efdb52a1cea5abca5e3316052071d81 in the ixgbe driver - a fix is in > progress. > > The code in the diff below[1] of the above commit is the offender, > And adding the code back in solves the immediate problem here. > > If this temporary fix doesn't work, please let me know. > Cheers, -Harry > > [1] Snipped of diff that breaks DPDK PF / VF mailbox handling: > @@ -1000,12 +1038,6 @@ eth_ixgbe_dev_init(struct rte_eth_dev *eth_dev) > eth_dev->data->port_id, pci_dev->id.vendor_id, > pci_dev->id.device_id); > > - rte_intr_callback_register(&(pci_dev->intr_handle), > - ixgbe_dev_interrupt_handler, (void *)eth_dev); > - > - /* enable uio intr after callback register */ > - rte_intr_enable(&(pci_dev->intr_handle)); > - > /* enable support intr */ > ixgbe_enable_intr(eth_dev); >