c: sta...@dpdk.org
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/ifpga_rawdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c
index d9a46ef915..f591a87b49 100644
--- a/drivers/raw/ifpga/ifpga_ra
ot; is
defined to replace this format string.
Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Acked-by: Rosen Xu
---
v2: define a macro to replace the format string
---
drivers/raw/ifpga/ifpga_rawdev.c |
ot; is
defined to replace this format string.
Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Acked-by: Rosen Xu
---
v2: define a macro to replace the format string
---
drivers/raw/ifpga/ifpga_rawdev.c |
Changes from v4:
1. update afu driver name in diagram in ifpga doc.
Wei Huang (5):
raw/ifpga: remove experimental tag from ifpga APIs
raw/ifpga: remove vdev when ifpga is closed
raw/ifpga: unregister interrupt in ifpga close function
raw/ifpga: support ofs card probe
guides/rawdevs: add
These APIs are introduced in DPDK 21.05 and have been tested in several
release, experimental tag can be formally removed.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
drivers/raw/ifpga/rte_pmd_ifpga.h | 48 ---
drivers/raw
: add Intel FPGA bus rawdev driver")
Cc: sta...@dpdk.org
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
v2: update commit log with Tianfei's comment
---
v3: replace constant with PCI_PRI_STR_SIZE per Rosen's comment
---
drivers/raw/ifpga/
function call of ifpga_rawdev_destroy is as below.
ifpga_rawdev_destroy()
ifpga_unregister_msix_irq() // removed
rte_rawdev_pmd_release()
rte_rawdev_close()
ifpga_rawdev_close()
Fixes: e0a1aafe2af9 ("raw/ifpga: introduce IRQ functions")
Cc: sta...@dpdk.org
Signed-off-by:
is not the case in OFS implementation. In this patch, enumeration
can search AFU in any PF/VF which has no FME and port.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
v2: fix build error in UB2004-32
---
v3: update commit log with Tianfei's comment, treat
OFS (Open FPGA Stack) specification is introduced briefly.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
v2: update description per Tianfei's comment
---
v3: update afu driver name in diagram
---
doc/guides/rawdevs/ifpga.rst
. Refine code per Tianfei's comments.
Wei Huang (5):
raw/ifpga: introduce AFU driver framework
raw/ifpga: add N3000 AFU driver
raw/ifpga: add HE-LPBK AFU driver
raw/ifpga: add HE-MEM AFU driver
raw/ifpga: add HE-HSSI AFU driver
drivers/raw/ifpga/afu_pmd_core.c| 453
dr
AFU device.
2. call rte_rawdev_configure() to initialize AFU device.
3. call rte_rawdev_selftest() to test AFU device.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/afu_pmd_core.c | 453 +++
drivers/raw/ifpga/afu_pmd_core.h | 76 +++
drivers/raw/ifpga
N3000 AFU includes NLB0 and DMA modules, NLB0 is used to test PCI bus
and DMA is used to test local memory.
This driver initialize the modules and report test result.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/afu_pmd_core.h | 18 +
drivers/raw/ifpga/afu_pmd_n3000.c | 2019
HE-LPBK and HE-MEM-LPBK are host exerciser modules in OFS FPGA,
HE-LPBK is used to test PCI bus and HE-MEM-LPBK is used to test
local memory.
This driver initialize the modules and report test result.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/afu_pmd_he_lpbk.c | 436
HE-MEM is one of the host exerciser modules in OFS FPGA,
which is used to test local memory with built-in traffic
generator.
This driver initialize the module and report test result.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/afu_pmd_he_mem.c | 183
HE-HSSI is one of the host exerciser modules in OFS FPGA,
which is used to test HSSI (High Speed Serial Interface).
This driver initialize the module and report test result.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/afu_pmd_he_hssi.c | 371
drivers/raw
The first patch implements the framework of the AFU PMD driver based on raw
device interfaces.
The subsequent patches implement the driver of some AFUs.
Changes from v6:
1. Fix Ubuntu 20.04 ARM build.
Wei Huang (5):
raw/ifpga: introduce AFU driver framework
raw/ifpga: add N3000 AFU driver
AFU device.
2. call rte_rawdev_configure() to initialize AFU device.
3. call rte_rawdev_selftest() to test AFU device.
Signed-off-by: Wei Huang
---
v2: fix typo
---
v3: fix build error in FreeBSD13-64, UB2004-32 and UB2204-32
---
v4: fix coding style issue and build error in FreeBSD13-64
---
v5
N3000 AFU includes NLB0 and DMA modules, NLB0 is used to test PCI bus
and DMA is used to test local memory.
This driver initialize the modules and report test result.
Signed-off-by: Wei Huang
---
v2: move source files to ifpga and rename, refine code
---
v3: fix Ubuntu 20.04 ARM build
HE-LPBK and HE-MEM-LPBK are host exerciser modules in OFS FPGA,
HE-LPBK is used to test PCI bus and HE-MEM-LPBK is used to test
local memory.
This driver initialize the modules and report test result.
Signed-off-by: Wei Huang
---
v2: move source files to ifpga and rename, refine code
HE-MEM is one of the host exerciser modules in OFS FPGA,
which is used to test local memory with built-in traffic
generator.
This driver initialize the module and report test result.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
v2: move source files to ifpga and rename
---
drivers/raw
HE-HSSI is one of the host exerciser modules in OFS FPGA,
which is used to test HSSI (High Speed Serial Interface).
This driver initialize the module and report test result.
Signed-off-by: Wei Huang
---
v2: move source files to ifpga and rename, refine code
---
drivers/raw/ifpga
Coverity issue: 379064
Fixes: 673c897f4d73 ("raw/ifpga: support OFS card probing")
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/ifpga_enumerate.c | 28 +++-
1 file changed, 19 insertions(+), 9 deletions(-)
diff --git a/drivers/raw/ifpga/base/ifpga_enum
The first patch introduce PMCI driver to provide interface to access
PMCI functions which include flash controller.
The second patch update RSU (Remote System Update) implementation
to adapt with PMCI controller.
Changes from v1:
1. rebase code to 22.07-rc1
Wei Huang (2):
raw/ifpga/base: add
PMCI (Platform Management Control Interface) is a new module in FPGA,
which is designed to cooperate with BMC chip to fulfill board management
functions.
This driver provide interfaces to access registers of BMC chip and
external flash of FPGA.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga
Update secure RSU (Remote System Update) driver to adapt the changes
introduced by OFS.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/ifpga_api.c | 39 +-
drivers/raw/ifpga/base/ifpga_feature_dev.h |2 +
drivers/raw/ifpga/base/ifpga_fme.c |8 +
drivers/raw/ifpga
comment.
Wei Huang (5):
raw/ifpga: introduce AFU driver framework
raw/ifpga: add N3000 AFU driver
raw/ifpga: add HE-LPBK AFU driver
raw/ifpga: add HE-MEM AFU driver
raw/ifpga: add HE-HSSI AFU driver
doc/guides/rawdevs/ifpga.rst| 98 ++
drivers/raw/ifpga/afu_pmd_core.c| 438
AFU device.
2. call rte_rawdev_configure() to initialize AFU device.
3. call rte_rawdev_selftest() to test AFU device.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
v2: fix typo
---
v3: fix build error in FreeBSD13-64, UB2004-32 and UB2204-32
---
v4: fix coding style
N3000 AFU includes NLB0 and DMA modules, NLB0 is used to test PCI bus
and DMA is used to test local memory.
This driver initialize the modules and report test result.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
v2: move source files to ifpga and rename, refine
HE-LPBK and HE-MEM-LPBK are host exerciser modules in OFS FPGA,
HE-LPBK is used to test PCI bus and HE-MEM-LPBK is used to test
local memory.
This driver initialize the modules and report test result.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
v2: move source
HE-MEM is one of the host exerciser modules in OFS FPGA,
which is used to test local memory with built-in traffic
generator.
This driver initialize the module and report test result.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
v2: move source files to ifpga and
HE-HSSI is one of the host exerciser modules in OFS FPGA,
which is used to test HSSI (High Speed Serial Interface).
This driver initialize the module and report test result.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
v2: move source files to ifpga and rename
, flash driver and
sensor driver.
2. remove RSU related patch from this patch set.
Wei Huang (4):
raw/ifpga/base: add PMCI base driver
raw/ifpga/base: update board information
raw/ifpga/base: update flash operation interface
raw/ifpga/base: add PMCI sensor driver
drivers/raw/ifpga/base
PMCI (Platform Management Control Interface) is a new module in FPGA,
which is designed to cooperate with BMC chip to fulfill board management
functions.
This base driver implements interfaces to access registers of BMC chip.
Signed-off-by: Wei Huang
---
v2: fix typo. 'spi_master
N6000 ADP platform has different definition of board information,
they can be recognized after this patch.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/ifpga_defines.h| 101 +++--
drivers/raw/ifpga/base/ifpga_fme.c| 121
introduced to adapt these changes.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/ifpga_api.c | 9 +
drivers/raw/ifpga/base/ifpga_feature_dev.h | 2 +
drivers/raw/ifpga/base/ifpga_fme.c | 8 +
drivers/raw/ifpga/base/opae_hw_api.c | 20
N6000 ADP platform support more sensors than N3000, they are
accessed with the help of PMCI sensor driver.
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/opae_hw_api.c | 29 +++
drivers/raw/ifpga/base/opae_hw_api.h | 1 +
drivers/raw/ifpga/base/opae_intel_max10.c | 326
Do null-checking on hw->adapter in fme_pmci_init() before dereference it.
Coverity issue: 379202
Fixes: ca6eb0f7c836 ("raw/ifpga/base: add PMCI base driver")
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/ifpga_fme.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Expression "tx_chunks * ctx->dma_buf_size" in dma_fpga_to_fpga()
is evaluated using 32-bit arithmetic, which would overflow
potentially. Change tx_chunks to type "uint64_t" to avoid such
issue.
Coverity issue: 379203
Fixes: 7d63899a5c19 ("raw/ifpga: add N3000 AFU
Below coverity issues are fixed in this patch set.
367480, 367482
Main changes from v1:
- change two patches to one patch because they have the same root cause
Wei Huang (1):
raw/ifpga/base: check size before assigning
drivers/raw/ifpga/base/opae_intel_max10.c | 2 +-
drivers/raw/ifpga/base
se: add SPI and MAX10 device driver")
Signed-off-by: Wei Huang
---
v2: check size before assigning to staging_area_size
---
drivers/raw/ifpga/base/opae_intel_max10.c | 2 +-
drivers/raw/ifpga/base/opae_intel_max10.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/driv
This patchset is bug fix for raw/ifpga driver.
Changes:
* Fix SPI transaction.
* Fix pthread cannot join.
* Fix ifpga devices cleanup function.
* Fix port feature ID.
Tianfei Zhang (2):
raw/ifpga/base: fix SPI transaction
raw/ifpga: fix pthread cannot join
Wei Huang (2):
raw/ifpga: fix
From: Tianfei Zhang
When EOP is detected, 2 more bytes should be received
(may be a SPI_PACKET_ESC before last valid byte) then
rx should be finished.
Fixes: 96ebfcf8 ("raw/ifpga/base: add SPI and MAX10 device driver")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
drivers/raw/ifpga/bas
From: Tianfei Zhang
When we want to close a thread, we should set a flag to
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
drivers/raw/ifpga/ifpga_rawdev.c | 8
1 file changed, 4 insertions(+), 4
Use rte_dev_remove() to replace rte_rawdev_pmd_release()
in ifpga_rawdev_cleanup(), resources occupied by ifpga
raw devices such as threads can be released correctly.
Fixes: f724a802 ("raw/ifpga: add miscellaneous APIs")
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/ifpga_rawdev.c |
Fix ID value of port features to match the definition from hardware.
Fixes: 473c88f9 ("drivers/raw: remove rawdev from directory names")
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/ifpga_defines.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/d
This patchset is bug fix for raw/ifpga driver.
Changes since v1:
* Refine commit log.
Tianfei Zhang (2):
raw/ifpga/base: fix SPI transaction
raw/ifpga: fix pthread cannot join
Wei Huang (2):
raw/ifpga: fix ifpga devices cleanup function
raw/ifpga/base: fix port feature ID
drivers/raw
From: Tianfei Zhang
When EOP is detected, 2 more bytes should be received
(may be a SPI_PACKET_ESC before last valid byte) then
rx should be finished.
Fixes: 96ebfcf8 ("raw/ifpga/base: add SPI and MAX10 device driver")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
drivers/raw/ifpga/bas
From: Tianfei Zhang
When we want to close a thread, we should set a flag to
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
drivers/raw/ifpga/ifpga_rawdev.c | 8
1 file changed, 4 insertions(+), 4
Use rte_dev_remove() to replace rte_rawdev_pmd_release()
in ifpga_rawdev_cleanup(), resources occupied by ifpga
raw devices such as threads can be released correctly.
Fixes: f724a802 ("raw/ifpga: add miscellaneous APIs")
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/ifpga_rawdev.c |
Fix ID value of port features to match the definition from hardware.
Fixes: 473c88f9 ("drivers/raw: remove rawdev from directory names")
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/ifpga_defines.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/d
From: Tianfei Zhang
When EOP is detected, 2 more bytes should be received
(may be a SPI_PACKET_ESC before last valid byte) then
rx should be finished.
Fixes: 96ebfcf8 ("raw/ifpga/base: add SPI and MAX10 device driver")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
drivers/raw/ifpga/bas
From: Tianfei Zhang
When we want to close a thread, we should set a flag to
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
drivers/raw/ifpga/ifpga_rawdev.c | 8
1 file changed, 4 insertions(+), 4
From: Tianfei Zhang
When we want to close a thread, we should set a flag to notify
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
v2: update commit log
---
drivers/raw/ifpga/ifpga_rawdev.c | 8
1
From: Tianfei Zhang
When we want to close a thread, we should set a flag to notify
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
v2: update commit log
---
v3: set thread id to 0 after pthread_join
---
dri
From: Tianfei Zhang
When we want to close a thread, we should set a flag to notify
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
v2: update commit log
---
v3: set thread id to 0 after pthread_join
---
v4:
From: Tianfei Zhang
When we want to close a thread, we should set a flag to notify
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
v2: update commit log
---
v3: set thread id to 0 after pthread_join
---
v4:
From: Tianfei Zhang
When we want to close a thread, we should set a flag to notify
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
v2: update commit log
---
v3: set thread id to 0 after pthread_join
---
v4:
From: Tianfei Zhang
When we want to close a thread, we should set a flag to notify
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
v2: update commit log
---
v3: set thread id to 0 after pthread_join
---
v4:
From: Tianfei Zhang
When we want to close a thread, we should set a flag to notify
thread handler function.
Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree")
Cc: sta...@dpdk.org
Signed-off-by: Tianfei Zhang
---
v2: update commit log
---
v3: set thread id to 0 after pthread_join
---
v4:
Fix ID value of port features to match the definition from hardware.
Fixes: 473c88f9 ("drivers/raw: remove rawdev from directory names")
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/base/ifpga_defines.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/d
Use rte_dev_remove() to replace rte_rawdev_pmd_release()
in ifpga_rawdev_cleanup(), resources occupied by ifpga
raw devices such as threads can be released correctly.
Fixes: f724a802 ("raw/ifpga: add miscellaneous APIs")
Signed-off-by: Wei Huang
---
drivers/raw/ifpga/ifpga_rawdev.c |
Stack) type card enumeration and
initialization.
Wei Huang (4):
raw/ifpga: remove experimental tag from ifpga APIs
raw/ifpga: remove vdev when ifpga is closed
raw/ifpga: unregister interrupt in ifpga close function
raw/ifpga: support ofs card probe
drivers/raw/ifpga/base/ifpga_api.c
These APIs are introduced in DPDK 21.05 and have been tested in several
release, experimental tag can be formally removed.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
drivers/raw/ifpga/rte_pmd_ifpga.h | 48 ---
drivers/raw/ifpga/version.map | 7
Move interrupt unregistration from ifpga destroy function to
ifpga close function, so rte_rawdev_pmd_release function can
release interrupt resource.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
drivers/raw/ifpga/ifpga_rawdev.c | 29 +++--
1 file changed, 11
;)
Cc: sta...@dpdk.org
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Acked-by: Rosen Xu
---
drivers/raw/ifpga/ifpga_rawdev.c | 166 ++-
drivers/raw/ifpga/ifpga_rawdev.h | 8 ++
2 files changed, 138 insertions(+), 36 deletions(-)
diff --git a/drivers
ofs card introduces some changes in DFL (Device Feature List) and
DFH (Device Feature Header) of FPGA. ifpga driver adapt these
changes mainly by adjusting enumeration process.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
drivers/raw/ifpga/base/ifpga_api.c | 28 +-
drivers/raw
Add afu_mf driver to manage various AFU (Acceleration Function Unit)
in FPGA.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
drivers/raw/afu_mf/afu_mf_rawdev.c | 440
drivers/raw/afu_mf/afu_mf_rawdev.h | 89 ++
drivers/raw/afu_mf/he_hssi.c | 369 +++
drivers/raw
Add afu_mf driver to manage various AFU (Acceleration Function Unit)
in FPGA.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
v2: fix typo
---
drivers/raw/afu_mf/afu_mf_rawdev.c | 440
drivers/raw/afu_mf/afu_mf_rawdev.h | 89 ++
drivers/raw/afu_mf/he_hssi.c | 369
The changes in version 2:
Fix build error in UB2004-32, replace "%zu" with "PRIu64".
Wei Huang (4):
raw/ifpga: remove experimental tag from ifpga APIs
raw/ifpga: remove vdev when ifpga is closed
raw/ifpga: unregister interrupt in ifpga close function
raw/ifpga: su
These APIs are introduced in DPDK 21.05 and have been tested in several
release, experimental tag can be formally removed.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
drivers/raw/ifpga/rte_pmd_ifpga.h | 48 ---
drivers/raw/ifpga/version.map | 7
;)
Cc: sta...@dpdk.org
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Acked-by: Rosen Xu
---
drivers/raw/ifpga/ifpga_rawdev.c | 166 ++-
drivers/raw/ifpga/ifpga_rawdev.h | 8 ++
2 files changed, 138 insertions(+), 36 deletions(-)
diff --git a/drivers
Move interrupt unregistration from ifpga destroy function to
ifpga close function, so rte_rawdev_pmd_release function can
release interrupt resource.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
drivers/raw/ifpga/ifpga_rawdev.c | 29 +++--
1 file changed, 11
ofs card introduces some changes in DFL (Device Feature List) and
DFH (Device Feature Header) of FPGA. ifpga driver adapt these
changes mainly by adjusting enumeration process.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
v2: fix build error in UB2004-32
---
drivers/raw/ifpga/base
Add afu_mf driver to manage various AFU (Acceleration Function Unit)
in FPGA.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
v2: fix typo
---
v3: fix build error in FreeBSD13-64, UB2004-32 and UB2204-32
---
drivers/raw/afu_mf/afu_mf_rawdev.c | 440
drivers/raw/afu_mf
Add afu_mf driver to manage various AFU (Acceleration Function Unit)
in FPGA.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
v2: fix typo
---
v3: fix build error in FreeBSD13-64, UB2004-32 and UB2204-32
---
v4: fix coding style issue and build error in FreeBSD13-64
---
drivers/raw/afu_mf
First patch introduce PMCI driver to provide interface to access
PMCI functions which include flash controller.
The second patch update RSU (Remote System Update) implementation
to adapt with PMCI controller.
Wei Huang (2):
raw/ifpga/base: add pmci driver
raw/ifpga: update secure rsu
PMCI (Platform Management Control Interface) is a new module in FPGA,
which is designed to cooperate with BMC chip to fulfill board management
functions.
This driver provide interfaces to access registers of BMC chip and
external flash of FPGA.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Update secure RSU (Remote System Update) driver to adapt the changes
introduced by OFS.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
drivers/raw/ifpga/base/ifpga_api.c | 39 +-
drivers/raw/ifpga/base/ifpga_feature_dev.h |2 +
drivers/raw/ifpga/base/ifpga_fme.c
Changes from v2:
1. update commit log with Tianfei's comment.
2. use macro to define immediate value.
3. treat 7 as special PCI BAR index.
4. update ifpga documentation with OFS introduction.
Wei Huang (5):
raw/ifpga: remove experimental tag from ifpga APIs
raw/ifpga: remove vdev when
These APIs are introduced in DPDK 21.05 and have been tested in several
release, experimental tag can be formally removed.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
drivers/raw/ifpga/rte_pmd_ifpga.h | 48 ---
drivers/raw/ifpga/version.map | 7
: add Intel FPGA bus rawdev driver")
Cc: sta...@dpdk.org
Signed-off-by: Wei Huang
---
v2: update commit log, use macro to replace immediate value.
---
drivers/raw/ifpga/ifpga_rawdev.c | 166 ++-
drivers/raw/ifpga/ifpga_rawdev.h | 8 ++
2 files changed, 138
close function, when rte_rawdev_pmd_release is called,
rte_rawdev_close will be called, then interrupts are unregistered.
Signed-off-by: Wei Huang
---
v2: update commit log
---
drivers/raw/ifpga/ifpga_rawdev.c | 29 +++--
1 file changed, 11 insertions(+), 18 deletions
is not the case in OFS implementation. In this patch, enumeration
can search AFU in any PF/VF which has no FME and port.
Signed-off-by: Wei Huang
---
v2: fix build error in UB2004-32
---
v3: update commit log with Tianfei's comment, treat 7 as special BAR index.
---
drivers/raw/ifpga
OFS (Open FPGA Stack) specification is introduced briefly.
Signed-off-by: Wei Huang
---
doc/guides/rawdevs/ifpga.rst | 114 ++-
1 file changed, 113 insertions(+), 1 deletion(-)
diff --git a/doc/guides/rawdevs/ifpga.rst b/doc/guides/rawdevs/ifpga.rst
The first patch implements the framework of the AFU raw device
driver.
The subsequent patches implement the driver of some AFUs.
Wei Huang (5):
drivers/raw: introduce AFU raw device driver
raw/afu_mf: add N3000 AFU driver
raw/afu_mf: add HE-LBK AFU driver
raw/afu_mf: add HE-MEM AFU driver
rte_rawdev_pmd_get_named_dev() to find AFU raw device.
2. call rte_rawdev_configure() to initialize AFU raw device.
3. call rte_rawdev_selftest() to test function of AFU.
Signed-off-by: Wei Huang
---
v2: fix typo
---
v3: fix build error in FreeBSD13-64, UB2004-32 and UB2204-32
---
v4: fix coding style issue and
N3000 AFU includes NLB0 and DMA modules, NLB0 is used to test PCI bus
and DMA is used to test local memory.
This driver initialize the modules and report test result.
Signed-off-by: Wei Huang
---
drivers/raw/afu_mf/afu_mf_rawdev.c |4 +
drivers/raw/afu_mf/afu_mf_rawdev.h | 18 +
drivers
HE-LBK and HE-MEM-LBK are host exerciser modules in OFS FPGA,
HE-LBK is used to test PCI bus and HE-MEM-LBK is used to test
local memory.
This driver initialize the modules and report test result.
Signed-off-by: Wei Huang
---
drivers/raw/afu_mf/afu_mf_rawdev.c | 5 +
drivers/raw/afu_mf
HE-MEM is one of the host exerciser modules in OFS FPGA,
which is used to test local memory with built-in traffic
generator.
This driver initialize the module and report test result.
Signed-off-by: Wei Huang
---
drivers/raw/afu_mf/afu_mf_rawdev.c | 3 +
drivers/raw/afu_mf/he_mem.c
HE-HSSI is one of the host exerciser modules in OFS FPGA,
which is used to test HSSI (High Speed Serial Interface).
This driver initialize the module and report test result.
Signed-off-by: Wei Huang
---
drivers/raw/afu_mf/afu_mf_rawdev.c | 3 +
drivers/raw/afu_mf/he_hssi.c | 369
Changes from v3:
1. replace constant with PCI_PRI_STR_SIZE per Rosen's comment.
2. update commit log with more explanations about the function call.
3. fix typo and coding style issue.
4. update ifpga documentation per Tianfei's comment.
Wei Huang (5):
raw/ifpga: remove experimenta
These APIs are introduced in DPDK 21.05 and have been tested in several
release, experimental tag can be formally removed.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Reviewed-by: Rosen Xu
---
drivers/raw/ifpga/rte_pmd_ifpga.h | 48 ---
drivers/raw
: add Intel FPGA bus rawdev driver")
Cc: sta...@dpdk.org
Signed-off-by: Wei Huang
---
v2: update commit log with Tianfei's comment
---
v3: replace constant with PCI_PRI_STR_SIZE per Rosen's comment
---
drivers/raw/ifpga/ifpga_rawdev.c | 166 ++
function call of ifpga_rawdev_destroy is as below.
ifpga_rawdev_destroy()
ifpga_unregister_msix_irq() // removed
rte_rawdev_pmd_release()
rte_rawdev_close()
ifpga_rawdev_close()
Fixes: e0a1aafe2af9 ("raw/ifpga: introduce IRQ functions")
Cc: sta...@dpdk.org
Signed-off-by:
is not the case in OFS implementation. In this patch, enumeration
can search AFU in any PF/VF which has no FME and port.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
---
v2: fix build error in UB2004-32
---
v3: update commit log with Tianfei's comment, treat 7 as special BAR index
-
OFS (Open FPGA Stack) specification is introduced briefly.
Signed-off-by: Wei Huang
Reviewed-by: Rosen Xu
---
v2: update description per Tianfei's comment
---
doc/guides/rawdevs/ifpga.rst | 105 ++-
1 file changed, 104 insertions(+), 1 deletion(-)
()
- rename opae_init_eal() to opae_init()
- rename opae_cleanup_eal() to opae_cleanup()
Wei Huang (4):
raw/ifpga: add fpga rsu function
raw/ifpga: add fpga property get function
raw/ifpga: add OPAE API for OpenStack Cyborg
examples/ifpga: add example for opae ifpga API
MAINTAINERS
. ifpga_rawdev_stop_flash_update() aborts flash update process.
3. ifpga_rawdev_reload() reloads FPGA from updated flash.
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Acked-by: Rosen Xu
---
v2: fix coding style issue in ifpga_fme_rsu.c and ifpga_sec_mgr.c
---
v3: fix compilation issues in
(Board
Management Controller).
Signed-off-by: Wei Huang
Acked-by: Tianfei Zhang
Acked-by: Rosen Xu
---
drivers/raw/ifpga/base/ifpga_api.c | 8 ++
drivers/raw/ifpga/base/ifpga_defines.h | 1 +
drivers/raw/ifpga/base/ifpga_feature_dev.c | 21 +++
drivers/raw/ifpga/base
. opae_remove_device() manually remove specific FPGA from ifpga driver.
11. opae_bind_driver() binds specific FPGA with specified kernel driver.
12. opae_unbind_driver() unbinds specific FPGA from kernel driver.
13. opae_reboot_device() reboots specific FPGA (do reconfiguration).
Signed-off-by: Wei Huang
Acked-by
1 - 100 of 223 matches
Mail list logo