[dpdk-dev] [PATCH v1] raw/ifpga: fix ifpga device name format

2021-04-22 Thread Wei Huang
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

[dpdk-dev] [PATCH v2] raw/ifpga: fix ifpga device name format

2021-04-28 Thread Wei Huang
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 |

[dpdk-dev] [PATCH v2] raw/ifpga: fix ifpga device name format

2021-04-28 Thread Wei Huang
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 |

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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] 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] 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

[dpdk-dev] [PATCH v2 0/1] Fix coverity issues reported in DPDK-26381

2021-04-08 Thread Wei Huang
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

[dpdk-dev] [PATCH v2 1/1] raw/ifpga/base: check size before assigning

2021-04-08 Thread Wei Huang
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

[PATCH v1 0/4] Fix bugs found in raw/ifpga development for arrow creek

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

[PATCH v1 1/4] raw/ifpga/base: fix SPI transaction

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

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

2022-01-17 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

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

2022-01-17 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 4/4] raw/ifpga/base: fix port feature ID

2022-01-17 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 v2 0/4] Fix bugs found in raw/ifpga development for arrow creek

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

[PATCH v2 1/4] raw/ifpga/base: fix SPI transaction

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

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

2022-01-17 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

[PATCH v2 3/4] raw/ifpga: fix ifpga devices cleanup function

2022-01-17 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 v2 4/4] raw/ifpga/base: fix port feature ID

2022-01-17 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 v1] raw/ifpga/base: fix SPI transaction

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

[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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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] 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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(-)

[dpdk-dev] [PATCH v11 0/4] raw/ifpga: add extra OPAE APIs

2021-01-20 Thread Wei Huang
() - 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

[dpdk-dev] [PATCH v11 1/4] raw/ifpga: add fpga rsu function

2021-01-20 Thread Wei Huang
. 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

[dpdk-dev] [PATCH v11 2/4] raw/ifpga: add fpga property get function

2021-01-20 Thread Wei Huang
(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

[dpdk-dev] [PATCH v11 3/4] raw/ifpga: add OPAE API for OpenStack Cyborg

2021-01-20 Thread Wei Huang
. 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   2   3   >