From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory Etelson Subject: Re: i40e igb_uio: reset pci on process exit Date: Mon, 29 May 2017 14:21:01 +0300 Message-ID: <1748341.rbpcFmWp0q@polaris> References: <106841857.Z7q1jSDIte@polaris> <2463262.6ozr8bnjWv@polaris> <20170529110141.GB28265@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Stephen Hemminger , dev@dpdk.org, Ferruh Yigit , Qi Zhang , Wenzhuo Lu To: Shijith Thotton Return-path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id CB05E7CD6 for ; Mon, 29 May 2017 13:21:03 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id b84so52019533wmh.0 for ; Mon, 29 May 2017 04:21:03 -0700 (PDT) In-Reply-To: <20170529110141.GB28265@localhost.localdomain> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" PMD already resets PCI during initialization. In my patch, exiting process forced to release it's resources On Monday, 29 May 2017 14:01:48 IDT Shijith Thotton wrote: > On Mon, May 29, 2017 at 01:01:06PM +0300, Gregory Etelson wrote: > > I still have to support Red Hat 6.x. These system do not have VFIO > > > > IGB_UIO is the only option there. > > > > Also, there was a discussion that claimed IGB_UIO has better performance > > than VFIO. > > > > http://dpdk.org/ml/archives/dev/2014-August/004609.html > > > > Regards, > > Gregory > > > > [..] > >> static int > >> igbuio_pci_open(struct uio_info *info, struct inode *inode) > >> { > >> struct rte_uio_pci_dev *udev = info->priv; > >> struct pci_dev *dev = udev->pdev; > >> > >> return pci_reset_function(dev); > >> } > >> > >> and.. > >> udev->info.open = igbuio_pci_open; > >> > > I was suggesting to make reset part of open. It should work on your setup. > > - udev->info.release = igbuio_pci_release; > + udev->info.open = igbuio_pci_open; > > Shijith >