SR-IOV Patch Series 1/7: PCI Infrastructure Refactoring

Ryan Stone rysto32 at gmail.com
Tue May 27 01:41:38 UTC 2014


This set of patches refactors the PCI infrastructure a bit to offer
some new APIs that the SR-IOV infrastructure will consume.  The
intention is that these refactorings should be no-ops for the existing
APIs.

http://people.freebsd.org/~rstone/patches/iov/0001-Refactor-PCI-device-creation.patch
[PATCH 01/21] Refactor PCI device creation

Refactor creation of PCI devices into helper methods that can be
used by the VF creation code.
---
 sys/dev/pci/pci.c | 153 ++++++++++++++++++++++++++++++------------------------
 1 file changed, 86 insertions(+), 67 deletions(-)

http://people.freebsd.org/~rstone/patches/iov/0002-Refactor-PCI-resource-allocation.patch
[PATCH 02/21] Refactor PCI resource allocation

Refactor PCI resource allocation code to allow a request for a
memory-mapped I/O window that is a multiple of a requested size.
This is needed by the SR-IOV code because the VF BARs are all
allocated contiguously.  We can't just allocate a resource that is
a multiple of a single VF BAR because the size of an allocation
implies its alignment requirement.
---
 sys/dev/pci/pci.c         | 45 +++++++++++++++++++++++++++++----------------
 sys/dev/pci/pci_private.h | 10 ++++++++++
 2 files changed, 39 insertions(+), 16 deletions(-)

http://people.freebsd.org/~rstone/patches/iov/0003-Add-some-pcib-methods-to-get-ARI-related-information.patch
[PATCH 03/21] Add some pcib methods to get ARI-related information

---
 sys/dev/pci/pci_pci.c      | 33 +++++++++++++++++++++++++++++++++
 sys/dev/pci/pcib_if.m      | 25 +++++++++++++++++++++++++
 sys/dev/pci/pcib_private.h |  2 ++
 sys/dev/pci/pcib_support.c | 10 ++++++++++
 sys/dev/pci/pcireg.h       |  4 ++++
 5 files changed, 74 insertions(+)


More information about the freebsd-hackers mailing list