All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] PCI/IOV: fix on offset/stride based on NumVFs change
@ 2014-12-22  5:48 Wei Yang
  2014-12-22  5:48 ` [PATCH 1/2] PCI: Refresh offset/stride after NumVFs is written Wei Yang
  2014-12-22  5:48 ` [PATCH 2/2] PCI: Calculate the VF bus range on each possible NumVFs Wei Yang
  0 siblings, 2 replies; 5+ messages in thread
From: Wei Yang @ 2014-12-22  5:48 UTC (permalink / raw)
  To: bhelgaas, gwshan; +Cc: linux-pci, Wei Yang

Per SRIOV SPEC sec 3.3.9, 3.3.10, offset/stride may change when NumVFs is
written. While current kernel doesn't update offset/stride with the change of
NumVFs.

This property will also affect the iov bus range in enumeration.

This patch set consists of two patches:
1. Update the offset/stride with NumVFs change
2. Calculate VF bus range on each possilbe NumVFs

Code based on 3.19-rc1 and tested on x86 and powernv platform.
Bus range doesn't chage on current hardware.

Wei Yang (2):
  PCI: Refresh offset/stride after NumVFs is written
  PCI: Calculate the VF bus range on each possible NumVFs

 drivers/pci/iov.c |   54 +++++++++++++++++++++++++++++++++++++++++++++--------
 drivers/pci/pci.h |    1 +
 2 files changed, 47 insertions(+), 8 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-22  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-22  5:48 [PATCH 0/2] PCI/IOV: fix on offset/stride based on NumVFs change Wei Yang
2014-12-22  5:48 ` [PATCH 1/2] PCI: Refresh offset/stride after NumVFs is written Wei Yang
2014-12-22  5:48 ` [PATCH 2/2] PCI: Calculate the VF bus range on each possible NumVFs Wei Yang
2015-01-21 22:54   ` Bjorn Helgaas
2015-01-22  9:42     ` Wei Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.