From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory Etelson Subject: Re: [PATCH] igb_uio: remove device reset in open Date: Fri, 20 Oct 2017 22:01:41 +0300 Message-ID: <3835922.kUIWXBeaEf@polaris> References: <20171020165511.47899-1-ferruh.yigit@intel.com> <44560a31-d8dc-b2e1-1589-95020fb654f3@intel.com> Reply-To: gregory@weka.io Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Jingjing Wu , Shijith Thotton , Harish Patil , Thomas Monjalon , dev@dpdk.org, stable@dpdk.org, Jianfeng Tan , George Prekas , Sergio Gonzalez Monroy To: Ferruh Yigit Return-path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 69B881B24D for ; Fri, 20 Oct 2017 21:01:44 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id q42so12141815wrb.7 for ; Fri, 20 Oct 2017 12:01:44 -0700 (PDT) In-Reply-To: <44560a31-d8dc-b2e1-1589-95020fb654f3@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Friday, 20 October 2017 19:57:38 IDT Ferruh Yigit wrote: > On 10/20/2017 9:55 AM, Ferruh Yigit wrote: > > Remove device reset during application start, the reset for application > > exit still there. > > > > Reset in open removed because of following comments: > > 1- Device reset not completed when VF driver loaded, which cause VF PMD > > > > initialization error. > > Adding delay can solve the issue but will increase driver load time. > > > > 2- Reset will be issues all devices unconditionally, not very efficient > > > > way. > > > > Fixes: b58eedfc7dd5 ("igb_uio: issue FLR during open and release of device > > file") Cc: stable@dpdk.org > > > > Signed-off-by: Ferruh Yigit > > Hi Jingjing, Shijith, Gregory, Harish, > > Can you please test this on top of current master (which has already > Jingjin's fix) ? > > Thanks, > ferruh > sure. > > --- > > Cc: Jianfeng Tan > > Cc: Jingjing Wu > > Cc: Shijith Thotton > > Cc: Gregory Etelson > > Cc: Harish Patil > > Cc: George Prekas > > Cc: Sergio Gonzalez Monroy > > --- > > > > lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c > > b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index f7ef82554..fd320d87d > > 100644 > > --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c > > +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c > > @@ -336,8 +336,6 @@ igbuio_pci_open(struct uio_info *info, struct inode > > *inode)> > > struct pci_dev *dev = udev->pdev; > > int err; > > > > - pci_reset_function(dev); > > - > > > > /* set bus master, which was cleared by the reset function */ > > pci_set_master(dev);