Skip to contentSkip to conversation

Introduce Intel FPGA BUS

PATCH Superseded Rosen Xu 4 participants 19 messages Mar 21, 2018

v2 of 12 Superseded Latest is v12 →

lore
Share & tools
lore

Rosen Xu

author
#0 lore raw

v2 cover Introduce Intel FPGA BUS

Intel FPGA BUS in DPDK
-------------------------

This patch set introduces Intel FPGA BUS support in DPDK.

Motivation
==========

FPGA is used more and more widely in Cloud and NFV, one primary reason is that FPGA not only provide ASIC performance but also it's more flexible than ASIC. FPGA use Partial Reconfigure(PR) Parts of Bitstream to achieve its flexibility. Another reason is that one FPGA can be shared by different Users, and each User can use some of AFUs of One FPGA.

That means One FPGA Device Bitstream is divided into many Parts of Bitstream(each Part of Bitstream is defined as AFU-Accelerated Function Unit), and each AFU is a Hardware Acceleration Unit and it can dynamically Reload respectively.

Scope
=====

The Intel FPGA BUS implementation is target towards various FPGA Devices use PR to provide many Acceleration Function. Specific PMDs may also bind to its AFU. And Applications don't care they are using ASIC Acceleration or FPGA AFU Acceleration.

Proposed Solution
=================
- Involve Rawdev to take FPGA Partial Configuration(Download/PR)
- Defined FPGA-BUS for Acceleration Drivers of AFUs
- FPGA PCI Scan(1st Scan) follows DPDK UIO/VFIO PCI Scan Process, probe Intel FPGA Rawdev Driver
- AFU Scan(2nd Scan) bind DPDK Driver to FPGA Partial-Bitstream

Status
=====
With integrating Intel PSG FPGA Software Stack OPAE(Open Programmable Acceleration Engine) Share Code, Intel FPGA BUS runs well in Intel PSG FPGA Cards.

Patch set Information
====================

This patch set includes 6 patches:
* 0 : Introduce the Intel FPGA BUS library and enable its compilation.
* 1 : Adds command parse code, for start-up application
with Intel FPGA BUS.
* 2 : Adds Driver Probe Code, for AFU Drivers should probed after PCI Drivers.
* 3 : Adds Intel FPGA BUS library code, for AFU Device scan and AFU Drivers probe.
* 4 : Adds a Intel FPGA rawdevice driver, for FPGA Device Management such as PR.
* 5 : Adds Intel OPAE(Open Programmable Acceleration Engine) Share Code, it's Intel FPGA Software Stack.

Rosen Xu (5):
Add Intel FPGA BUS Command Parse Code
Add Intel FPGA BUS Probe Code
Add Intel FPGA BUS Lib Code
Add Intel FPGA BUS Rawdev Code
Add Intel OPAE Share Code

 drivers/bus/ifpga/Makefile                         |   64 +
 drivers/bus/ifpga/ifpga_bus.c                      |  573 +++++++
 drivers/bus/ifpga/ifpga_common.c                   |  154 ++
 drivers/bus/ifpga/ifpga_common.h                   |   25 +
 drivers/bus/ifpga/ifpga_logs.h                     |   32 +
 drivers/bus/ifpga/rte_bus_ifpga.h                  |  141 ++
 drivers/bus/ifpga/rte_bus_ifpga_version.map        |    8 +
 drivers/raw/Makefile                               |    1 +
 drivers/raw/ifpga_rawdev/Makefile                  |   63 +
 drivers/raw/ifpga_rawdev/base/Makefile             |   54 +
 drivers/raw/ifpga_rawdev/base/ifpga_api.c          |  543 +++++++
 drivers/raw/ifpga_rawdev/base/ifpga_api.h          |   77 +
 drivers/raw/ifpga_rawdev/base/ifpga_compat.h       |   84 +
 drivers/raw/ifpga_rawdev/base/ifpga_defines.h      | 1696 ++++++++++++++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c    |  861 ++++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h    |   38 +
 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c  |  340 ++++
 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h  |  197 +++
 drivers/raw/ifpga_rawdev/base/ifpga_fme.c          |  763 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c    |  328 ++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c    |  430 +++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c    |  742 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c       |  395 +++++
 drivers/raw/ifpga_rawdev/base/ifpga_hw.h           |  152 ++
 drivers/raw/ifpga_rawdev/base/ifpga_port.c         |  730 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_port_error.c   |  236 +++
 drivers/raw/ifpga_rawdev/base/opae_debug.c         |  126 ++
 drivers/raw/ifpga_rawdev/base/opae_debug.h         |   46 +
 drivers/raw/ifpga_rawdev/base/opae_hw_api.c        |  389 +++++
 drivers/raw/ifpga_rawdev/base/opae_hw_api.h        |  276 ++++
 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c  |  151 ++
 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h  |  293 ++++
 drivers/raw/ifpga_rawdev/base/opae_osdep.h         |  111 ++
 .../ifpga_rawdev/base/osdep_raw/osdep_generic.h    |  104 ++
 .../ifpga_rawdev/base/osdep_rte/osdep_generic.h    |   72 +
 drivers/raw/ifpga_rawdev/ifpga_rawdev.c            |  486 ++++++
 drivers/raw/ifpga_rawdev/ifpga_rawdev.h            |   38 +
 drivers/raw/ifpga_rawdev/ifpga_rawdev_example.c    |   99 ++
 .../ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map  |    4 +
 lib/librte_eal/common/eal_common_bus.c             |   14 +-
 lib/librte_eal/common/eal_common_options.c         |    8 +-
 lib/librte_eal/common/eal_options.h                |    2 +
 42 files changed, 10944 insertions(+), 2 deletions(-)
 create mode 100644 drivers/bus/ifpga/Makefile
 create mode 100644 drivers/bus/ifpga/ifpga_bus.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.h
 create mode 100644 drivers/bus/ifpga/ifpga_logs.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga_version.map
 create mode 100644 drivers/raw/ifpga_rawdev/Makefile
 create mode 100644 drivers/raw/ifpga_rawdev/base/Makefile
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_compat.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_defines.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_hw.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_port.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_port_error.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_debug.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_debug.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_hw_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_hw_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_osdep.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/osdep_raw/osdep_generic.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/osdep_rte/osdep_generic.h
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev.c
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev.h
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev_example.c
 create mode 100644 drivers/raw/ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map
Signature · 1 line
1.8.3.1
author
#1 lore raw

PATCH v2 1/5 Add Intel FPGA BUS Command Parse Code

---
 lib/librte_eal/common/eal_common_options.c | 8 +++++++-
 lib/librte_eal/common/eal_options.h        | 2 ++
 2 files changed, 9 insertions(+), 1 deletion(-)
lib/librte_eal/common/eal_common_options.c +7 -1
index 9f2f8d2..4fe0875 100644
@@ -73,6 +73,7 @@
 	{OPT_VDEV,              1, NULL, OPT_VDEV_NUM             },
 	{OPT_VFIO_INTR,         1, NULL, OPT_VFIO_INTR_NUM        },
 	{OPT_VMWARE_TSC_MAP,    0, NULL, OPT_VMWARE_TSC_MAP_NUM   },
+	{OPT_IFPGA,             1, NULL, OPT_IFPGA_NUM            },
 	{0,                     0, NULL, 0                        }
 };
 
@@ -1160,7 +1161,12 @@ static int xdigit2val(unsigned char c)
 
 		core_parsed = LCORE_OPT_MAP;
 		break;
-
+	case OPT_IFPGA_NUM:
+		if (eal_option_device_add(RTE_DEVTYPE_VIRTUAL,
+				optarg) < 0) {
+			return -1;
+		}
+		break;
 	/* don't know what to do, leave this to caller */
 	default:
 		return 1;
lib/librte_eal/common/eal_options.h +2 -0
index e86c711..bdbb2c4 100644
@@ -55,6 +55,8 @@ enum {
 	OPT_VFIO_INTR_NUM,
 #define OPT_VMWARE_TSC_MAP    "vmware-tsc-map"
 	OPT_VMWARE_TSC_MAP_NUM,
+#define OPT_IFPGA              "ifpga"
+	OPT_IFPGA_NUM,
 	OPT_LONG_MAX_NUM
 };
 
Signature · 1 line
1.8.3.1
author
#2 lore raw

PATCH v2 2/5 Add Intel FPGA BUS Probe Code

In reply to Rosen Xu
---
 lib/librte_eal/common/eal_common_bus.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
lib/librte_eal/common/eal_common_bus.c +13 -1
index 3e022d5..e3bcebe 100644
@@ -87,7 +87,7 @@ struct rte_bus_list rte_bus_list =
 rte_bus_probe(void)
 {
 	int ret;
-	struct rte_bus *bus, *vbus = NULL;
+	struct rte_bus *bus, *vbus = NULL, *ifpga_bus = NULL;
 
 	TAILQ_FOREACH(bus, &rte_bus_list, next) {
 		if (!strcmp(bus->name, "vdev")) {
@@ -95,6 +95,11 @@ struct rte_bus_list rte_bus_list =
 			continue;
 		}
 
+		if (!strcmp(bus->name, "ifpga")) {
+			ifpga_bus = bus;
+			continue;
+		}
+
 		ret = bus->probe();
 		if (ret)
 			RTE_LOG(ERR, EAL, "Bus (%s) probe failed.\n",
@@ -108,6 +113,13 @@ struct rte_bus_list rte_bus_list =
 				vbus->name);
 	}
 
+	if (ifpga_bus) {
+		ret = ifpga_bus->probe();
+		if (ret)
+			RTE_LOG(ERR, EAL, "Scan for (%s) bus failed.\n",
+				ifpga_bus->name);
+	}
+
 	return 0;
 }
 
Signature · 1 line
1.8.3.1
#3 lore raw

Re: [PATCH V2 2/5] Add Intel FPGA BUS Probe Code

Hello Rosen,

Quoted 31 lines · Rosen Xu
---
 lib/librte_eal/common/eal_common_bus.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
lib/librte_eal/common/eal_common_bus.c +6 -1
index 3e022d5..e3bcebe 100644
@@ -87,7 +87,7 @@ struct rte_bus_list rte_bus_list =
 rte_bus_probe(void)
 {
        int ret;
-       struct rte_bus *bus, *vbus = NULL;
+       struct rte_bus *bus, *vbus = NULL, *ifpga_bus = NULL;
 
        TAILQ_FOREACH(bus, &rte_bus_list, next) {
                if (!strcmp(bus->name, "vdev")) {
@@ -95,6 +95,11 @@ struct rte_bus_list rte_bus_list =
                        continue;
                }
 
+               if (!strcmp(bus->name, "ifpga")) {
+                       ifpga_bus = bus;
+                       continue;
+               }
+
                ret = bus->probe();
                if (ret)
                        RTE_LOG(ERR, EAL, "Bus (%s) probe failed.\n",

lib/librte_eal/common/eal_common_bus.c struct rte_bus_list rte_bus_list = · line 122

Quoted 10 lines
lib/librte_eal/common/eal_common_bus.c +7 -0
@@ -108,6 +113,13 @@ struct rte_bus_list rte_bus_list =
                                vbus->name);
        }
 
+       if (ifpga_bus) {
+               ret = ifpga_bus->probe();
+               if (ret)
+                       RTE_LOG(ERR, EAL, "Scan for (%s) bus failed.\n",
+                               ifpga_bus->name);
+       }
+

Just like my comment on RFC, I still think this is not the right thing to do. I understand you want a case where IFPGA bus gets probed only after PCI bus is probed.
There can be multiple ways. Two of them which I can quickly list without much deliberation:

1. A framework which can 'defer probing'
So, a bus can register for defer probe and its
check_if_probe_available() function callback is called through rte_bus_probe()
If it returns OK, its probe is called, else it is added to a defer
list which is called once all first register buses are probed.

2. Modify the priority in RTE_REGISTER_BUS and make it as an argument or a new variant which can take an argument.

It is not ok to change this function specifically for a bus is because this method is not scalable.

Is there some specific reason you would like to stick to this approach?

[...]

-
Shreyansh

#4 lore raw

Re: [PATCH V2 2/5] Add Intel FPGA BUS Probe Code

Quoted 58 lines · Shreyansh Jain

Hello Rosen,

Quoted 31 lines · Rosen Xu
---
 lib/librte_eal/common/eal_common_bus.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
lib/librte_eal/common/eal_common_bus.c +6 -1
index 3e022d5..e3bcebe 100644
@@ -87,7 +87,7 @@ struct rte_bus_list rte_bus_list =
 rte_bus_probe(void)
 {
        int ret;
-       struct rte_bus *bus, *vbus = NULL;
+       struct rte_bus *bus, *vbus = NULL, *ifpga_bus = NULL;
 
        TAILQ_FOREACH(bus, &rte_bus_list, next) {
                if (!strcmp(bus->name, "vdev")) {
@@ -95,6 +95,11 @@ struct rte_bus_list rte_bus_list =
                        continue;
                }
 
+               if (!strcmp(bus->name, "ifpga")) {
+                       ifpga_bus = bus;
+                       continue;
+               }
+
                ret = bus->probe();
                if (ret)
                        RTE_LOG(ERR, EAL, "Bus (%s) probe failed.\n",

lib/librte_eal/common/eal_common_bus.c struct rte_bus_list rte_bus_list = · line 122

Quoted 10 lines
lib/librte_eal/common/eal_common_bus.c +7 -0
@@ -108,6 +113,13 @@ struct rte_bus_list rte_bus_list =
                                vbus->name);
        }
 
+       if (ifpga_bus) {
+               ret = ifpga_bus->probe();
+               if (ret)
+                       RTE_LOG(ERR, EAL, "Scan for (%s) bus failed.\n",
+                               ifpga_bus->name);
+       }
+

Just like my comment on RFC, I still think this is not the right thing to do. I understand you want a case where IFPGA bus gets probed only after PCI bus is probed.
There can be multiple ways. Two of them which I can quickly list without much deliberation:

1. A framework which can 'defer probing'
So, a bus can register for defer probe and its
check_if_probe_available() function callback is called through rte_bus_probe()
If it returns OK, its probe is called, else it is added to a defer
list which is called once all first register buses are probed.

Quoted 5 lines

2. Modify the priority in RTE_REGISTER_BUS and make it as an argument or a new variant which can take an argument.

It is not ok to change this function specifically for a bus is because this method is not scalable.

A cross on my own comment - I know vdev is already doing this special probe but if we have a proper mechanism we can avoid that as well. Or, continue to consider vdev as special :D

Quoted 7 lines

Is there some specific reason you would like to stick to this approach?

[...]

-
Shreyansh

#5 lore raw

Re: [PATCH V2 2/5] Add Intel FPGA BUS Probe Code

In reply to Rosen Xu
Quoted 31 lines · Rosen Xu
---
 lib/librte_eal/common/eal_common_bus.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
lib/librte_eal/common/eal_common_bus.c +6 -1
index 3e022d5..e3bcebe 100644
@@ -87,7 +87,7 @@ struct rte_bus_list rte_bus_list =
 rte_bus_probe(void)
 {
 	int ret;
-	struct rte_bus *bus, *vbus = NULL;
+	struct rte_bus *bus, *vbus = NULL, *ifpga_bus = NULL;
 
 	TAILQ_FOREACH(bus, &rte_bus_list, next) {
 		if (!strcmp(bus->name, "vdev")) {
@@ -95,6 +95,11 @@ struct rte_bus_list rte_bus_list =
 			continue;
 		}
 
+		if (!strcmp(bus->name, "ifpga")) {
+			ifpga_bus = bus;
+			continue;
+		}
+
 		ret = bus->probe();
 		if (ret)
 			RTE_LOG(ERR, EAL, "Bus (%s) probe failed.\n",

lib/librte_eal/common/eal_common_bus.c struct rte_bus_list rte_bus_list = · line 122

Quoted 10 lines
lib/librte_eal/common/eal_common_bus.c +7 -0
@@ -108,6 +113,13 @@ struct rte_bus_list rte_bus_list =
 				vbus->name);
 	}
 
+	if (ifpga_bus) {
+		ret = ifpga_bus->probe();
+		if (ret)
+			RTE_LOG(ERR, EAL, "Scan for (%s) bus failed.\n",
+				ifpga_bus->name);
+	}
+

I do not think this solution is generic and scalable anough to get into common EAL code.

However, I do not think we need to come up with a dependency scheme (callback registration to check whether proper conditions are met to proceed with probing).

I think you have a hard-dependency on the PCI bus because you are simply probing a PCI device. You do not need an additional bus for this.

Signature · 2 lines
Gaëtan Rivet
6WIND
author
#6 lore raw

PATCH v2 3/5 Add Intel FPGA BUS Lib Code

In reply to Rosen Xu
---
 drivers/bus/ifpga/Makefile                  |  64 ++++
 drivers/bus/ifpga/ifpga_bus.c               | 573 ++++++++++++++++++++++++++++
 drivers/bus/ifpga/ifpga_common.c            | 154 ++++++++
 drivers/bus/ifpga/ifpga_common.h            |  25 ++
 drivers/bus/ifpga/ifpga_logs.h              |  32 ++
 drivers/bus/ifpga/rte_bus_ifpga.h           | 141 +++++++
 drivers/bus/ifpga/rte_bus_ifpga_version.map |   8 +
 7 files changed, 997 insertions(+)
 create mode 100644 drivers/bus/ifpga/Makefile
 create mode 100644 drivers/bus/ifpga/ifpga_bus.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.h
 create mode 100644 drivers/bus/ifpga/ifpga_logs.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga_version.map
drivers/bus/ifpga/Makefile new file +64 -0
new file mode 100644
index 0000000..c71f186
@@ -0,0 +1,64 @@
+#   BSD LICENSE
+#
+#   Copyright(c) 2010-2017 Intel Corporation. All rights reserved.
+#   All rights reserved.
+#
+#   Redistribution and use in source and binary forms, with or without
+#   modification, are permitted provided that the following conditions
+#   are met:
+#
+#     * Redistributions of source code must retain the above copyright
+#       notice, this list of conditions and the following disclaimer.
+#     * Redistributions in binary form must reproduce the above copyright
+#       notice, this list of conditions and the following disclaimer in
+#       the documentation and/or other materials provided with the
+#       distribution.
+#     * Neither the name of Intel Corporation nor the names of its
+#       contributors may be used to endorse or promote products derived
+#       from this software without specific prior written permission.
+#
+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+include $(RTE_SDK)/mk/rte.vars.mk
+
+#
+# library name
+#
+LIB = librte_bus_ifpga.a
+LIBABIVER := 1
+EXPORT_MAP := rte_bus_ifpga_version.map
+
+ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_DEBUG_INIT),y)
+CFLAGS += -O0 -g
+CFLAGS += "-Wno-error"
+else
+CFLAGS += -O3
+CFLAGS += $(WERROR_FLAGS)
+endif
+
+CFLAGS += -I$(RTE_SDK)/drivers/bus/ifpga
+CFLAGS += -I$(RTE_SDK)/drivers/bus/pci
+CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal
+CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common
+#CFLAGS += -I$(RTE_SDK)/lib/librte_rawdev
+#LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring -lrte_rawdev
+LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
+#LDLIBS += -lrte_ethdev
+
+VPATH += $(SRCDIR)/base
+
+SRCS-y += \
+        ifpga_bus.c \
+        ifpga_common.c
+
+include $(RTE_SDK)/mk/rte.lib.mk
drivers/bus/ifpga/ifpga_bus.c new file +573 -0

573 lines not on this page · raw message

drivers/bus/ifpga/ifpga_common.c new file +154 -0

154 lines not on this page · raw message

drivers/bus/ifpga/ifpga_common.h new file +25 -0
new file mode 100644
index 0000000..23b68d4
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2010-2015 Intel Corporation.
+ * Copyright 2013-2014 6WIND S.A.
+ */
+
+#ifndef _IFPGA_COMMON_H_
+#define _IFPGA_COMMON_H_
+
+int ifpga_get_string_arg(const char *key __rte_unused,
+	const char *value, void *extra_args);
+int ifpga_get_integer32_arg(const char *key __rte_unused,
+	const char *value, void *extra_args);
+int ifpga_get_integer64_arg(const char *key __rte_unused,
+	const char *value, void *extra_args);
+int ifpga_get_unsigned_long(const char *str, int base);
+int ifpga_get_bdf_arg(const char *key __rte_unused,
+	const char *value, void *extra_args);
+int ifpga_pci_addr_cmp_1(const struct rte_pci_addr *pci_addr0,
+	const struct rte_pci_addr *pci_addr1);
+int ifpga_afu_id_cmp(const struct rte_afu_id *afu_id0,
+	const struct rte_afu_id *afu_id1);
+int ifpga_pci_addr_cmp(const struct rte_device *dev,
+	const void *_pci_addr);
+
+#endif /* _IFPGA_COMMON_H_ */
drivers/bus/ifpga/ifpga_logs.h new file +32 -0
new file mode 100644
index 0000000..36b9b3f
@@ -0,0 +1,32 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2010-2015 Intel Corporation.
+ * Copyright 2013-2014 6WIND S.A.
+ */
+
+#ifndef _IFPGA_BUS_LOGS_H_
+#define _IFPGA_BUS_LOGS_H_
+
+#include <rte_log.h>
+
+extern int ifpga_bus_logtype;
+
+#define IFPGA_LOG(level, fmt, args...) \
+	rte_log(RTE_LOG_ ## level, ifpga_bus_logtype, "%s(): " fmt "\n", \
+		__func__, ##args)
+
+#define IFPGA_BUS_LOG(level, fmt, args...) \
+	rte_log(RTE_LOG_ ## level, ifpga_bus_logtype, "%s(): " fmt "\n", \
+		__func__, ##args)
+
+#define IFPGA_BUS_FUNC_TRACE() IFPGA_BUS_LOG(DEBUG, ">>")
+
+#define IFPGA_BUS_DEBUG(fmt, args...) \
+	IFPGA_BUS_LOG(DEBUG, fmt, ## args)
+#define IFPGA_BUS_INFO(fmt, args...) \
+	IFPGA_BUS_LOG(INFO, fmt, ## args)
+#define IFPGA_BUS_ERR(fmt, args...) \
+	IFPGA_BUS_LOG(ERR, fmt, ## args)
+#define IFPGA_BUS_WARN(fmt, args...) \
+	IFPGA_BUS_LOG(WARNING, fmt, ## args)
+
+#endif /* _IFPGA_BUS_LOGS_H_ */
drivers/bus/ifpga/rte_bus_ifpga.h new file +141 -0

141 lines not on this page · raw message

drivers/bus/ifpga/rte_bus_ifpga_version.map new file +8 -0
new file mode 100644
index 0000000..e2aa7da
@@ -0,0 +1,8 @@
+DPDK_17.11 {
+	global:
+
+    rte_ifpga_driver_register;
+    rte_ifpga_driver_unregister;
+
+	local: *;
+};
Signature · 1 line
1.8.3.1
#7 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

Hello Rosen,

inlined are some comments from a quick look...

Quoted 44 lines · Rosen Xu
---
 drivers/bus/ifpga/Makefile                  |  64 ++++
 drivers/bus/ifpga/ifpga_bus.c               | 573 ++++++++++++++++++++++++++++
 drivers/bus/ifpga/ifpga_common.c            | 154 ++++++++
 drivers/bus/ifpga/ifpga_common.h            |  25 ++
 drivers/bus/ifpga/ifpga_logs.h              |  32 ++
 drivers/bus/ifpga/rte_bus_ifpga.h           | 141 +++++++
 drivers/bus/ifpga/rte_bus_ifpga_version.map |   8 +
 7 files changed, 997 insertions(+)
 create mode 100644 drivers/bus/ifpga/Makefile
 create mode 100644 drivers/bus/ifpga/ifpga_bus.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.h
 create mode 100644 drivers/bus/ifpga/ifpga_logs.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga_version.map
drivers/bus/ifpga/Makefile new file +20 -0
new file mode 100644
index 0000000..c71f186
@@ -0,0 +1,64 @@
+#   BSD LICENSE
+#
+#   Copyright(c) 2010-2017 Intel Corporation. All rights reserved.
+#   All rights reserved.
+#
+#   Redistribution and use in source and binary forms, with or without
+#   modification, are permitted provided that the following conditions
+#   are met:
+#
+#     * Redistributions of source code must retain the above copyright
+#       notice, this list of conditions and the following disclaimer.
+#     * Redistributions in binary form must reproduce the above copyright
+#       notice, this list of conditions and the following disclaimer in
+#       the documentation and/or other materials provided with the
+#       distribution.
+#     * Neither the name of Intel Corporation nor the names of its
+#       contributors may be used to endorse or promote products derived
+#       from this software without specific prior written permission.
+#
+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

drivers/bus/ifpga/Makefile line 30

Quoted 10 lines
drivers/bus/ifpga/Makefile new file +10 -0
+#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Did you get a chance to go through the comment in RFC? I think you should replace the boilerplate with SPDX tags.

drivers/bus/ifpga/Makefile line 41

Quoted 11 lines
drivers/bus/ifpga/Makefile new file +11 -0
+
+include $(RTE_SDK)/mk/rte.vars.mk
+
+#
+# library name
+#
+LIB = librte_bus_ifpga.a
+LIBABIVER := 1
+EXPORT_MAP := rte_bus_ifpga_version.map
+
+ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_DEBUG_INIT),y)

I think there was a similar comment on RFC - "...DPAA2..." macro is a copy-paste error.

drivers/bus/ifpga/Makefile line 54

Quoted 13 lines
drivers/bus/ifpga/Makefile new file +13 -0
+CFLAGS += -O0 -g
+CFLAGS += "-Wno-error"
+else
+CFLAGS += -O3
+CFLAGS += $(WERROR_FLAGS)
+endif
+
+CFLAGS += -I$(RTE_SDK)/drivers/bus/ifpga
+CFLAGS += -I$(RTE_SDK)/drivers/bus/pci
+CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal
+CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common
+#CFLAGS += -I$(RTE_SDK)/lib/librte_rawdev
+#LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring -lrte_rawdev

If you don't need these lines, don't keep them. That is ok until RFC, but not in formal patch.

Quoted 16 lines
drivers/bus/ifpga/Makefile new file +10 -0
+LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
+#LDLIBS += -lrte_ethdev
+
+VPATH += $(SRCDIR)/base
+
+SRCS-y += \
+        ifpga_bus.c \
+        ifpga_common.c
+
+include $(RTE_SDK)/mk/rte.lib.mk
drivers/bus/ifpga/ifpga_bus.c new file +0 -0
new file mode 100644
index 0000000..ff72b74

drivers/bus/ifpga/ifpga_bus.c line 3

Quoted 3 lines
drivers/bus/ifpga/ifpga_bus.c new file +3 -0
@@ -0,0 +1,573 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2010-2014 Intel Corporation.
+ * Copyright 2013-2014 6WIND S.A.

Are you sure of the above copyright? I think this is a new file. Maybe your internal HW routines can have old copyrights.
Just a trivial comment, though.

Quoted 26 lines
drivers/bus/ifpga/ifpga_bus.c new file +26 -0
+ */
+
+#include <string.h>
+#include <inttypes.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <sys/queue.h>
+#include <sys/mman.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <fcntl.h>
+
+#include <rte_errno.h>
+#include <rte_bus.h>
+#include <rte_per_lcore.h>
+#include <rte_memory.h>
+#include <rte_memzone.h>
+#include <rte_eal.h>
+#include <rte_common.h>
+
+#include <rte_devargs.h>
+#include <rte_pci.h>
+#include <rte_bus_pci.h>
+#include <rte_kvargs.h>
+#include <rte_alarm.h>

drivers/bus/ifpga/ifpga_bus.c line 39

Quoted 10 lines
drivers/bus/ifpga/ifpga_bus.c new file +10 -0
+
+#include "rte_rawdev.h"
+#include "rte_rawdev_pmd.h"
+#include "rte_bus_ifpga.h"
+#include "ifpga_logs.h"
+#include "ifpga_common.h"
+
+int ifpga_bus_logtype;
+
+/*register a ifpga bus based driver */

Comments have ' ' <space> after the '/*'.
Maybe you can refer [1] once.

[1] https://dpdk.org/doc/guides/contributing/coding_style.html#coding-style

Quoted 7 lines
drivers/bus/ifpga/ifpga_bus.c new file +7 -0
+void rte_ifpga_driver_register(struct rte_afu_driver *driver)
+{
+       RTE_VERIFY(driver);
+
+       TAILQ_INSERT_TAIL(&rte_ifpga_bus.driver_list, driver, next);
+}
+

[..snip..]

drivers/bus/ifpga/ifpga_logs.h line 7

Quoted 13 lines
drivers/bus/ifpga/ifpga_logs.h new file +7 -0
new file mode 100644
index 0000000..36b9b3f
@@ -0,0 +1,32 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2010-2015 Intel Corporation.
+ * Copyright 2013-2014 6WIND S.A.
+ */
+
+#ifndef _IFPGA_BUS_LOGS_H_
+#define _IFPGA_BUS_LOGS_H_

Ideally this is name of the file, which is IFPFA_LOGS. But, technically this is not an issue.

drivers/bus/ifpga/ifpga_logs.h line 20

Quoted 13 lines
drivers/bus/ifpga/ifpga_logs.h new file +13 -0
+
+#include <rte_log.h>
+
+extern int ifpga_bus_logtype;
+
+#define IFPGA_LOG(level, fmt, args...) \
+       rte_log(RTE_LOG_ ## level, ifpga_bus_logtype, "%s(): " fmt "\n", \
+               __func__, ##args)
+
+#define IFPGA_BUS_LOG(level, fmt, args...) \
+       rte_log(RTE_LOG_ ## level, ifpga_bus_logtype, "%s(): " fmt "\n", \
+               __func__, ##args)
+

I noticed that at some places where you have used the above macros, you have added '\n' in the call. It would lead to double '\n' as your IFPGA_LOG and IFPGA_BUS_LOG already have one '\n'.

Quoted 12 lines
drivers/bus/ifpga/ifpga_logs.h new file +12 -0
+#define IFPGA_BUS_FUNC_TRACE() IFPGA_BUS_LOG(DEBUG, ">>")
+
+#define IFPGA_BUS_DEBUG(fmt, args...) \
+       IFPGA_BUS_LOG(DEBUG, fmt, ## args)
+#define IFPGA_BUS_INFO(fmt, args...) \
+       IFPGA_BUS_LOG(INFO, fmt, ## args)
+#define IFPGA_BUS_ERR(fmt, args...) \
+       IFPGA_BUS_LOG(ERR, fmt, ## args)
+#define IFPGA_BUS_WARN(fmt, args...) \
+       IFPGA_BUS_LOG(WARNING, fmt, ## args)
+
+#endif /* _IFPGA_BUS_LOGS_H_ */

[..snip..]

drivers/bus/ifpga/rte_bus_ifpga_version.map line 1

Quoted 8 lines
drivers/bus/ifpga/ifpga_logs.h new file +1 -0
+#endif /* _RTE_BUS_IFPGA_H_ */
drivers/bus/ifpga/rte_bus_ifpga_version.map new file +1 -0
new file mode 100644
index 0000000..e2aa7da
@@ -0,0 +1,8 @@
+DPDK_17.11 {

Should be DPDK 18.05

drivers/bus/ifpga/rte_bus_ifpga_version.map line 5

Quoted 4 lines
drivers/bus/ifpga/rte_bus_ifpga_version.map new file +4 -0
+       global:
+
+    rte_ifpga_driver_register;
+    rte_ifpga_driver_unregister;

And indentation is incorrect.

Quoted 6 lines
drivers/bus/ifpga/rte_bus_ifpga_version.map new file +3 -1
+
+       local: *;
+};
--

1.8.3.1

#8 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

In reply to Rosen Xu

Hi,

I have had issues compiling a few things here, have you checked build status before submitting?

Quoted 44 lines · Rosen Xu
---
 drivers/bus/ifpga/Makefile                  |  64 ++++
 drivers/bus/ifpga/ifpga_bus.c               | 573 ++++++++++++++++++++++++++++
 drivers/bus/ifpga/ifpga_common.c            | 154 ++++++++
 drivers/bus/ifpga/ifpga_common.h            |  25 ++
 drivers/bus/ifpga/ifpga_logs.h              |  32 ++
 drivers/bus/ifpga/rte_bus_ifpga.h           | 141 +++++++
 drivers/bus/ifpga/rte_bus_ifpga_version.map |   8 +
 7 files changed, 997 insertions(+)
 create mode 100644 drivers/bus/ifpga/Makefile
 create mode 100644 drivers/bus/ifpga/ifpga_bus.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.h
 create mode 100644 drivers/bus/ifpga/ifpga_logs.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga_version.map
drivers/bus/ifpga/Makefile new file +20 -0
new file mode 100644
index 0000000..c71f186
@@ -0,0 +1,64 @@
+#   BSD LICENSE
+#
+#   Copyright(c) 2010-2017 Intel Corporation. All rights reserved.
+#   All rights reserved.
+#
+#   Redistribution and use in source and binary forms, with or without
+#   modification, are permitted provided that the following conditions
+#   are met:
+#
+#     * Redistributions of source code must retain the above copyright
+#       notice, this list of conditions and the following disclaimer.
+#     * Redistributions in binary form must reproduce the above copyright
+#       notice, this list of conditions and the following disclaimer in
+#       the documentation and/or other materials provided with the
+#       distribution.
+#     * Neither the name of Intel Corporation nor the names of its
+#       contributors may be used to endorse or promote products derived
+#       from this software without specific prior written permission.
+#
+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

drivers/bus/ifpga/Makefile line 30

Quoted 10 lines
drivers/bus/ifpga/Makefile new file +10 -0
+#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Please use SPDX tags here instead.

drivers/bus/ifpga/Makefile line 41

Quoted 11 lines
drivers/bus/ifpga/Makefile new file +11 -0
+
+include $(RTE_SDK)/mk/rte.vars.mk
+
+#
+# library name
+#
+LIB = librte_bus_ifpga.a
+LIBABIVER := 1
+EXPORT_MAP := rte_bus_ifpga_version.map
+
+ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_DEBUG_INIT),y)

C/C issue, you probably do not want to rely on a DPAA option.

drivers/bus/ifpga/Makefile line 50

Quoted 9 lines
drivers/bus/ifpga/Makefile new file +9 -0
+CFLAGS += -O0 -g
+CFLAGS += "-Wno-error"
+else
+CFLAGS += -O3
+CFLAGS += $(WERROR_FLAGS)
+endif
+
+CFLAGS += -I$(RTE_SDK)/drivers/bus/ifpga
+CFLAGS += -I$(RTE_SDK)/drivers/bus/pci

It is not okay to directly include PCI elements.
Either you use the public PCI API, or you make the elements you need public (with proper versioning), or you come up with a different scheme.

But you cannot directly include the PCI bus.

drivers/bus/ifpga/Makefile line 54

Quoted 4 lines
drivers/bus/ifpga/Makefile new file +4 -0
+CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal
+CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common
+#CFLAGS += -I$(RTE_SDK)/lib/librte_rawdev
+#LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring -lrte_rawdev

Please clean-up those commented lines.

drivers/bus/ifpga/Makefile line 56

Quoted 2 lines
drivers/bus/ifpga/Makefile new file +2 -0
+LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
+#LDLIBS += -lrte_ethdev

Same here.

Quoted 14 lines
drivers/bus/ifpga/Makefile new file +8 -0
+
+VPATH += $(SRCDIR)/base
+
+SRCS-y += \
+        ifpga_bus.c \
+        ifpga_common.c
+
+include $(RTE_SDK)/mk/rte.lib.mk
drivers/bus/ifpga/ifpga_bus.c new file +0 -0
new file mode 100644
index 0000000..ff72b74

drivers/bus/ifpga/ifpga_bus.c line 3

Quoted 3 lines
drivers/bus/ifpga/ifpga_bus.c new file +3 -0
@@ -0,0 +1,573 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2010-2014 Intel Corporation.
+ * Copyright 2013-2014 6WIND S.A.

Copy-paste error.

Quoted 85 lines
drivers/bus/ifpga/ifpga_bus.c new file +85 -0
+ */
+
+#include <string.h>
+#include <inttypes.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <sys/queue.h>
+#include <sys/mman.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <fcntl.h>
+
+#include <rte_errno.h>
+#include <rte_bus.h>
+#include <rte_per_lcore.h>
+#include <rte_memory.h>
+#include <rte_memzone.h>
+#include <rte_eal.h>
+#include <rte_common.h>
+
+#include <rte_devargs.h>
+#include <rte_pci.h>
+#include <rte_bus_pci.h>
+#include <rte_kvargs.h>
+#include <rte_alarm.h>
+
+#include "rte_rawdev.h"
+#include "rte_rawdev_pmd.h"
+#include "rte_bus_ifpga.h"
+#include "ifpga_logs.h"
+#include "ifpga_common.h"
+
+int ifpga_bus_logtype;
+
+/*register a ifpga bus based driver */
+void rte_ifpga_driver_register(struct rte_afu_driver *driver)
+{
+	RTE_VERIFY(driver);
+
+	TAILQ_INSERT_TAIL(&rte_ifpga_bus.driver_list, driver, next);
+}
+
+/*un-register a fpga bus based driver */
+void rte_ifpga_driver_unregister(struct rte_afu_driver *driver)
+{
+	TAILQ_REMOVE(&rte_ifpga_bus.driver_list, driver, next);
+}
+
+static struct rte_ifpga_device *
+ifpga_find_ifpga_dev(const struct rte_pci_addr *pci_addr)
+{
+	struct rte_ifpga_device *ifpga_dev = NULL;
+
+	TAILQ_FOREACH(ifpga_dev, &rte_ifpga_bus.ifpga_list, next) {
+		if (!ifpga_pci_addr_cmp_1(&ifpga_dev->pci_addr, pci_addr))
+			return ifpga_dev;
+	}
+	return NULL;
+}
+
+static struct rte_afu_device *
+ifpga_find_afu_dev(const struct rte_afu_id *afu_id)
+{
+	struct rte_afu_device *afu_dev = NULL;
+
+	TAILQ_FOREACH(afu_dev, &rte_ifpga_bus.afu_list, next) {
+		if (!ifpga_afu_id_cmp(&afu_dev->id, afu_id))
+			return afu_dev;
+	}
+	return NULL;
+}
+
+static const char *valid_args[] = {
+#define IFPGA_ARG_BDF          "bdf"
+	IFPGA_ARG_BDF,
+#define IFPGA_ARG_PORT         "port"
+	IFPGA_ARG_PORT,
+#define IFPGA_ARG_PATH         "path"
+	IFPGA_ARG_PATH,
+#define IFPGA_ARG_UUID_HIGH    "uuid_high"
+	IFPGA_ARG_UUID_HIGH,
+#define IFPGA_ARG_UUID_LOW     "uuid_low"
+	IFPGA_ARG_UUID_LOW,
+#define IFPGA_ARG_PR_ENABLE     "pr_enable"

drivers/bus/ifpga/ifpga_bus.c line 98

Quoted 10 lines
drivers/bus/ifpga/ifpga_bus.c new file +10 -0
+	IFPGA_ARG_PR_ENABLE,
+#define IFPGA_ARG_DEBUG         "debug"
+	IFPGA_ARG_DEBUG,
+	NULL
+};
+
+/*
+ * Scan the content of the FPGA bus, and the devices in the devices
+ * list
+ */

So you seem to scan your bus by reading parameters given to the --ifpga EAL option.

Can you justify why you cannot use the PCI bus, have your FPGA be probed by a PCI driver, that would take those parameters as driver parameters, and spawn raw devices (one per bitstream) as needed as a result?

I see no reason this is not feasible. Unless you duly justify this approach, it seems unacceptable to me. You are subverting generic EAL code to bend things to your approach, without clear rationale.

Best regards,

Signature · 2 lines
Gaëtan Rivet
6WIND
#9 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

Quoted 8 lines · Gaëtan Rivet

Hi,

I have had issues compiling a few things here, have you checked build status before submitting?

Quoted 2 lines · Rosen Xu

---

<snip>

Quoted 9 lines

+

Quoted 4 lines

+/*
+ * Scan the content of the FPGA bus, and the devices in the devices
+ * list
+ */

So you seem to scan your bus by reading parameters given to the --ifpga EAL option.

Quoted 8 lines

Can you justify why you cannot use the PCI bus, have your FPGA be probed by a PCI driver, that would take those parameters as driver parameters, and spawn raw devices (one per bitstream) as needed as a result?

I see no reason this is not feasible. Unless you duly justify this approach, it seems unacceptable to me. You are subverting generic EAL code to bend things to your approach, without clear rationale.

While I agree with the comments in other emails about avoiding special-cases in the code that makes things not-scalable, I would take the view that using a bus-type is the correct choice for this. While you could have a single device that creates other devices, that is also true for all other buses as well. [Furthermore, I think it is incorrect assume that all devices on the FPGA bus would be raw devices, it's entirely possible to have cryptodevs, bbdevs or compress devs implemented in the AFUs].

Consider what a bus driver provides: it's a generic mechanism for scanning for devices - which all use a common connection method - for DPDK use, and mapping device drivers to those devices. For an FPGA device which presents multiple AFUs, this seems to be exactly what is required - a device driver to scan for devices and present them to DPDK. The FPGA bus driver will have to check each AFU and match it against the set of registered AFU device drivers to ensure that the crypto AFU gets the cryptodev driver, etc.

Logically, therefore, it is a bus - which just happens to be a sub-bus of PCI, i.e. presented as a PCI device. Consider also that it may be possible or even desirable, to use blacklisting and whitelisting for those AFU devices so that some AFUs could be used by one app, while others by another. If we just have a single PCI device, I think we'll find ourselves duplicating a lot of bus-related functionality inside the driver in that case.

Regards,
/Bruce

#10 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

Quoted 36 lines · Bruce Richardson
Quoted 8 lines · Gaėtan Rivet

Hi,

I have had issues compiling a few things here, have you checked build status before submitting?

Quoted 2 lines · Rosen Xu

---

<snip>

Quoted 9 lines

+

Quoted 4 lines

+/*
+ * Scan the content of the FPGA bus, and the devices in the devices
+ * list
+ */

So you seem to scan your bus by reading parameters given to the --ifpga EAL option.

Quoted 8 lines

Can you justify why you cannot use the PCI bus, have your FPGA be probed by a PCI driver, that would take those parameters as driver parameters, and spawn raw devices (one per bitstream) as needed as a result?

I see no reason this is not feasible. Unless you duly justify this approach, it seems unacceptable to me. You are subverting generic EAL code to bend things to your approach, without clear rationale.

While I agree with the comments in other emails about avoiding special-cases in the code that makes things not-scalable, I would take the view that using a bus-type is the correct choice for this. While you could have a single device that creates other devices, that is also true for all other buses as well. [Furthermore, I think it is incorrect assume that all devices on the FPGA bus would be raw devices, it's entirely possible to have cryptodevs, bbdevs or compress devs implemented in the AFUs].

Quoted 7 lines

Consider what a bus driver provides: it's a generic mechanism for scanning for devices - which all use a common connection method - for DPDK use, and mapping device drivers to those devices. For an FPGA device which presents multiple AFUs, this seems to be exactly what is required - a device driver to scan for devices and present them to DPDK. The FPGA bus driver will have to check each AFU and match it against the set of registered AFU device drivers to ensure that the crypto AFU gets the cryptodev driver, etc.

In my opinion, its' not a problem that a heirarchichal bus model like this is implemented in DPDK. That's being creative :)

But, here the issue is that same work can be done by a driver which can create devices of multiple types (bbdev, cryptodev, ethdev etc) and then use hotplugging (assuming that is supported by relevant driver) over respective bus. I don't think we necessarily need a bus for that. Is there some technical hurdle in following that model? Or, is there some cases which cannot be handled by not having a dependency bus?

Then, there is another problem of modifying the rte_bus code so that this bus initialization can be delayed. That is something which is not right in my opinion. That puts a fixed constraint on the EAL to look for a bus as being special (like vdev). If that is a blocking problem, it too needs to be solved - maybe separately.

Frankly, its not about 'can't-do-this' - but, I think this does warrant a good thought before being mainlined.

Quoted 11 lines

Logically, therefore, it is a bus - which just happens to be a sub-bus of PCI, i.e. presented as a PCI device. Consider also that it may be possible or even desirable, to use blacklisting and whitelisting for those AFU devices so that some AFUs could be used by one app, while others by another. If we just have a single PCI device, I think we'll find ourselves duplicating a lot of bus-related functionality inside the driver in that case.

Regards,
/Bruce

author
#11 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

In reply to Bruce Richardson

-----Original Message-----
From: Richardson, Bruce
Sent: Wednesday, March 21, 2018 21:35
To: Gaëtan Rivet <[email protected]>
Cc: Xu, Rosen <[email protected]>; [email protected]; Doherty, Declan <[email protected]>; [email protected]; Zhang, Tianfei <[email protected]>; Wu, Hao <[email protected]>
Subject: Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

Quoted 8 lines · Gaëtan Rivet
Quoted 8 lines

Hi,

I have had issues compiling a few things here, have you checked build status before submitting?

Quoted 2 lines · Rosen Xu

---

<snip>

Quoted 31 lines
Quoted 9 lines

+

Quoted 4 lines

+/*
+ * Scan the content of the FPGA bus, and the devices in the devices
+ * list
+ */

So you seem to scan your bus by reading parameters given to the --ifpga EAL option.

Quoted 8 lines

Can you justify why you cannot use the PCI bus, have your FPGA be probed by a PCI driver, that would take those parameters as driver parameters, and spawn raw devices (one per bitstream) as needed as a result?

I see no reason this is not feasible. Unless you duly justify this approach, it seems unacceptable to me. You are subverting generic EAL code to bend things to your approach, without clear rationale.

While I agree with the comments in other emails about avoiding special-cases in the code
that makes things not-scalable, I would take the view that using a bus-type is the correct
choice for this. While you could have a single device that creates other devices, that is also
true for all other buses as well. [Furthermore, I think it is incorrect assume that all devices
on the FPGA bus would be raw devices, it's entirely possible to have cryptodevs, bbdevs or compress devs implemented in the AFUs].

Consider what a bus driver provides: it's a generic mechanism for scanning for devices - which all use a common connection method - for DPDK use, and mapping device drivers to those devices. For an FPGA device which presents multiple AFUs, this seems to be exactly what is required - a device driver to scan for devices and present them to DPDK. The FPGA bus driver will have to check each AFU and match it against the set of registered AFU device drivers to ensure that the crypto AFU gets the cryptodev driver, etc.

Quoted 6 lines

Logically, therefore, it is a bus - which just happens to be a sub-bus of PCI, i.e. presented as a PCI device. Consider also that it may be possible or even desirable, to use blacklisting and whitelisting for those AFU devices so that some AFUs could be used by one app, while others by another. If we just have a single PCI device, I think we'll find ourselves duplicating a lot of bus-related functionality inside the driver in that case.

In our FPGA Usage Framework, each FPAG Bitstream is divided 2 parts, one part is only one Blue AFU, another part consist of many Green AFUs.

Blue AFU includes PCIe Interface and FPGA PR Unit, Blue AFU is fixed after OS Initialization, because if we change Blue AFU, the PCIe Interface needed to be rescanned and the OS need to reboot.

Green AFUs can be dynamically PR by different Users.

The benefit of this FPGA Architecture is that we can dynamically change Green AFUs, but OS don't need to rescan the FPGA PCIe Interface. For Cloud Scenario the FPGA Device can be viewed a common resource pools such as DDR Memory, and it can be easily assigned to different users at some time. For TelCom/NFV Scenario, we can easily upgrade the Acceleration AFU but the server don't need to reboot.

For Software Usage, there many FPGA Device in one system, some have the same Green AFUs and some have different Green AFUs, same Green AFUs means same Acceleration, and it will use same driver. So we want to involve a new bus,
which can easily bind the same Green AFUs with its driver.

Regards,
/Bruce

#12 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

In reply to Bruce Richardson

Hi Bruce,

Quoted 52 lines · Bruce Richardson
Quoted 8 lines · Gaëtan Rivet

Hi,

I have had issues compiling a few things here, have you checked build status before submitting?

Quoted 2 lines · Rosen Xu

---

<snip>

Quoted 9 lines

+

Quoted 4 lines

+/*
+ * Scan the content of the FPGA bus, and the devices in the devices
+ * list
+ */

So you seem to scan your bus by reading parameters given to the --ifpga EAL option.

Quoted 8 lines

Can you justify why you cannot use the PCI bus, have your FPGA be probed by a PCI driver, that would take those parameters as driver parameters, and spawn raw devices (one per bitstream) as needed as a result?

I see no reason this is not feasible. Unless you duly justify this approach, it seems unacceptable to me. You are subverting generic EAL code to bend things to your approach, without clear rationale.

While I agree with the comments in other emails about avoiding special-cases in the code that makes things not-scalable, I would take the view that using a bus-type is the correct choice for this. While you could have a single device that creates other devices, that is also true for all other buses as well. [Furthermore, I think it is incorrect assume that all devices on the FPGA bus would be raw devices, it's entirely possible to have cryptodevs, bbdevs or compress devs implemented in the AFUs].

Consider what a bus driver provides: it's a generic mechanism for scanning for devices - which all use a common connection method - for DPDK use, and mapping device drivers to those devices. For an FPGA device which presents multiple AFUs, this seems to be exactly what is required - a device driver to scan for devices and present them to DPDK. The FPGA bus driver will have to check each AFU and match it against the set of registered AFU device drivers to ensure that the crypto AFU gets the cryptodev driver, etc.

Logically, therefore, it is a bus - which just happens to be a sub-bus of PCI, i.e. presented as a PCI device. Consider also that it may be possible or even desirable, to use blacklisting and whitelisting for those AFU devices so that some AFUs could be used by one app, while others by another. If we just have a single PCI device, I think we'll find ourselves duplicating a lot of bus-related functionality inside the driver in that case.

Quoted 2 lines

Regards,
/Bruce

It makes sense indeed if you need to specialize several drivers specific to AFU mappings.

So, taking the bus approach, it seems we almost all agree that the current probe is not good enough.

I think you will run into issues if you registered your bus upon probing a PCI driver. Instead, would it be possible to:

* not add the EAL option --ifpga.
* register the ifpga bus like any other.
* have a PCI driver that hotplug an IFPGA device, triggering a scan and probe on the ifpga bus using the PCI device parameters. Essentially you would find there the parameters that could be given previously to the --ifpga option.

There should not be any EAL modification necessary.

The only downside I see would be that having both IFPGA device (for triggering bus ops) and afterward using AFU devices on this bus could be confusing. However, it seems safer and still cleaner overall.

Signature · 2 lines
Gaëtan Rivet
6WIND
#13 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

Quoted 74 lines · Gaëtan Rivet

Hi Bruce,

Quoted 52 lines · Bruce Richardson
Quoted 8 lines · Gaëtan Rivet

Hi,

I have had issues compiling a few things here, have you checked build status before submitting?

Quoted 2 lines · Rosen Xu

---

<snip>

Quoted 9 lines

+

Quoted 4 lines

+/*
+ * Scan the content of the FPGA bus, and the devices in the devices
+ * list
+ */

So you seem to scan your bus by reading parameters given to the --ifpga EAL option.

Quoted 8 lines

Can you justify why you cannot use the PCI bus, have your FPGA be probed by a PCI driver, that would take those parameters as driver parameters, and spawn raw devices (one per bitstream) as needed as a result?

I see no reason this is not feasible. Unless you duly justify this approach, it seems unacceptable to me. You are subverting generic EAL code to bend things to your approach, without clear rationale.

While I agree with the comments in other emails about avoiding special-cases in the code that makes things not-scalable, I would take the view that using a bus-type is the correct choice for this. While you could have a single device that creates other devices, that is also true for all other buses as well. [Furthermore, I think it is incorrect assume that all devices on the FPGA bus would be raw devices, it's entirely possible to have cryptodevs, bbdevs or compress devs implemented in the AFUs].

Consider what a bus driver provides: it's a generic mechanism for scanning for devices - which all use a common connection method - for DPDK use, and mapping device drivers to those devices. For an FPGA device which presents multiple AFUs, this seems to be exactly what is required - a device driver to scan for devices and present them to DPDK. The FPGA bus driver will have to check each AFU and match it against the set of registered AFU device drivers to ensure that the crypto AFU gets the cryptodev driver, etc.

Logically, therefore, it is a bus - which just happens to be a sub-bus of PCI, i.e. presented as a PCI device. Consider also that it may be possible or even desirable, to use blacklisting and whitelisting for those AFU devices so that some AFUs could be used by one app, while others by another. If we just have a single PCI device, I think we'll find ourselves duplicating a lot of bus-related functionality inside the driver in that case.

Quoted 2 lines

Regards,
/Bruce

It makes sense indeed if you need to specialize several drivers specific to AFU mappings.

So, taking the bus approach, it seems we almost all agree that the current probe is not good enough.

I think you will run into issues if you registered your bus upon probing a PCI driver. Instead, would it be possible to:

* not add the EAL option --ifpga.
* register the ifpga bus like any other.
* have a PCI driver that hotplug an IFPGA device, triggering a scan and probe on the ifpga bus using the PCI device parameters. Essentially you would find there the parameters that could be given previously to the --ifpga option.

Quoted 5 lines

There should not be any EAL modification necessary.

The only downside I see would be that having both IFPGA device (for triggering bus ops) and afterward using AFU devices on this bus could be confusing. However, it seems safer and still cleaner overall.

Actually, just to build upon this remark, and thinking a little more about it:

You would not need an additional "special" type of ifpga devices. Upon attempting to hotplug an ifpga device, you would have a new rte_devargs having the parameters within inserted, addressed to your bus.

During scan, you would find this devargs, read the relevant parameters and parse them (exactly like it is now implemented). You would then be able to spawn as needed any number of rte_afu_device within your bus and the scan would be complete.

The only trickery would be afterward, because you'd need at least one device that would be detached and having the name given in the devargs. So you would have to name your rte_afu_device after the devargs passed as parameter to the plug, essentially having all of them using the same name.

Nothing prevents you from renaming your AFU devices after bus->plug, but the EAL will rely on it for matching and knowing the scan went ok.

Signature · 2 lines
Gaëtan Rivet
6WIND
#14 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

Quoted 94 lines · Gaëtan Rivet
Quoted 74 lines · Gaëtan Rivet

Hi Bruce,

Quoted 52 lines · Bruce Richardson
Quoted 8 lines · Gaëtan Rivet

Hi,

I have had issues compiling a few things here, have you checked build status before submitting?

Quoted 2 lines · Rosen Xu

---

<snip>

Quoted 9 lines

+

Quoted 4 lines

+/*
+ * Scan the content of the FPGA bus, and the devices in the devices
+ * list
+ */

So you seem to scan your bus by reading parameters given to the --ifpga EAL option.

Quoted 8 lines

Can you justify why you cannot use the PCI bus, have your FPGA be probed by a PCI driver, that would take those parameters as driver parameters, and spawn raw devices (one per bitstream) as needed as a result?

I see no reason this is not feasible. Unless you duly justify this approach, it seems unacceptable to me. You are subverting generic EAL code to bend things to your approach, without clear rationale.

While I agree with the comments in other emails about avoiding special-cases in the code that makes things not-scalable, I would take the view that using a bus-type is the correct choice for this. While you could have a single device that creates other devices, that is also true for all other buses as well. [Furthermore, I think it is incorrect assume that all devices on the FPGA bus would be raw devices, it's entirely possible to have cryptodevs, bbdevs or compress devs implemented in the AFUs].

Consider what a bus driver provides: it's a generic mechanism for scanning for devices - which all use a common connection method - for DPDK use, and mapping device drivers to those devices. For an FPGA device which presents multiple AFUs, this seems to be exactly what is required - a device driver to scan for devices and present them to DPDK. The FPGA bus driver will have to check each AFU and match it against the set of registered AFU device drivers to ensure that the crypto AFU gets the cryptodev driver, etc.

Logically, therefore, it is a bus - which just happens to be a sub-bus of PCI, i.e. presented as a PCI device. Consider also that it may be possible or even desirable, to use blacklisting and whitelisting for those AFU devices so that some AFUs could be used by one app, while others by another. If we just have a single PCI device, I think we'll find ourselves duplicating a lot of bus-related functionality inside the driver in that case.

Quoted 2 lines

Regards,
/Bruce

It makes sense indeed if you need to specialize several drivers specific to AFU mappings.

So, taking the bus approach, it seems we almost all agree that the current probe is not good enough.

I think you will run into issues if you registered your bus upon probing a PCI driver. Instead, would it be possible to:

* not add the EAL option --ifpga.
* register the ifpga bus like any other.
* have a PCI driver that hotplug an IFPGA device, triggering a scan and probe on the ifpga bus using the PCI device parameters. Essentially you would find there the parameters that could be given previously to the --ifpga option.

Quoted 5 lines

There should not be any EAL modification necessary.

The only downside I see would be that having both IFPGA device (for triggering bus ops) and afterward using AFU devices on this bus could be confusing. However, it seems safer and still cleaner overall.

Actually, just to build upon this remark, and thinking a little more about it:

You would not need an additional "special" type of ifpga devices. Upon attempting to hotplug an ifpga device, you would have a new rte_devargs having the parameters within inserted, addressed to your bus.

During scan, you would find this devargs, read the relevant parameters and parse them (exactly like it is now implemented). You would then be able to spawn as needed any number of rte_afu_device within your bus and the scan would be complete.

Quoted 9 lines

The only trickery would be afterward, because you'd need at least one device that would be detached and having the name given in the devargs. So you would have to name your rte_afu_device after the devargs passed as parameter to the plug, essentially having all of them using the same name.

Nothing prevents you from renaming your AFU devices after bus->plug, but the EAL will rely on it for matching and knowing the scan went ok.

Thanks, Gaëtan.

So, just to confirm I understand the suggestion correctly, you are proposing that we create and use the FPGA bus as normal, except that the scan will not report any devices. Then when an FPGA PCI device is discovered, we use the hotplug infrastructure to trigger a real scan of the FPGA for AFU devices, and do the whole driver mapping etc. process then. Is that the basic idea you suggest?

/Bruce

#15 lore raw

Re: [PATCH V2 3/5] Add Intel FPGA BUS Lib Code

Quoted 104 lines · Bruce Richardson
Quoted 94 lines · Gaëtan Rivet
Quoted 74 lines · Gaëtan Rivet

Hi Bruce,

Quoted 52 lines · Bruce Richardson
Quoted 8 lines · Gaëtan Rivet

Hi,

I have had issues compiling a few things here, have you checked build status before submitting?

Quoted 2 lines · Rosen Xu

---

<snip>

Quoted 9 lines

+

Quoted 4 lines

+/*
+ * Scan the content of the FPGA bus, and the devices in the devices
+ * list
+ */

So you seem to scan your bus by reading parameters given to the --ifpga EAL option.

Quoted 8 lines

Can you justify why you cannot use the PCI bus, have your FPGA be probed by a PCI driver, that would take those parameters as driver parameters, and spawn raw devices (one per bitstream) as needed as a result?

I see no reason this is not feasible. Unless you duly justify this approach, it seems unacceptable to me. You are subverting generic EAL code to bend things to your approach, without clear rationale.

While I agree with the comments in other emails about avoiding special-cases in the code that makes things not-scalable, I would take the view that using a bus-type is the correct choice for this. While you could have a single device that creates other devices, that is also true for all other buses as well. [Furthermore, I think it is incorrect assume that all devices on the FPGA bus would be raw devices, it's entirely possible to have cryptodevs, bbdevs or compress devs implemented in the AFUs].

Consider what a bus driver provides: it's a generic mechanism for scanning for devices - which all use a common connection method - for DPDK use, and mapping device drivers to those devices. For an FPGA device which presents multiple AFUs, this seems to be exactly what is required - a device driver to scan for devices and present them to DPDK. The FPGA bus driver will have to check each AFU and match it against the set of registered AFU device drivers to ensure that the crypto AFU gets the cryptodev driver, etc.

Logically, therefore, it is a bus - which just happens to be a sub-bus of PCI, i.e. presented as a PCI device. Consider also that it may be possible or even desirable, to use blacklisting and whitelisting for those AFU devices so that some AFUs could be used by one app, while others by another. If we just have a single PCI device, I think we'll find ourselves duplicating a lot of bus-related functionality inside the driver in that case.

Quoted 2 lines

Regards,
/Bruce

It makes sense indeed if you need to specialize several drivers specific to AFU mappings.

So, taking the bus approach, it seems we almost all agree that the current probe is not good enough.

I think you will run into issues if you registered your bus upon probing a PCI driver. Instead, would it be possible to:

* not add the EAL option --ifpga.
* register the ifpga bus like any other.
* have a PCI driver that hotplug an IFPGA device, triggering a scan and probe on the ifpga bus using the PCI device parameters. Essentially you would find there the parameters that could be given previously to the --ifpga option.

Quoted 5 lines

There should not be any EAL modification necessary.

The only downside I see would be that having both IFPGA device (for triggering bus ops) and afterward using AFU devices on this bus could be confusing. However, it seems safer and still cleaner overall.

Actually, just to build upon this remark, and thinking a little more about it:

You would not need an additional "special" type of ifpga devices. Upon attempting to hotplug an ifpga device, you would have a new rte_devargs having the parameters within inserted, addressed to your bus.

During scan, you would find this devargs, read the relevant parameters and parse them (exactly like it is now implemented). You would then be able to spawn as needed any number of rte_afu_device within your bus and the scan would be complete.

Quoted 9 lines

The only trickery would be afterward, because you'd need at least one device that would be detached and having the name given in the devargs. So you would have to name your rte_afu_device after the devargs passed as parameter to the plug, essentially having all of them using the same name.

Nothing prevents you from renaming your AFU devices after bus->plug, but the EAL will rely on it for matching and knowing the scan went ok.

Quoted 8 lines

Thanks, Gaëtan.

So, just to confirm I understand the suggestion correctly, you are proposing that we create and use the FPGA bus as normal, except that the scan will not report any devices. Then when an FPGA PCI device is discovered, we use the hotplug infrastructure to trigger a real scan of the FPGA for AFU devices, and do the whole driver mapping etc. process then. Is that the basic idea you suggest?

Yes.

Signature · 2 lines
Gaëtan Rivet
6WIND
author
#16 lore raw

PATCH v2 4/5 Add Intel FPGA BUS Rawdev Code

In reply to Rosen Xu
---
 drivers/raw/Makefile                               |   1 +
 drivers/raw/ifpga_rawdev/Makefile                  |  63 +++
 drivers/raw/ifpga_rawdev/ifpga_rawdev.c            | 486 +++++++++++++++++++++
 drivers/raw/ifpga_rawdev/ifpga_rawdev.h            |  38 ++
 drivers/raw/ifpga_rawdev/ifpga_rawdev_example.c    |  99 +++++
 .../ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map  |   4 +
 6 files changed, 691 insertions(+)
 create mode 100644 drivers/raw/ifpga_rawdev/Makefile
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev.c
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev.h
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev_example.c
 create mode 100644 drivers/raw/ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map
drivers/raw/Makefile +1 -0
index da7c8b4..47cc567 100644
@@ -5,5 +5,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
 
 # DIRS-$(<configuration>) += <directory>
 DIRS-$(CONFIG_RTE_LIBRTE_PMD_SKELETON_RAWDEV) += skeleton_rawdev
+DIRS-y += ifpga_rawdev
 
 include $(RTE_SDK)/mk/rte.subdir.mk
drivers/raw/ifpga_rawdev/Makefile new file +63 -0

63 lines not on this page · raw message

drivers/raw/ifpga_rawdev/ifpga_rawdev.c new file +486 -0

486 lines not on this page · raw message

drivers/raw/ifpga_rawdev/ifpga_rawdev.h new file +38 -0
new file mode 100644
index 0000000..f346d1a
@@ -0,0 +1,38 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2010-2015 Intel Corporation.
+ * Copyright 2013-2014 6WIND S.A.
+ */
+
+#ifndef _IFPGA_RAWDEV_H_
+#define _IFPGA_RAWDEV_H_
+
+extern int ifpga_rawdev_logtype;
+
+#define IFPGA_RAWDEV_PMD_LOG(level, fmt, args...) \
+	rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "%s(): " fmt "\n", \
+		__func__, ##args)
+
+#define IFPGA_RAWDEV_PMD_FUNC_TRACE() IFPGA_RAWDEV_PMD_LOG(DEBUG, ">>")
+
+#define IFPGA_RAWDEV_PMD_DEBUG(fmt, args...) \
+	IFPGA_RAWDEV_PMD_LOG(DEBUG, fmt, ## args)
+#define IFPGA_RAWDEV_PMD_INFO(fmt, args...) \
+	IFPGA_RAWDEV_PMD_LOG(INFO, fmt, ## args)
+#define IFPGA_RAWDEV_PMD_ERR(fmt, args...) \
+	IFPGA_RAWDEV_PMD_LOG(ERR, fmt, ## args)
+#define IFPGA_RAWDEV_PMD_WARN(fmt, args...) \
+	IFPGA_RAWDEV_PMD_LOG(WARNING, fmt, ## args)
+
+enum ifpga_rawdev_device_state {
+	IFPGA_IDLE,
+	IFPGA_READY,
+	IFPGA_ERROR
+};
+
+static inline struct opae_adapter *
+ifpga_rawdev_get_priv(const struct rte_rawdev *rawdev)
+{
+	return rawdev->dev_private;
+}
+
+#endif /* _IFPGA_RAWDEV_H_ */
drivers/raw/ifpga_rawdev/ifpga_rawdev_example.c new file +99 -0

99 lines not on this page · raw message

drivers/raw/ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map new file +4 -0
new file mode 100644
index 0000000..179140f
@@ -0,0 +1,4 @@
+DPDK_18.02 {
+
+	local: *;
+};
Signature · 1 line
1.8.3.1
author
#17 lore raw

PATCH v2 5/5 Add Intel OPAE Share Code

In reply to Rosen Xu
---
 drivers/raw/ifpga_rawdev/base/Makefile             |   54 +
 drivers/raw/ifpga_rawdev/base/ifpga_api.c          |  543 +++++++
 drivers/raw/ifpga_rawdev/base/ifpga_api.h          |   77 +
 drivers/raw/ifpga_rawdev/base/ifpga_compat.h       |   84 +
 drivers/raw/ifpga_rawdev/base/ifpga_defines.h      | 1696 ++++++++++++++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c    |  861 ++++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h    |   38 +
 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c  |  340 ++++
 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h  |  197 +++
 drivers/raw/ifpga_rawdev/base/ifpga_fme.c          |  763 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c    |  328 ++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c    |  430 +++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c    |  742 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c       |  395 +++++
 drivers/raw/ifpga_rawdev/base/ifpga_hw.h           |  152 ++
 drivers/raw/ifpga_rawdev/base/ifpga_port.c         |  730 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_port_error.c   |  236 +++
 drivers/raw/ifpga_rawdev/base/opae_debug.c         |  126 ++
 drivers/raw/ifpga_rawdev/base/opae_debug.h         |   46 +
 drivers/raw/ifpga_rawdev/base/opae_hw_api.c        |  389 +++++
 drivers/raw/ifpga_rawdev/base/opae_hw_api.h        |  276 ++++
 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c  |  151 ++
 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h  |  293 ++++
 drivers/raw/ifpga_rawdev/base/opae_osdep.h         |  111 ++
 .../ifpga_rawdev/base/osdep_raw/osdep_generic.h    |  104 ++
 .../ifpga_rawdev/base/osdep_rte/osdep_generic.h    |   72 +
 26 files changed, 9234 insertions(+)
 create mode 100644 drivers/raw/ifpga_rawdev/base/Makefile
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_compat.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_defines.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_hw.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_port.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_port_error.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_debug.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_debug.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_hw_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_hw_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_osdep.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/osdep_raw/osdep_generic.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/osdep_rte/osdep_generic.h
drivers/raw/ifpga_rawdev/base/Makefile new file +54 -0
new file mode 100644
index 0000000..9c0d64b
@@ -0,0 +1,54 @@
+#   BSD LICENSE
+#
+#   Copyright(c) 2017-2018 Intel Corporation. All rights reserved.
+#   All rights reserved.
+#
+#   Redistribution and use in source and binary forms, with or without
+#   modification, are permitted provided that the following conditions
+#   are met:
+#
+#     * Redistributions of source code must retain the above copyright
+#       notice, this list of conditions and the following disclaimer.
+#     * Redistributions in binary form must reproduce the above copyright
+#       notice, this list of conditions and the following disclaimer in
+#       the documentation and/or other materials provided with the
+#       distribution.
+#     * Neither the name of Intel Corporation nor the names of its
+#       contributors may be used to endorse or promote products derived
+#       from this software without specific prior written permission.
+#
+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ifneq ($(CONFIG_RTE_LIBRTE_EAL),)
+OSDEP := osdep_rte
+else
+OSDEP := osdep_raw
+endif
+
+CFLAGS += -I$(RTE_SDK)/drivers/raw/ifpga_rawdev/base/$(OSDEP)
+
+SRCS-y += ifpga_api.c
+SRCS-y += ifpga_enumerate.c
+SRCS-y += ifpga_feature_dev.c
+SRCS-y += ifpga_fme.c
+SRCS-y += ifpga_fme_iperf.c
+SRCS-y += ifpga_fme_dperf.c
+SRCS-y += ifpga_fme_error.c
+SRCS-y += ifpga_port.c
+SRCS-y += ifpga_port_error.c
+SRCS-y += ifpga_fme_pr.c
+SRCS-y += opae_hw_api.c
+SRCS-y += opae_ifpga_hw_api.c
+SRCS-y += opae_debug.c
+
+SRCS-y += $(wildcard $(SRCDIR)/base/$(OSDEP)/*.c)
drivers/raw/ifpga_rawdev/base/ifpga_api.c new file +543 -0

543 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_api.h new file +77 -0

77 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_compat.h new file +84 -0

84 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_defines.h new file +1696 -0

1,696 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c new file +861 -0

546 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h new file +38 -0
new file mode 100644
index 0000000..0df7b2f

Lines of this file are not shown. View the raw message.

drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c new file +340 -0

340 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h new file +197 -0

197 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_fme.c new file +763 -0

763 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c new file +328 -0

328 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c new file +430 -0

430 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c new file +742 -0

742 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c new file +395 -0

395 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_hw.h new file +152 -0

152 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_port.c new file +730 -0

730 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/ifpga_port_error.c new file +236 -0

236 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/opae_debug.c new file +126 -0

126 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/opae_debug.h new file +46 -0

46 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/opae_hw_api.c new file +389 -0

389 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/opae_hw_api.h new file +276 -0

276 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c new file +151 -0

151 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h new file +293 -0

293 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/opae_osdep.h new file +111 -0

111 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/osdep_raw/osdep_generic.h new file +104 -0

104 lines not on this page · raw message

drivers/raw/ifpga_rawdev/base/osdep_rte/osdep_generic.h new file +72 -0

72 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.8.3.1

Part of the diff is not shown here. View the raw message.

#18 lore raw
In reply to Rosen Xu

Hi Rosen,

Thanks for sending the new version.

However, you still did not use the --in-reply-to option to link this thread to the previous one.

Please, do so in your future submission.

Quoted 149 lines · Rosen Xu

Intel FPGA BUS in DPDK
-------------------------

This patch set introduces Intel FPGA BUS support in DPDK.

Motivation
==========

FPGA is used more and more widely in Cloud and NFV, one primary reason is that FPGA not only provide ASIC performance but also it's more flexible than ASIC. FPGA use Partial Reconfigure(PR) Parts of Bitstream to achieve its flexibility. Another reason is that one FPGA can be shared by different Users, and each User can use some of AFUs of One FPGA.

That means One FPGA Device Bitstream is divided into many Parts of Bitstream(each Part of Bitstream is defined as AFU-Accelerated Function Unit), and each AFU is a Hardware Acceleration Unit and it can dynamically Reload respectively.

Scope
=====

The Intel FPGA BUS implementation is target towards various FPGA Devices use PR to provide many Acceleration Function. Specific PMDs may also bind to its AFU. And Applications don't care they are using ASIC Acceleration or FPGA AFU Acceleration.

Proposed Solution
=================
- Involve Rawdev to take FPGA Partial Configuration(Download/PR)
- Defined FPGA-BUS for Acceleration Drivers of AFUs
- FPGA PCI Scan(1st Scan) follows DPDK UIO/VFIO PCI Scan Process, probe Intel FPGA Rawdev Driver
- AFU Scan(2nd Scan) bind DPDK Driver to FPGA Partial-Bitstream

Status
=====
With integrating Intel PSG FPGA Software Stack OPAE(Open Programmable Acceleration Engine) Share Code, Intel FPGA BUS runs well in Intel PSG FPGA Cards.

Patch set Information
====================

This patch set includes 6 patches:
* 0 : Introduce the Intel FPGA BUS library and enable its compilation.
* 1 : Adds command parse code, for start-up application
with Intel FPGA BUS.
* 2 : Adds Driver Probe Code, for AFU Drivers should probed after PCI Drivers.
* 3 : Adds Intel FPGA BUS library code, for AFU Device scan and AFU Drivers probe.
* 4 : Adds a Intel FPGA rawdevice driver, for FPGA Device Management such as PR.
* 5 : Adds Intel OPAE(Open Programmable Acceleration Engine) Share Code, it's Intel FPGA Software Stack.

Rosen Xu (5):
Add Intel FPGA BUS Command Parse Code
Add Intel FPGA BUS Probe Code
Add Intel FPGA BUS Lib Code
Add Intel FPGA BUS Rawdev Code
Add Intel OPAE Share Code

 drivers/bus/ifpga/Makefile                         |   64 +
 drivers/bus/ifpga/ifpga_bus.c                      |  573 +++++++
 drivers/bus/ifpga/ifpga_common.c                   |  154 ++
 drivers/bus/ifpga/ifpga_common.h                   |   25 +
 drivers/bus/ifpga/ifpga_logs.h                     |   32 +
 drivers/bus/ifpga/rte_bus_ifpga.h                  |  141 ++
 drivers/bus/ifpga/rte_bus_ifpga_version.map        |    8 +
 drivers/raw/Makefile                               |    1 +
 drivers/raw/ifpga_rawdev/Makefile                  |   63 +
 drivers/raw/ifpga_rawdev/base/Makefile             |   54 +
 drivers/raw/ifpga_rawdev/base/ifpga_api.c          |  543 +++++++
 drivers/raw/ifpga_rawdev/base/ifpga_api.h          |   77 +
 drivers/raw/ifpga_rawdev/base/ifpga_compat.h       |   84 +
 drivers/raw/ifpga_rawdev/base/ifpga_defines.h      | 1696 ++++++++++++++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c    |  861 ++++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h    |   38 +
 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c  |  340 ++++
 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h  |  197 +++
 drivers/raw/ifpga_rawdev/base/ifpga_fme.c          |  763 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c    |  328 ++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c    |  430 +++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c    |  742 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c       |  395 +++++
 drivers/raw/ifpga_rawdev/base/ifpga_hw.h           |  152 ++
 drivers/raw/ifpga_rawdev/base/ifpga_port.c         |  730 +++++++++
 drivers/raw/ifpga_rawdev/base/ifpga_port_error.c   |  236 +++
 drivers/raw/ifpga_rawdev/base/opae_debug.c         |  126 ++
 drivers/raw/ifpga_rawdev/base/opae_debug.h         |   46 +
 drivers/raw/ifpga_rawdev/base/opae_hw_api.c        |  389 +++++
 drivers/raw/ifpga_rawdev/base/opae_hw_api.h        |  276 ++++
 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c  |  151 ++
 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h  |  293 ++++
 drivers/raw/ifpga_rawdev/base/opae_osdep.h         |  111 ++
 .../ifpga_rawdev/base/osdep_raw/osdep_generic.h    |  104 ++
 .../ifpga_rawdev/base/osdep_rte/osdep_generic.h    |   72 +
 drivers/raw/ifpga_rawdev/ifpga_rawdev.c            |  486 ++++++
 drivers/raw/ifpga_rawdev/ifpga_rawdev.h            |   38 +
 drivers/raw/ifpga_rawdev/ifpga_rawdev_example.c    |   99 ++
 .../ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map  |    4 +
 lib/librte_eal/common/eal_common_bus.c             |   14 +-
 lib/librte_eal/common/eal_common_options.c         |    8 +-
 lib/librte_eal/common/eal_options.h                |    2 +
 42 files changed, 10944 insertions(+), 2 deletions(-)
 create mode 100644 drivers/bus/ifpga/Makefile
 create mode 100644 drivers/bus/ifpga/ifpga_bus.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.c
 create mode 100644 drivers/bus/ifpga/ifpga_common.h
 create mode 100644 drivers/bus/ifpga/ifpga_logs.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga.h
 create mode 100644 drivers/bus/ifpga/rte_bus_ifpga_version.map
 create mode 100644 drivers/raw/ifpga_rawdev/Makefile
 create mode 100644 drivers/raw/ifpga_rawdev/base/Makefile
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_compat.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_defines.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_enumerate.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_error.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_iperf.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_hw.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_port.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/ifpga_port_error.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_debug.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_debug.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_hw_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_hw_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.c
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_ifpga_hw_api.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/opae_osdep.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/osdep_raw/osdep_generic.h
 create mode 100644 drivers/raw/ifpga_rawdev/base/osdep_rte/osdep_generic.h
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev.c
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev.h
 create mode 100644 drivers/raw/ifpga_rawdev/ifpga_rawdev_example.c
 create mode 100644 drivers/raw/ifpga_rawdev/rte_pmd_ifpga_rawdev_version.map
Signature · 1 line
1.8.3.1
Signature · 2 lines
Gaëtan Rivet
6WIND