Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-25 Thread Wei Yang
On Fri, Nov 21, 2014 at 11:04:11AM +1100, Gavin Shan wrote: >>> 2.4 The potential problem for [Patch 08/18] >>> === >>> According to the SPEC, the offset/stride will change after each >>> sriov_enable(). This means the bus/

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-20 Thread Wei Yang
On Thu, Nov 20, 2014 at 12:05:41PM -0700, Bjorn Helgaas wrote: >On Thu, Nov 20, 2014 at 03:20:57PM +0800, Wei Yang wrote: >> On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: >> >On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: >> >> From: Gavin Shan >> >> >> >> pci_dn is th

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-20 Thread Gavin Shan
On Thu, Nov 20, 2014 at 12:05:41PM -0700, Bjorn Helgaas wrote: >On Thu, Nov 20, 2014 at 03:20:57PM +0800, Wei Yang wrote: >> On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: >> >On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: >> >> From: Gavin Shan >> >> >> >> pci_dn is th

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-20 Thread Bjorn Helgaas
On Thu, Nov 20, 2014 at 03:20:57PM +0800, Wei Yang wrote: > On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: > >On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: > >> From: Gavin Shan > >> > >> pci_dn is the extension of PCI device node and it's created from > >> device node

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-19 Thread Wei Yang
On Thu, Nov 20, 2014 at 12:02:13PM +1100, Gavin Shan wrote: >On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: >>On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: >>> From: Gavin Shan >>> >>> pci_dn is the extension of PCI device node and it's created from >>> device node. Un

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-19 Thread Wei Yang
On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: >On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: >> From: Gavin Shan >> >> pci_dn is the extension of PCI device node and it's created from >> device node. Unfortunately, VFs that are enabled dynamically by >> PF's driver an

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-19 Thread Gavin Shan
On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: >On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: >> From: Gavin Shan >> >> pci_dn is the extension of PCI device node and it's created from >> device node. Unfortunately, VFs that are enabled dynamically by >> PF's driver an

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-19 Thread Bjorn Helgaas
On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: > From: Gavin Shan > > pci_dn is the extension of PCI device node and it's created from > device node. Unfortunately, VFs that are enabled dynamically by > PF's driver and they don't have corresponding device nodes, and > pci_dn. The patch

[PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-02 Thread Wei Yang
From: Gavin Shan pci_dn is the extension of PCI device node and it's created from device node. Unfortunately, VFs that are enabled dynamically by PF's driver and they don't have corresponding device nodes, and pci_dn. The patch refactors pci_dn to support VFs: * pci_dn is organized as a hiera