Re: [PATCH] PCI: set correct value for iov device before device

2013-05-30 Thread Jiang Liu
On Fri 31 May 2013 08:54:24 AM CST, Yinghai Lu wrote: > On Thu, May 30, 2013 at 4:22 PM, Bjorn Helgaas wrote: >> On Thu, May 30, 2013 at 2:27 PM, Yinghai Lu wrote: >>> On Wed, May 29, 2013 at 11:04 PM, Yinghai Lu wrote: On Wed, May 29, 2013 at 10:45 PM, Xudong Hao wrote: > Since device

Re: [PATCH] PCI: set correct value for iov device before device

2013-05-30 Thread Yinghai Lu
On Thu, May 30, 2013 at 4:22 PM, Bjorn Helgaas wrote: > On Thu, May 30, 2013 at 2:27 PM, Yinghai Lu wrote: >> On Wed, May 29, 2013 at 11:04 PM, Yinghai Lu wrote: >>> On Wed, May 29, 2013 at 10:45 PM, Xudong Hao wrote: Since device registering is put into pci_device_add(), it must set value

Re: [PATCH] PCI: set correct value for iov device before device

2013-05-30 Thread Bjorn Helgaas
On Thu, May 30, 2013 at 2:27 PM, Yinghai Lu wrote: > On Wed, May 29, 2013 at 11:04 PM, Yinghai Lu wrote: >> On Wed, May 29, 2013 at 10:45 PM, Xudong Hao wrote: >>> Since device registering is put into pci_device_add(), it must set value of >>> Virtual Function device's member before the pci_dev

Re: [PATCH] PCI: set correct value for iov device before device

2013-05-30 Thread Yinghai Lu
On Wed, May 29, 2013 at 11:04 PM, Yinghai Lu wrote: > On Wed, May 29, 2013 at 10:45 PM, Xudong Hao wrote: >> Since device registering is put into pci_device_add(), it must set value of >> Virtual Function device's member before the pci_dev is put to device tree. Or >> some relevant subsystem of d

RE: [PATCH] PCI: set correct value for iov device before device

2013-05-29 Thread Hao, Xudong
..@vger.kernel.org; Linux Kernel Mailing List > Subject: Re: [PATCH] PCI: set correct value for iov device before device > > On Wed, May 29, 2013 at 10:45 PM, Xudong Hao > wrote: > > Since device registering is put into pci_device_add(), it must set value of > > Virtual Func

Re: [PATCH] PCI: set correct value for iov device before device

2013-05-29 Thread Yinghai Lu
On Wed, May 29, 2013 at 10:45 PM, Xudong Hao wrote: > Since device registering is put into pci_device_add(), it must set value of > Virtual Function device's member before the pci_dev is put to device tree. Or > some relevant subsystem of driver model such as xen will report a incorrect > IOV devi

Re: [PATCH] PCI: set correct value for iov device before device

2013-05-29 Thread Yijing Wang
Hi Xudong, This bug has been fixed by Jiang Liu in patch https://patchwork.kernel.org/patch/2613481/ On 2013/5/30 13:45, Xudong Hao wrote: > Since device registering is put into pci_device_add(), it must set value of > Virtual Function device's member before the pci_dev is put to device tree.

[PATCH] PCI: set correct value for iov device before device

2013-05-29 Thread Xudong Hao
Since device registering is put into pci_device_add(), it must set value of Virtual Function device's member before the pci_dev is put to device tree. Or some relevant subsystem of driver model such as xen will report a incorrect IOV device to Xen hypervior. Signed-off-by: Xudong Hao --- drivers