Introduce Intel FPGA BUS
Status from this message: Applied, thanks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v12 Latest3 patches 3 repliesApplied
- v113 patches 0 repliesSuperseded
- v103 patches 23 repliesSuperseded
Earlier versions · 9
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v9 | 4 patches | 5 replies | Superseded | |
| v8 | 5 patches | 2 replies | Superseded | |
| v7 | 5 patches | 7 replies | Superseded | |
| v6 | 5 patches | 11 replies | Superseded | |
| v5 | 3 patches | 6 replies | Superseded | |
| v4 | 3 patches | 6 replies | Superseded | |
| v3 | 6 patches | 18 replies | Superseded | |
| v2 | 5 patches | 13 replies | Superseded | |
| v1 | 5 patches | 1 reply | Superseded |
Patches in v12 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bus/ifpga: Add Intel FPGA BUS LibraryMAINTAINERS config/ doc/ +11 more | +818 | 0 replies | |
| 2/3 | iFPGA: Add Intel FPGA OPAE Share CodeMAINTAINERS drivers/ drivers/ +26 more | +7903 | 0 replies | |
| 3/3 | iFPGA: Add Intel FPGA BUS Rawdev DriverMAINTAINERS config/ doc/ +10 more | +845 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Shreyansh Jain | Qi Zhang |
|---|---|---|
| Series | R-b | |
| 1/3 | ||
| 2/3 | ||
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v12 0/3] Introduce Intel FPGA BUS
From: "Xu, Rosen" <[email protected]>
Intel FPGA BUS in DPDK
-------------------------
This patch set introduces Intel FPGA BUS support in DPDK.
v12 updates:
===========
- Remove redundancy data struct ifpga_dev
So all afu_dev list togeter.
- Fix comments from Jingjing Wu and Qi Zhang
- Fix compile issue in BSD flatform
- Take more test in IA platform
v11 updates:
===========
- To improve PR speed OPAE Share Code involved AVX-512, but AVX-512 is not available in all IA platforms, besides this, after we have test several times, using AVX-512 only improve 1 ms.
So this patch we don't use it.
- Fix comments of patch 1 of Jingjing Wu and Qi Zhang.
- Updated configurations parameters form net_ifpga_cfg to ifpga_rawdev_cfg
v10 updates:
===========
- Add prefix rte_ for exported symbols
- Fix alphabetical order error
- Fix share code title well underlined comments
- Squash the release notes parts in relevant patches
- Update the MAINTAINERS file in patches 1, 2 and 3
v9 updates:
==========
- Rebase ifpga_rawdev on QDMA and CMDIF driver
- Split and squash the patch 4(v8 patch) into patch 2 and patch 3
v8 updates:
==========
- Fix some comments from Shreyansh Jain
- Patch 3 and Patch 5 will continue rebase when qcom patches merging into mainline
- add Shreyansh Jain's Acked-by
v7 updates:
==========
- Fix some comments from DPDK community
- Fix the CLANG compile error
- Fix the meson build warring.
v6 updates:
===========
- Add documentation
- Add meson build script
- Split new patch for OPAE share code
v5 updates:
===========
- Fixed SHARED LIB Build issue
- Changed command name to IFPGA Rawdev name,
so remove pci library datastruct and function.
- Fixed PATCH v2/v3/v4 comments
v4 updates:
===========
- Remove all modifications from eal
- Create vdev to take IFPGA parameters configuration
- AFU Device Driver bind to AFU Device by uuid
- Take more test in scenario of Multi-FPGA System
v3 updates:
===========
- Remove all modifications of bus scan and probe
- FPGA BUS Scan is trigged by hotplug of Rawdev
- Took Modifications of comments
- Move AFU Device to IFPGA
- FPGA BUS Scan depend on it's IFPGA Rawdev
- Add Build Macros for FPGA BUS and IFPGA Rawdev
Questions
=========
Why not PCI Bus?
All of the AFUs of one FPGA may share same PCI BDF. Why not vdev Bus?
Because AFUs depend on Rawdev, and it's hardware specpic.
Motivation
==========
FPGA is used more and more widely in Cloud and NFV, one primary reason is that FPGA not only provide ASIC performance but also it's more flexible than ASIC. FPGA use Partial Reconfigure(PR) Parts of Bitstream to achieve its flexibility. Another reason is that one FPGA can be shared by different Users, and each User can use some of AFUs of One FPGA.
That means One FPGA Device Bitstream is divided into many Parts of Bitstream(each Part of Bitstream is defined as AFU-Accelerated Function Unit), and each AFU is a Hardware Acceleration Unit and it can dynamically Reload respectively.
Proposed Solution
=================
- Involve Rawdev to take FPGA Partial Configuration(Download/PR)
- Defined FPGA-BUS for Acceleration Drivers of AFUs
- FPGA PCI Scan(1st Scan) follows DPDK UIO/VFIO PCI Scan Process, probe Intel FPGA Rawdev Driver. FPGA-BUS scan is called, but AFU depend on Rawdev, so this scan doesn't trig AFU device create.
- AFU Scan(2nd Scan) bind DPDK Driver to FPGA Partial-Bitstream. This scan is trigged by hotplug of IFPGA Rawdev probe, in this scan the AFUs will be created and their dirves are also probed.
Scope
=====
The Intel FPGA BUS implementation is target towards various FPGA Devices use PR to provide many Acceleration Function. Specific PMDs may also bind to its AFU. And Applications don't care they are using ASIC Acceleration or FPGA AFU Acceleration.
Status
=====
With integrating Intel PSG FPGA Software Stack OPAE(Open Programmable Acceleration Engine) Share Code, Intel FPGA BUS runs well in Intel PSG FPGA Cards.
Rosen Xu (2):
bus/ifpga: Add Intel FPGA BUS Library
iFPGA: Add Intel FPGA BUS Rawdev Driver
Tianfei Zhang (1):
iFPGA: Add Intel FPGA OPAE Share Code
MAINTAINERS | 11 + config/common_base | 10 + doc/guides/rawdevs/ifpga_rawdev.rst | 112 ++ doc/guides/rawdevs/index.rst | 1 + doc/guides/rel_notes/release_18_05.rst | 13 + drivers/bus/Makefile | 1 + drivers/bus/ifpga/Makefile | 32 + drivers/bus/ifpga/ifpga_bus.c | 464 ++++++ drivers/bus/ifpga/ifpga_common.c | 88 ++ drivers/bus/ifpga/ifpga_common.h | 18 + drivers/bus/ifpga/ifpga_logs.h | 31 + drivers/bus/ifpga/meson.build | 8 + drivers/bus/ifpga/rte_bus_ifpga.h | 150 ++ drivers/bus/ifpga/rte_bus_ifpga_version.map | 10 + drivers/bus/meson.build | 2 +- drivers/raw/Makefile | 1 + drivers/raw/ifpga_rawdev/Makefile | 36 + drivers/raw/ifpga_rawdev/base/Makefile | 26 + drivers/raw/ifpga_rawdev/base/README | 31 + drivers/raw/ifpga_rawdev/base/ifpga_api.c | 294 ++++ drivers/raw/ifpga_rawdev/base/ifpga_api.h | 28 + drivers/raw/ifpga_rawdev/base/ifpga_compat.h | 58 + drivers/raw/ifpga_rawdev/base/ifpga_defines.h | 1662 ++++++++++++++++++++ drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c | 821 ++++++++++ drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h | 11 + drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c | 253 +++ drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h | 164 ++ drivers/raw/ifpga_rawdev/base/ifpga_fme.c | 734 +++++++++ drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c | 301 ++++ drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c | 381 +++++ drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c | 715 +++++++++ drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c | 352 +++++ drivers/raw/ifpga_rawdev/base/ifpga_hw.h | 127 ++ drivers/raw/ifpga_rawdev/base/ifpga_port.c | 388 +++++ drivers/raw/ifpga_rawdev/base/ifpga_port_error.c | 144 ++ drivers/raw/ifpga_rawdev/base/meson.build | 34 + drivers/raw/ifpga_rawdev/base/opae_debug.c | 99 ++ drivers/raw/ifpga_rawdev/base/opae_debug.h | 19 + drivers/raw/ifpga_rawdev/base/opae_hw_api.c | 381 +++++ drivers/raw/ifpga_rawdev/base/opae_hw_api.h | 253 +++ drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c | 145 ++ drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h | 279 ++++ drivers/raw/ifpga_rawdev/base/opae_osdep.h | 79 + .../ifpga_rawdev/base/osdep_raw/osdep_generic.h | 75 + .../ifpga_rawdev/base/osdep_rte/osdep_generic.h | 45 + drivers/raw/ifpga_rawdev/ifpga_rawdev.c | 619 ++++++++ drivers/raw/ifpga_rawdev/ifpga_rawdev.h | 37 + drivers/raw/ifpga_rawdev/meson.build | 15 + .../ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map | 4 + drivers/raw/meson.build | 2 +- mk/rte.app.mk | 5 +- 51 files changed, 9566 insertions(+), 3 deletions(-) create mode 100644 doc/guides/rawdevs/ifpga_rawdev.rst create mode 100644 drivers/bus/ifpga/Makefile create mode 100644 drivers/bus/ifpga/ifpga_bus.c create mode 100644 drivers/bus/ifpga/ifpga_common.c create mode 100644 drivers/bus/ifpga/ifpga_common.h create mode 100644 drivers/bus/ifpga/ifpga_logs.h create mode 100644 drivers/bus/ifpga/meson.build create mode 100644 drivers/bus/ifpga/rte_bus_ifpga.h create mode 100644 drivers/bus/ifpga/rte_bus_ifpga_version.map create mode 100644 drivers/raw/ifpga_rawdev/Makefile create mode 100644 drivers/raw/ifpga_rawdev/base/Makefile create mode 100644 drivers/raw/ifpga_rawdev/base/README create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_api.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_api.h create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_compat.h create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_defines.h create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_hw.h create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_port.c create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_port_error.c create mode 100644 drivers/raw/ifpga_rawdev/base/meson.build create mode 100644 drivers/raw/ifpga_rawdev/base/opae_debug.c create mode 100644 drivers/raw/ifpga_rawdev/base/opae_debug.h create mode 100644 drivers/raw/ifpga_rawdev/base/opae_hw_api.c create mode 100644 drivers/raw/ifpga_rawdev/base/opae_hw_api.h create mode 100644 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c create mode 100644 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h create mode 100644 drivers/raw/ifpga_rawdev/base/opae_osdep.h create mode 100644 drivers/raw/ifpga_rawdev/base/osdep_raw/osdep_generic.h create mode 100644 drivers/raw/ifpga_rawdev/base/osdep_rte/osdep_generic.h create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev.c create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev.h create mode 100644 drivers/raw/ifpga_rawdev/meson.build create mode 100644 drivers/raw/ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map
Signature · 1 line
1.8.3.1