From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 88197A00BE; Fri, 12 Jun 2020 23:26:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D78B21BED9; Fri, 12 Jun 2020 23:26:20 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 009AA1BED2 for ; Fri, 12 Jun 2020 23:26:18 +0200 (CEST) IronPort-SDR: n/Sgjt70LAHT7UOoIljaK70qUIXWk7k6UwigiAmJI44auh+Jni7QiMfCTJr5EXRguz2h8yl93W q8qSAvH0bK8Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2020 14:26:18 -0700 IronPort-SDR: SAxxHKOblgV9+qPYhJ7OGd6fQaJnsjIcHYaDukW6qS30ZB3xvrLILKDgtdEWkG46ql13GIROVT GsrtABAWCZMA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,504,1583222400"; d="scan'208";a="272035756" Received: from txasoft-yocto.an.intel.com ([10.123.72.192]) by orsmga003.jf.intel.com with ESMTP; 12 Jun 2020 14:26:17 -0700 From: "McDaniel, Timothy" To: jerinj@marvell.com Cc: dev@dpdk.org, gage.eads@intel.com, harry.van.haaren@intel.com Date: Fri, 12 Jun 2020 16:24:07 -0500 Message-Id: <20200612212434.6852-1-timothy.mcdaniel@intel.com> X-Mailer: git-send-email 2.13.6 Subject: [dpdk-dev] [PATCH 00/27] V1 event/dlb add Intel DLB PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello Jerin and the DPDK community. The following patchset adds support for a new eventdev PMD. The DLB PMD adds support for the Intel Dynamic Load Balancer (DLB) hardware. The DLB is a PCIe device that provides load-balanced, prioritized scheduling of core-to-core communication. The device consists of queues and arbiters that connect producer and consumer cores, and implements load-balanced queueing features including: - Lock-free multi-producer/multi-consumer operation. - Multiple priority levels for varying traffic types. - 'Direct' traffic (i.e. multi-producer/single-consumer) - Simple unordered load-balanced distribution. - Atomic lock-free load balancing across multiple consumers. - Queue element reordering feature allowing ordered load-balanced distribution. The DLB hardware supports both load balanced and directed ports and queues. Unlike other eventdev devices already in the repo, not all DLB ports and queues are equally capable. In particular, directed ports are limited to a single link, and must be connected to a directed queue. Additionally, even though LDB ports may link multiple queues, the number of queues that may be linked is limited by hardware. Another difference is that DLB does not have a straightforward way of carrying the flow_id in the queue elements (QE) that the hardware operates on. Due to the above restrictions, we would like to extend the eventdev interface in manner that allows our PMD to take full advantage of the DLB hardware, while also adding useful functionality for non-Intel PMDs. Our proposed changes are contained in the first two patches in this patchset. While reviewing the code, please be aware that this PMD has full control over the DLB hardware. Intel will be extending the DLB PMD in the future (not as part of this first series) with a mode that we refer to as the bifurcated PMD. The bifurcated PMD communicates with a kernel driver to configure the device, ports, and queues, and memory maps device MMIO so datapath operations occur purely in user-space. The framework to support both the PF PMD and bifurcated PMD exists in this patchset, and is why the iface.[ch] layer is present. Thank You and Best Regards, Tim McDaniel McDaniel, Timothy (27): eventdev: dlb upstream prerequisites eventdev: do not pass disable_implicit_release bit to trace macro event/dlb: add shared code version 10.7.9 event/dlb: add make and meson build infrastructure event/dlb: add DLB documentation event/dlb: add dynamic logging event/dlb: add private data structures and constants event/dlb: add definitions shared with LKM or shared code event/dlb: inline functions used in multiple files event/dlb: add PFPMD-specific interface layer to shared code event/dlb: add flexible PMD to device interfaces event/dlb: add the PMD's public interfaces event/dlb: add xstats support event/dlb: add PMD self-tests event/dlb: add probe event/dlb: add infos_get and configure event/dlb: add queue_def_conf and port_def_conf event/dlb: add queue setup event/dlb: add port_setup event/dlb: add port_link event/dlb: add queue_release and port_release event/dlb: add port_unlink and port_unlinks_in_progress event/dlb: add eventdev_start event/dlb: add timout_ticks, dump, xstats, and selftest event/dlb: add enqueue and its burst variants event/dlb: add dequeue, dequeue_burst, and variants event/dlb: add eventdev_stop and eventdev_close app/test-eventdev/evt_common.h | 1 + app/test-eventdev/test_order_atq.c | 4 + app/test-eventdev/test_order_common.c | 6 +- app/test-eventdev/test_order_queue.c | 4 + app/test-eventdev/test_perf_atq.c | 1 + app/test-eventdev/test_perf_queue.c | 1 + app/test-eventdev/test_pipeline_atq.c | 1 + app/test-eventdev/test_pipeline_queue.c | 1 + app/test/test_eventdev.c | 4 +- config/common_base | 17 + config/rte_config.h | 6 + doc/guides/eventdevs/dlb.rst | 497 + drivers/event/Makefile | 5 + drivers/event/dlb/Makefile | 36 + drivers/event/dlb/dlb.c | 4306 +++++++++ drivers/event/dlb/dlb_iface.c | 105 + drivers/event/dlb/dlb_iface.h | 92 + drivers/event/dlb/dlb_inline_fns.h | 80 + drivers/event/dlb/dlb_log.h | 24 + drivers/event/dlb/dlb_priv.h | 595 ++ drivers/event/dlb/dlb_selftest.c | 1628 ++++ drivers/event/dlb/dlb_user.h | 1351 +++ drivers/event/dlb/dlb_xstats.c | 1251 +++ drivers/event/dlb/meson.build | 16 + drivers/event/dlb/pf/base/dlb_hw_types.h | 360 + drivers/event/dlb/pf/base/dlb_mbox.h | 645 ++ drivers/event/dlb/pf/base/dlb_osdep.h | 350 + drivers/event/dlb/pf/base/dlb_osdep_bitmap.h | 449 + drivers/event/dlb/pf/base/dlb_osdep_list.h | 131 + drivers/event/dlb/pf/base/dlb_osdep_types.h | 31 + drivers/event/dlb/pf/base/dlb_regs.h | 2646 ++++++ drivers/event/dlb/pf/base/dlb_resource.c | 9699 ++++++++++++++++++++ drivers/event/dlb/pf/base/dlb_resource.h | 1625 ++++ drivers/event/dlb/pf/base/dlb_user.h | 1084 +++ drivers/event/dlb/pf/dlb_main.c | 670 ++ drivers/event/dlb/pf/dlb_main.h | 90 + drivers/event/dlb/pf/dlb_pf.c | 839 ++ drivers/event/dlb/rte_pmd_dlb.c | 39 + drivers/event/dlb/rte_pmd_dlb.h | 69 + drivers/event/dlb/rte_pmd_dlb_event_version.map | 6 + drivers/event/dpaa2/dpaa2_eventdev.c | 2 +- drivers/event/meson.build | 3 + drivers/event/octeontx/ssovf_evdev.c | 2 +- drivers/event/skeleton/skeleton_eventdev.c | 2 +- drivers/event/sw/sw_evdev.c | 5 +- drivers/event/sw/sw_evdev_selftest.c | 9 +- .../eventdev_pipeline/pipeline_worker_generic.c | 8 +- examples/eventdev_pipeline/pipeline_worker_tx.c | 3 + examples/l2fwd-event/l2fwd_event_generic.c | 5 +- examples/l2fwd-event/l2fwd_event_internal_port.c | 5 +- examples/l3fwd/l3fwd_event_generic.c | 5 +- examples/l3fwd/l3fwd_event_internal_port.c | 5 +- lib/librte_eal/x86/include/rte_cpuflags.h | 1 + lib/librte_eal/x86/rte_cpuflags.c | 1 + lib/librte_eventdev/rte_event_crypto_adapter.c | 7 +- lib/librte_eventdev/rte_event_eth_tx_adapter.c | 16 +- lib/librte_eventdev/rte_eventdev.c | 72 +- lib/librte_eventdev/rte_eventdev.h | 51 +- lib/librte_eventdev/rte_eventdev_pmd_pci.h | 54 + lib/librte_eventdev/rte_eventdev_trace.h | 15 +- 60 files changed, 28987 insertions(+), 49 deletions(-) create mode 100644 doc/guides/eventdevs/dlb.rst create mode 100644 drivers/event/dlb/Makefile create mode 100644 drivers/event/dlb/dlb.c create mode 100644 drivers/event/dlb/dlb_iface.c create mode 100644 drivers/event/dlb/dlb_iface.h create mode 100644 drivers/event/dlb/dlb_inline_fns.h create mode 100644 drivers/event/dlb/dlb_log.h create mode 100644 drivers/event/dlb/dlb_priv.h create mode 100644 drivers/event/dlb/dlb_selftest.c create mode 100644 drivers/event/dlb/dlb_user.h create mode 100644 drivers/event/dlb/dlb_xstats.c create mode 100644 drivers/event/dlb/meson.build create mode 100644 drivers/event/dlb/pf/base/dlb_hw_types.h create mode 100644 drivers/event/dlb/pf/base/dlb_mbox.h create mode 100644 drivers/event/dlb/pf/base/dlb_osdep.h create mode 100644 drivers/event/dlb/pf/base/dlb_osdep_bitmap.h create mode 100644 drivers/event/dlb/pf/base/dlb_osdep_list.h create mode 100644 drivers/event/dlb/pf/base/dlb_osdep_types.h create mode 100644 drivers/event/dlb/pf/base/dlb_regs.h create mode 100644 drivers/event/dlb/pf/base/dlb_resource.c create mode 100644 drivers/event/dlb/pf/base/dlb_resource.h create mode 100644 drivers/event/dlb/pf/base/dlb_user.h create mode 100644 drivers/event/dlb/pf/dlb_main.c create mode 100644 drivers/event/dlb/pf/dlb_main.h create mode 100644 drivers/event/dlb/pf/dlb_pf.c create mode 100644 drivers/event/dlb/rte_pmd_dlb.c create mode 100644 drivers/event/dlb/rte_pmd_dlb.h create mode 100644 drivers/event/dlb/rte_pmd_dlb_event_version.map -- 2.13.6