Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2014 21:41:36 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   SR-IOV Patch Series 1/7: PCI Infrastructure Refactoring
Message-ID:  <CAFMmRNz222xMV8NFRpbMEpxEk%2Bwp4LnDjt24iMAnnZBFa-zvhA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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(+)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNz222xMV8NFRpbMEpxEk%2Bwp4LnDjt24iMAnnZBFa-zvhA>