[PATCH v1] maintainers: remove tianfei from ifpga

2023-11-28 Thread Wei Huang
Signed-off-by: Wei Huang --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0d1c812..6eedea1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1440,7 +1440,6 @@ Rawdev Drivers Intel FPGA M: Rosen Xu -M: Tianfei zhang T: git://dpdk.org/next/dpdk

[PATCH v1] raw/ifpga: check afu device before unplug

2023-03-26 Thread Wei Huang
AFU device may be already unplugged in IFPGA bus cleanup process, unplug AFU device only when it exists. Signed-off-by: Wei Huang --- drivers/raw/ifpga/ifpga_rawdev.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers

[PATCH v1] doc/guides/nics: remove limitation of ipn3ke

2023-03-22 Thread Wei Huang
Now ipn3ke is not evaluation in 19.05 . Signed-off-by: Wei Huang --- doc/guides/nics/ipn3ke.rst | 4 1 file changed, 4 deletions(-) diff --git a/doc/guides/nics/ipn3ke.rst b/doc/guides/nics/ipn3ke.rst index a89e371..d269bbe 100644 --- a/doc/guides/nics/ipn3ke.rst +++ b/doc/guides/nics

[PATCH v1] net/ipn3ke: fix representor name

2023-03-16 Thread Wei Huang
The device name used in rte_eth_dev_allocated() function is afu device name instead of representor name, this patch correct it. Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver") Cc: sta...@dpdk.org Signed-off-by: Wei Huang --- drivers/net/ipn3ke/ipn3ke_ethdev.c | 2 +- 1 file

[PATCH v1] net/ipn3ke: fix thread exit issue

2023-03-16 Thread Wei Huang
Thread does not exit after driver is removed. When there is no more representor exist, the variable 'num' will be 0 and thread can exit safely at this time. Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor") Cc: sta...@dpdk.org Signed-off-by: Wei Huang ---

[PATCH v1] raw/ifpga: remove virtual device unplug operation

2023-03-16 Thread Wei Huang
VDEV bus has implemented cleanup() function to perform cleanup for devices on the bus during eal_cleanup(), so there is no need for ifpga driver to record virtual devices and unplug them. Signed-off-by: Wei Huang --- drivers/raw/ifpga/ifpga_rawdev.c | 99

[PATCH v1] bus/ifpga: add fpga bus cleanup

2023-03-16 Thread Wei Huang
In this patch, cleanup method is implemented for FPGA bus which will be called during eal_bus_cleanup(). Signed-off-by: Wei Huang --- drivers/bus/ifpga/ifpga_bus.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/bus/ifpga/ifpga_bus.c b/drivers

[PATCH v1] bus/ifpga: fix issue of accessing null address

2023-03-16 Thread Wei Huang
In function ifpga_scan_one(), variable 'path' is NULL if device argument 'afu_bts' is not set, subsequent string copy with 'path' would lead to segmentation fault. Fixes: 6fa4aa2b3645 ("bus/ifpga: fix forcing optional devargs") Cc: sta...@dpdk.org Signed-o

[PATCH] raw/ifpga: avoid potential integer overflow

2022-06-22 Thread Wei Huang
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

[PATCH] raw/ifpga/base: check pointer before dereference

2022-06-22 Thread Wei Huang
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(-)

[PATCH v3 4/4] raw/ifpga/base: add PMCI sensor driver

2022-06-17 Thread Wei Huang
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

[PATCH v3 3/4] raw/ifpga/base: update flash operation interface

2022-06-17 Thread Wei Huang
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

[PATCH v3 2/4] raw/ifpga/base: update board information

2022-06-17 Thread Wei Huang
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

[PATCH v3 1/4] raw/ifpga/base: add PMCI base driver

2022-06-17 Thread Wei Huang
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&#x

[PATCH v3 0/4] introduce PMCI driver

2022-06-17 Thread Wei Huang
, 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

[PATCH v8 5/5] raw/ifpga: add HE-HSSI AFU driver

2022-06-15 Thread Wei Huang
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

[PATCH v8 4/5] raw/ifpga: add HE-MEM AFU driver

2022-06-15 Thread Wei Huang
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

[PATCH v8 3/5] raw/ifpga: add HE-LPBK AFU driver

2022-06-15 Thread Wei Huang
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

[PATCH v8 2/5] raw/ifpga: add N3000 AFU driver

2022-06-15 Thread Wei Huang
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

[PATCH v8 1/5] raw/ifpga: introduce AFU driver framework

2022-06-15 Thread Wei Huang
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

[PATCH v8 0/5] introduce AFU PMD driver of FPGA

2022-06-15 Thread Wei Huang
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

[PATCH v2 2/2] raw/ifpga: update secure rsu

2022-06-09 Thread Wei Huang
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

[PATCH v2 1/2] raw/ifpga/base: add pmci driver

2022-06-09 Thread Wei Huang
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

[PATCH v2 0/2] update rsu implementation

2022-06-09 Thread Wei Huang
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

[PATCH v1] raw/ifpga: free file handle before function return

2022-06-09 Thread Wei Huang
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

[PATCH v7 5/5] raw/ifpga: add HE-HSSI AFU driver

2022-06-09 Thread Wei Huang
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

[PATCH v7 4/5] raw/ifpga: add HE-MEM AFU driver

2022-06-09 Thread Wei Huang
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

[PATCH v7 3/5] raw/ifpga: add HE-LPBK AFU driver

2022-06-09 Thread Wei Huang
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

[PATCH v7 2/5] raw/ifpga: add N3000 AFU driver

2022-06-09 Thread Wei Huang
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

[PATCH v7 1/5] raw/ifpga: introduce AFU driver framework

2022-06-09 Thread Wei Huang
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

[PATCH v7 0/5] introduce AFU PMD driver of FPGA

2022-06-09 Thread Wei Huang
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

[PATCH v6 5/5] raw/ifpga: add HE-HSSI AFU driver

2022-06-08 Thread Wei Huang
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

[PATCH v6 4/5] raw/ifpga: add HE-MEM AFU driver

2022-06-08 Thread Wei Huang
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

[PATCH v6 3/5] raw/ifpga: add HE-LPBK AFU driver

2022-06-08 Thread Wei Huang
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

[PATCH v6 2/5] raw/ifpga: add N3000 AFU driver

2022-06-08 Thread Wei Huang
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

[PATCH v6 1/5] raw/ifpga: introduce AFU driver framework

2022-06-08 Thread Wei Huang
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

[PATCH v6 0/5] introduce AFU PMD driver of FPGA

2022-06-08 Thread Wei Huang
. 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

[PATCH v5 5/5] guides/rawdevs: add description of ofs in ifpga doc

2022-06-07 Thread Wei Huang
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

[PATCH v5 4/5] raw/ifpga: support ofs card probe

2022-06-07 Thread Wei Huang
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

[PATCH v5 3/5] raw/ifpga: unregister interrupt in ifpga close function

2022-06-07 Thread Wei Huang
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:

[PATCH v5 2/5] raw/ifpga: remove vdev when ifpga is closed

2022-06-07 Thread Wei Huang
: 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/

[PATCH v5 1/5] raw/ifpga: remove experimental tag from ifpga APIs

2022-06-07 Thread Wei Huang
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

[PATCH v5 0/5] Support OFS card

2022-06-07 Thread Wei Huang
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

[PATCH v4 5/5] guides/rawdevs: add description of ofs in ifpga doc

2022-05-27 Thread Wei Huang
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(-)

[PATCH v4 4/5] raw/ifpga: support ofs card probe

2022-05-27 Thread Wei Huang
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 -

[PATCH v4 3/5] raw/ifpga: unregister interrupt in ifpga close function

2022-05-27 Thread Wei Huang
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:

[PATCH v4 2/5] raw/ifpga: remove vdev when ifpga is closed

2022-05-27 Thread Wei Huang
: 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 ++

[PATCH v4 1/5] raw/ifpga: remove experimental tag from ifpga APIs

2022-05-27 Thread Wei Huang
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

[PATCH v4 0/5] Support OFS card

2022-05-27 Thread Wei Huang
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

[PATCH v5 5/5] raw/afu_mf: add HE-HSSI AFU driver

2022-05-26 Thread Wei Huang
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

[PATCH v5 4/5] raw/afu_mf: add HE-MEM AFU driver

2022-05-26 Thread Wei Huang
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

[PATCH v5 3/5] raw/afu_mf: add HE-LBK AFU driver

2022-05-26 Thread Wei Huang
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

[PATCH v5 2/5] raw/afu_mf: add N3000 AFU driver

2022-05-26 Thread Wei Huang
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

[PATCH v5 1/5] drivers/raw: introduce AFU raw device driver

2022-05-26 Thread Wei Huang
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

[PATCH v5 0/5] introduce afu_mf raw device driver

2022-05-26 Thread Wei Huang
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

[PATCH v3 5/5] guides/rawdevs: add description of ofs in ifpga doc

2022-05-25 Thread Wei Huang
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

[PATCH v3 4/5] raw/ifpga: support ofs card probe

2022-05-25 Thread Wei Huang
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

[PATCH v3 3/5] raw/ifpga: unregister interrupt in ifpga close function

2022-05-25 Thread Wei Huang
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

[PATCH v3 2/5] raw/ifpga: remove vdev when ifpga is closed

2022-05-25 Thread Wei Huang
: 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

[PATCH v3 1/5] raw/ifpga: remove experimental tag from ifpga APIs

2022-05-25 Thread Wei Huang
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

[PATCH v3 0/5] Support OFS card

2022-05-25 Thread Wei Huang
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

[PATCH v1 2/2] raw/ifpga: update secure rsu

2022-05-24 Thread Wei Huang
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

[PATCH v1 1/2] raw/ifpga/base: add pmci driver

2022-05-24 Thread Wei Huang
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

[PATCH v1 0/2] Update rsu implementation

2022-05-24 Thread Wei Huang
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

[PATCH v4] raw/afu_mf: introduce AFU MF device driver

2022-05-18 Thread Wei Huang
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

[PATCH v3] raw/afu_mf: introduce AFU MF device driver

2022-05-18 Thread Wei Huang
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

[PATCH v2 4/4] raw/ifpga: support ofs card probe

2022-05-18 Thread Wei Huang
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

[PATCH v2 3/4] raw/ifpga: unregister interrupt in ifpga close function

2022-05-18 Thread Wei Huang
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

[PATCH v2 2/4] raw/ifpga: remove vdev when ifpga is closed

2022-05-18 Thread Wei Huang
;) 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

[PATCH v2 1/4] raw/ifpga: remove experimental tag from ifpga APIs

2022-05-18 Thread Wei Huang
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

[PATCH v2 0/4] Support OFS card

2022-05-18 Thread Wei Huang
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

[PATCH v2] raw/afu_mf: introduce AFU MF device driver

2022-05-17 Thread Wei Huang
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

[PATCH v1] raw/afu_mf: introduce AFU MF device driver

2022-05-16 Thread Wei Huang
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

[PATCH v1 4/4] raw/ifpga: support ofs card probe

2022-05-16 Thread Wei Huang
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

[PATCH v1 2/4] raw/ifpga: remove vdev when ifpga is closed

2022-05-16 Thread Wei Huang
;) 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

[PATCH v1 3/4] raw/ifpga: unregister interrupt in ifpga close function

2022-05-16 Thread Wei Huang
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

[PATCH v1 1/4] raw/ifpga: remove experimental tag from ifpga APIs

2022-05-16 Thread Wei Huang
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

[PATCH v1 0/4] Support OFS card

2022-05-16 Thread Wei Huang
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

[PATCH v4] raw/ifpga: remove vdev when ifpga is closed

2022-04-20 Thread Wei Huang
;) Cc: sta...@dpdk.org Signed-off-by: Wei Huang Acked-by: Tianfei Zhang Acked-by: Rosen Xu --- v2: cleanup vdev_name no matter rte_vdev_uninit succeed or not --- v3: cleanup vdev_name in ifpga_cfg_remove --- v4: add fix information in log --- drivers/raw/ifpga/ifpga_rawd

[PATCH v3] raw/ifpga: remove vdev when ifpga is closed

2022-03-18 Thread Wei Huang
Virtual devices created on ifpga raw device are not removed when ifpga is closed. To avoid such problem, ifpga virtual device remove function is implemented, virtual device is removed in raw device close function. Signed-off-by: Wei Huang Acked-by: Tianfei Zhang Acked-by: Rosen Xu --- v2

[PATCH v1] raw/ifpga: initialize variable to avoid compile error

2022-03-16 Thread Wei Huang
, the variables are initialized when they are defined. Signed-off-by: Wei Huang Acked-by: Tianfei Zhang Acked-by: Rosen Xu --- drivers/raw/ifpga/ifpga_rawdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_raw

[PATCH v2] raw/ifpga: remove vdev when ifpga is closed

2022-03-14 Thread Wei Huang
Virtual devices created on ifpga raw device are not removed when ifpga is closed. To avoid such problem, ifpga virtual device remove function is implemented, virtual device is removed in raw device close function. Signed-off-by: Wei Huang Acked-by: Tianfei Zhang Acked-by: Rosen Xu --- v2

[PATCH v1] raw/ifpga: remove vdev when ifpga is closed

2022-03-10 Thread Wei Huang
Virtual devices created on ifpga raw device are not removed when ifpga is closed. To avoid such problem, ifpga virtual device remove function is implemented, virtual device is removed in raw device close function. Signed-off-by: Wei Huang Acked-by: Tianfei Zhang Acked-by: Rosen Xu --- drivers

[PATCH v1] raw/ifpga: fix monitor thread issues

2022-03-01 Thread Wei Huang
reference count is checked before canceling the thread. Fixes: 9c006c45 ("raw/ifpga: scan PCIe BDF device tree") Cc: sta...@dpdk.org Signed-off-by: Wei Huang Acked-by: Tianfei Zhang --- drivers/raw/ifpga/ifpga_rawdev.c | 62 ++-- drivers

[PATCH v5] raw/ifpga: initialize scalar variable before using

2022-02-20 Thread Wei Huang
Scalar variable sub_brg_bdf may be used uninitialized in function ifpga_rawdev_fill_info(). It is initialized now in this fix. Coverity issue: 375805 Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree") Cc: sta...@dpdk.org Signed-off-by: Wei Huang --- v2: add space after com

[PATCH v4] raw/ifpga: initialize scalar variable before using

2022-02-20 Thread Wei Huang
Scalar variable sub_brg_bdf may be used uninitialized in function ifpga_rawdev_fill_info(). It is initialized now in this fix. Coverity issue: 375805 Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree") Cc: sta...@dpdk.org Signed-off-by: Wei Huang --- v2: add space after com

[PATCH v3] raw/ifpga: initialize scalar variable before using

2022-02-20 Thread Wei Huang
Scalar variable sub_brg_bdf may be used uninitialized in function ifpga_rawdev_fill_info(). It is initialized now in this fix. Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree") Cc: sta...@dpdk.org Signed-off-by: Wei Huang --- v2: add space after comma to meet coding style r

[PATCH v1] raw/ifpga: fix interrupt handle allocation

2022-02-17 Thread Wei Huang
Allocate FPGA interrupt handle instance for each card. Fixes: e0a1aafe2af9 ("raw/ifpga: introduce IRQ functions") Cc: sta...@dpdk.org Signed-off-by: Wei Huang --- drivers/raw/ifpga/ifpga_rawdev.c | 94 drivers/raw/ifpga/ifpga_rawdev.h | 7 ++

[PATCH v2] raw/ifpga: initialize scalar variable before using

2022-02-17 Thread Wei Huang
Scalar variable sub_brg_bdf may be used uninitialized in function ifpga_rawdev_fill_info(), this fix initialize it. Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree") Cc: sta...@dpdk.org Signed-off-by: Wei Huang --- v2: add space after comma to meet coding style r

[PATCH v1] raw/ifpga: initialize scalar variable before using

2022-02-17 Thread Wei Huang
Scalar variable sub_brg_bdf may be used uninitialized in function ifpga_rawdev_fill_info(), this fix initialize it. Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree") Cc: sta...@dpdk.org Signed-off-by: Wei Huang --- drivers/raw/ifpga/ifpga_rawdev.c | 2 +- 1 file changed, 1

[PATCH v1] raw/ifpga: fix ifpga devices cleanup function

2022-01-25 Thread Wei Huang
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 |

[PATCH v1] raw/ifpga/base: fix port feature ID

2022-01-24 Thread Wei Huang
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

[PATCH v8] raw/ifpga: fix pthread cannot join

2022-01-23 Thread Wei Huang
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:

[PATCH v7] raw/ifpga: fix pthread cannot join

2022-01-23 Thread Wei Huang
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:

[PATCH v6] raw/ifpga: fix pthread cannot join

2022-01-21 Thread Wei Huang
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:

[PATCH v5] raw/ifpga: fix pthread cannot join

2022-01-20 Thread Wei Huang
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:

[PATCH v4] raw/ifpga: fix pthread cannot join

2022-01-20 Thread Wei Huang
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:

[PATCH v3] raw/ifpga: fix pthread cannot join

2022-01-19 Thread Wei Huang
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

[PATCH v2] raw/ifpga: fix pthread cannot join

2022-01-19 Thread Wei Huang
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

[PATCH v1] raw/ifpga: fix pthread cannot join

2022-01-18 Thread Wei Huang
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

  1   2   3   >