Re: [PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread Raslan, KarimAllah
On Wed, 2019-06-12 at 12:03 -0700, Raj, Ashok wrote: > On Wed, Jun 12, 2019 at 12:58:17PM -0600, Alex Williamson wrote: > > > > On Wed, 12 Jun 2019 11:41:36 -0700 > > sathyanarayanan kuppuswamy > > wrote: > > > > > > > > On 6/12/19 11:19 AM, Alex Williamson wrote: > > > > > > > > On Wed, 12 Ju

Re: [PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread Alex Williamson
On Wed, 12 Jun 2019 12:03:03 -0700 "Raj, Ashok" wrote: > On Wed, Jun 12, 2019 at 12:58:17PM -0600, Alex Williamson wrote: > > On Wed, 12 Jun 2019 11:41:36 -0700 > > sathyanarayanan kuppuswamy > > wrote: > > > > > On 6/12/19 11:19 AM, Alex Williamson wrote: > > > > On Wed, 12 Jun 2019 10:06:

Re: [PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread Raj, Ashok
On Wed, Jun 12, 2019 at 12:58:17PM -0600, Alex Williamson wrote: > On Wed, 12 Jun 2019 11:41:36 -0700 > sathyanarayanan kuppuswamy > wrote: > > > On 6/12/19 11:19 AM, Alex Williamson wrote: > > > On Wed, 12 Jun 2019 10:06:47 -0700 > > > sathyanarayanan.kuppusw...@linux.intel.com wrote: > > > >

Re: [PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread Alex Williamson
On Wed, 12 Jun 2019 11:41:36 -0700 sathyanarayanan kuppuswamy wrote: > On 6/12/19 11:19 AM, Alex Williamson wrote: > > On Wed, 12 Jun 2019 10:06:47 -0700 > > sathyanarayanan.kuppusw...@linux.intel.com wrote: > > > >> From: Kuppuswamy Sathyanarayanan > >> > >> > >> Commit 975bb8b4dc93 ("PCI/IO

Re: [PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread sathyanarayanan kuppuswamy
On 6/12/19 11:19 AM, Alex Williamson wrote: On Wed, 12 Jun 2019 10:06:47 -0700 sathyanarayanan.kuppusw...@linux.intel.com wrote: From: Kuppuswamy Sathyanarayanan Commit 975bb8b4dc93 ("PCI/IOV: Use VF0 cached config space size for other VFs") calculates and caches the cfg_size for VF0 device

Re: [PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread Alex Williamson
On Wed, 12 Jun 2019 10:06:47 -0700 sathyanarayanan.kuppusw...@linux.intel.com wrote: > From: Kuppuswamy Sathyanarayanan > > Commit 975bb8b4dc93 ("PCI/IOV: Use VF0 cached config space size for > other VFs") calculates and caches the cfg_size for VF0 device before > initializing the pcie_cap of th

Re: [PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread Myron Stowe
This looks to basically be a duplicate of what Alex Williamson posted 8 days ago: https://lore.kernel.org/linux-pci/20190604143617.0a226...@x1.home/ Alex says Hao Zheng had a similar patch as well. On Wed, Jun 12, 2019 at 12:08 PM wrote: > > From: Kuppuswamy Sathyanarayanan > > Commit 975bb8b4dc

[PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Commit 975bb8b4dc93 ("PCI/IOV: Use VF0 cached config space size for other VFs") calculates and caches the cfg_size for VF0 device before initializing the pcie_cap of the device which results in using incorrect cfg_size for all VF devices > 0. So set pcie_cap of th