From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [RFC PATCH v2, part3 07/11] PCI, xen-pcifront: use new PCI interfaces to simplify implementation Date: Fri, 7 Jun 2013 10:07:06 -0700 (PDT) Message-ID: <20130607170706.GB3730@phenom.dumpdata.com> References: <1368719459-24800-1-git-send-email-jiang.liu@huawei.com> <1368719459-24800-8-git-send-email-jiang.liu@huawei.com> <20130607145024.GA16631@phenom.dumpdata.com> <20130607153822.GA24882@phenom.dumpdata.com> <51B20F57.7050100@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51B20F57.7050100@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Jiang Liu Cc: Jeremy Fitzhardinge , xen-devel@lists.xensource.com, Toshi Kani , Jiang Liu , Myron Stowe , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, "Rafael J . Wysocki" , Gu Zheng , Yijing Wang , linux-pci@vger.kernel.org, Bjorn Helgaas , Yinghai Lu List-Id: xen-devel@lists.xenproject.org On Sat, Jun 08, 2013 at 12:50:31AM +0800, Jiang Liu wrote: > On 06/07/2013 11:38 PM, Konrad Rzeszutek Wilk wrote: > > On Fri, Jun 07, 2013 at 10:50:24AM -0400, Konrad Rzeszutek Wilk wrote: > >> On Thu, May 16, 2013 at 11:50:55PM +0800, Jiang Liu wrote: > >>> Use new PCI interfaces to simplify xen-pcifront implementation: > >>> 1) Use pci_create_root_bus() instead of pci_scan_bus_parented() > >>> because pci_scan_bus_parented() is marked as __deprecated.This > >>> also gets rid of a duplicated call of pci_bus_start_devices(). > >>> 2) Use pci_stop_root_bus() and pci_remove_root_bus() instead of > >>> open-coded private implementation. > >>> 3) Use pci_set_host_bridge_release() to release data structures > >>> associated with PCI root buses. > >>> 4) Use pci_bus_get()/pci_bus_put() to manage PCI root bus reference > >>> count. > >>> > >>> This is also a preparation for coming PCI bus lock enhancement. > > > > With this patch from : > > > > Merge branch 'pci_lock_v3' of https://github.com/jiangliu/linux into testing > > > > > > it blows up when detaching the device. > Hi Konrad, > Thanks for testing! According to the log messages, this issue should > be related to pci bus reference counter management. Seems we have done > an extra(unbalanced) release of pci bus device. > Will investigate it tomorrow! That is quite commendable that you are willing to look over this on the weekend but I am not going to be able to rerun this test until some time in the week. You could enjoy the weekend and just look at this during the week.