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

看板FB_hackers作者時間11年前 (2014/05/27 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
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(+) _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1JW_7Vfj (FB_hackers)
文章代碼(AID): #1JW_7Vfj (FB_hackers)