From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 773F9A045E for ; Sat, 1 Jun 2019 03:49:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ACBDB378B; Sat, 1 Jun 2019 03:49:15 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 44BA6375B for ; Sat, 1 Jun 2019 03:49:14 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x511lfxn003132 for ; Fri, 31 May 2019 18:49:13 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=G+pw1LPunQU7+5r+y3p2D6wcrgisAPWByh+DiVNlBo0=; b=ENO5B3UIGoqEEek0F9bGU3IG76DyYC3crKK9gssrGCF8m3ls3+R19Ikh0+WF9M4cHavm B5eqAQ7r5CbP5i4c7qPw2+0AC14HYGfNkVFZTVUcWbLTkRmUbLXJz3AZSVBnP1WrPz7M A0wAQI5wYMM2GYTFQ72vQjKkteCFXnjFQgjtVnK8T96OCOTd8aitYy9xdL/+xyXoCWIU vgJ2K61J2HGXVJNOYyc5Yww6V9Q/zIZ9oyr6D6q5l1+BfoH4DTLv4CIdmF3DdlxOEazf 1wvUccys+sDBVq0Vwb1HMA2zGSNwYOlmzdMrQe8Q4K9w0BcxI0sJvpYfwAJfsLUoSfuV IQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2su5xh2bsw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 31 May 2019 18:49:12 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 31 May 2019 18:49:11 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 31 May 2019 18:49:11 -0700 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id 4559D3F703F; Fri, 31 May 2019 18:49:10 -0700 (PDT) From: To: CC: Jerin Jacob Date: Sat, 1 Jun 2019 07:18:38 +0530 Message-ID: <20190601014905.45531-1-jerinj@marvell.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190523081339.56348-1-jerinj@marvell.com> References: <20190523081339.56348-1-jerinj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-01_02:, , signatures=0 Subject: [dpdk-dev] [PATCH v2 00/27] OCTEON TX2 common and mempool driver 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" From: Jerin Jacob This patch set adds initial driver support for OCTEON TX2 SoC. OCTEON TX2 is an armv8.2 SoC with integrated HW based mempool, ethdev, cryptodev, compressdev, and eventdev devices. This patch set adds common driver and mempool device driver for OCTEON TX2 SoC. There will be three more patch series in this release to support ethdev, eventdev and cryptodev devices More details about the OCTEON TX2 platform may found in [PATCH 15/27] doc: add Marvell OCTEON TX2 platform guide under doc/guides/platform/octeontx2.rst file. This patches series also available at https://github.com/jerinjacobk/dpdk.git for quick download and review. # Note on check patch issues 1) The mailbox prototype is the same as Linux kernel. https://elixir.bootlin.com/linux/latest/source/drivers/net/ethernet/marvell/octeontx2/af/mbox.h#L123 In order to keep the base code intact, mailbox prototype expressed as macros with warnings 2) There are a few warnings from tooling about expected to add new symbols in the EXPERIMENTAL section. Since these API will be called only by octeontx2 client drivers and prototype are not exported to the application, those warnings are not relevant, Discussion at http://patches.dpdk.org/patch/53590/ v2: 1) Added CONFIG_RTE_MAX_VFIO_GROUPS for octeontx2 config in patch 1 2) Rebased to master to accommodate latest rename like ETHER_ADDR_LEN to RTE_ETHER_ADDR_LEN 3) Added pmd.raw.octeontx2.dpi log message in patch 5 4) Update platform guide with debugfs documentation in patch 15 5) Fix arm64 build issue with patch 25(Aaron Conole) "mempool/octeontx2: add optimized dequeue operation for arm64" Jerin Jacob (22): common/octeontx2: add build infrastructure and HW definition common/octeontx2: add IO handling APIs common/octeontx2: add mbox request and response definition common/octeontx2: add mailbox base support infra common/octeontx2: add runtime log infra common/octeontx2: add mailbox send and receive support common/octeontx2: introduce common device class common/octeontx2: introduce irq handling functions common/octeontx2: handle intra device operations common/octeontx2: add VF mailbox IRQ and msg handler doc: add Marvell OCTEON TX2 platform guide mempool/octeontx2: add build infra and device probe drivers: add init and fini on octeontx2 NPA object mempool/octeontx2: add NPA HW operations mempool/octeontx2: add NPA IRQ handler mempool/octeontx2: add context dump support mempool/octeontx2: add mempool alloc op mempool/octeontx2: add mempool free op mempool/octeontx2: add remaining slow path ops mempool/octeontx2: add fast path mempool ops mempool/octeontx2: add devargs for max pool selection doc: add Marvell OCTEON TX2 mempool documentation Nithin Dabilpuram (4): common/octeontx2: add AF to PF mailbox IRQ and msg handlers common/octeontx2: add PF to VF mailbox IRQ and msg handlers common/octeontx2: add uplink message support common/octeontx2: add FLR IRQ handler Pavan Nikhilesh (1): mempool/octeontx2: add optimized dequeue operation for arm64 MAINTAINERS | 10 + config/common_base | 5 + config/defconfig_arm64-octeontx2-linuxapp-gcc | 3 + doc/guides/mempool/index.rst | 1 + doc/guides/mempool/octeontx2.rst | 90 + .../octeontx2_packet_flow_hw_accelerators.svg | 2804 +++++++++++++++++ .../img/octeontx2_resource_virtualization.svg | 2418 ++++++++++++++ doc/guides/platform/index.rst | 1 + doc/guides/platform/octeontx2.rst | 496 +++ doc/guides/rel_notes/release_19_08.rst | 2 + drivers/common/Makefile | 5 + drivers/common/meson.build | 2 +- drivers/common/octeontx2/Makefile | 37 + drivers/common/octeontx2/hw/otx2_nix.h | 1376 ++++++++ drivers/common/octeontx2/hw/otx2_npa.h | 305 ++ drivers/common/octeontx2/hw/otx2_npc.h | 467 +++ drivers/common/octeontx2/hw/otx2_rvu.h | 212 ++ drivers/common/octeontx2/hw/otx2_sso.h | 209 ++ drivers/common/octeontx2/hw/otx2_ssow.h | 56 + drivers/common/octeontx2/hw/otx2_tim.h | 34 + drivers/common/octeontx2/meson.build | 25 + drivers/common/octeontx2/otx2_common.c | 248 ++ drivers/common/octeontx2/otx2_common.h | 121 + drivers/common/octeontx2/otx2_dev.c | 1052 +++++++ drivers/common/octeontx2/otx2_dev.h | 97 + drivers/common/octeontx2/otx2_io_arm64.h | 95 + drivers/common/octeontx2/otx2_io_generic.h | 63 + drivers/common/octeontx2/otx2_irq.c | 254 ++ drivers/common/octeontx2/otx2_irq.h | 25 + drivers/common/octeontx2/otx2_mbox.c | 416 +++ drivers/common/octeontx2/otx2_mbox.h | 1483 +++++++++ .../rte_common_octeontx2_version.map | 39 + drivers/mempool/Makefile | 1 + drivers/mempool/meson.build | 2 +- drivers/mempool/octeontx2/Makefile | 39 + drivers/mempool/octeontx2/meson.build | 23 + drivers/mempool/octeontx2/otx2_mempool.c | 438 +++ drivers/mempool/octeontx2/otx2_mempool.h | 208 ++ .../mempool/octeontx2/otx2_mempool_debug.c | 135 + drivers/mempool/octeontx2/otx2_mempool_irq.c | 308 ++ drivers/mempool/octeontx2/otx2_mempool_ops.c | 760 +++++ .../rte_mempool_octeontx2_version.map | 8 + mk/rte.app.mk | 6 + 43 files changed, 14377 insertions(+), 2 deletions(-) create mode 100644 doc/guides/mempool/octeontx2.rst create mode 100644 doc/guides/platform/img/octeontx2_packet_flow_hw_accelerators.svg create mode 100644 doc/guides/platform/img/octeontx2_resource_virtualization.svg create mode 100644 doc/guides/platform/octeontx2.rst create mode 100644 drivers/common/octeontx2/Makefile create mode 100644 drivers/common/octeontx2/hw/otx2_nix.h create mode 100644 drivers/common/octeontx2/hw/otx2_npa.h create mode 100644 drivers/common/octeontx2/hw/otx2_npc.h create mode 100644 drivers/common/octeontx2/hw/otx2_rvu.h create mode 100644 drivers/common/octeontx2/hw/otx2_sso.h create mode 100644 drivers/common/octeontx2/hw/otx2_ssow.h create mode 100644 drivers/common/octeontx2/hw/otx2_tim.h create mode 100644 drivers/common/octeontx2/meson.build create mode 100644 drivers/common/octeontx2/otx2_common.c create mode 100644 drivers/common/octeontx2/otx2_common.h create mode 100644 drivers/common/octeontx2/otx2_dev.c create mode 100644 drivers/common/octeontx2/otx2_dev.h create mode 100644 drivers/common/octeontx2/otx2_io_arm64.h create mode 100644 drivers/common/octeontx2/otx2_io_generic.h create mode 100644 drivers/common/octeontx2/otx2_irq.c create mode 100644 drivers/common/octeontx2/otx2_irq.h create mode 100644 drivers/common/octeontx2/otx2_mbox.c create mode 100644 drivers/common/octeontx2/otx2_mbox.h create mode 100644 drivers/common/octeontx2/rte_common_octeontx2_version.map create mode 100644 drivers/mempool/octeontx2/Makefile create mode 100644 drivers/mempool/octeontx2/meson.build create mode 100644 drivers/mempool/octeontx2/otx2_mempool.c create mode 100644 drivers/mempool/octeontx2/otx2_mempool.h create mode 100644 drivers/mempool/octeontx2/otx2_mempool_debug.c create mode 100644 drivers/mempool/octeontx2/otx2_mempool_irq.c create mode 100644 drivers/mempool/octeontx2/otx2_mempool_ops.c create mode 100644 drivers/mempool/octeontx2/rte_mempool_octeontx2_version.map -- 2.21.0