From patchwork Tue Apr 6 15:11:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Sekhar T K X-Patchwork-Id: 90730 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D4880A0546; Tue, 6 Apr 2021 17:11:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 61D8B1411B8; Tue, 6 Apr 2021 17:11:32 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id CEB811411B7 for ; Tue, 6 Apr 2021 17:11:30 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 136F0RaE015105 for ; Tue, 6 Apr 2021 08:11:30 -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=pfpt0220; bh=cFhSj0lJj/b3YNQThup/SYDn3FD/EKSxnKVCQZaK2yA=; b=aCZYX6+5CQYN0wSxtS/V0XGd/ESA7GTLbHfe8RttTC2n1BJZ+oOOf07aBR/7KWSvHk7M YtKPm/bPvW8J7sXaa66xwKnuQOvQv2ssv7+xhH9B+B9ELvPpSSNA1lsfukgUyVSWIqP4 iU7Q9vkcAmNWVXltZrRy1yiD+nUiF69SopCGBB89sYs1mcuZHhjjVLdycoQv177IroGe qPHBSz3Rab6FtsZhK+hBlShhHvhTHM+ocAmDkgdJQuTXWhn9wnuTpMBXi8vxZ4dVMX0W kzdJ2E3B5TNIdPyQvpt9bfcYy69eg2L+8Ht8Ma1jtqdVZ+32JqaKS3/32LRBpWZaQanL Yg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 37redma2pc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 06 Apr 2021 08:11:30 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 6 Apr 2021 08:11:28 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 6 Apr 2021 08:11:28 -0700 Received: from lab-ci-142.marvell.com (unknown [10.28.36.142]) by maili.marvell.com (Postfix) with ESMTP id A5A0B3F7041; Tue, 6 Apr 2021 08:11:25 -0700 (PDT) From: Ashwin Sekhar T K To: CC: , , , , , , Date: Tue, 6 Apr 2021 20:41:04 +0530 Message-ID: <20210406151115.1889455-1-asekhar@marvell.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210305162149.2196166-1-asekhar@marvell.com> References: <20210305162149.2196166-1-asekhar@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: QXnIMsDTigP4m5Xh28HXKn4apwodUtIW X-Proofpoint-ORIG-GUID: QXnIMsDTigP4m5Xh28HXKn4apwodUtIW X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-04-06_04:2021-04-01, 2021-04-06 signatures=0 Subject: [dpdk-dev] [PATCH v3 00/11] Add Marvell CNXK mempool driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" This patchset adds the mempool/cnxk driver which provides the support for the integrated mempool device found in Marvell CN10K SoC. The code includes mempool driver functionality for Marvell CN9K SoC as well, but right now it is not enabled. The future plan is to deprecate existing mempool/octeontx2 driver once the 'CNXK' drivers are feature complete for Marvell CN9K SoC. Depends-on: series-16131 ("Add Marvell CNXK common driver") v3: - Change batch op data initialization to plt init callback. - Reserve a memzone for batch op data. - Handle batch op data initialization in secondary process. Ashwin Sekhar T K (11): mempool/cnxk: add build infra and doc mempool/cnxk: add device probe/remove mempool/cnxk: add generic ops mempool/cnxk: register plt init callback mempool/cnxk: add cn9k mempool ops mempool/cnxk: add cn9k optimized mempool enqueue/dequeue mempool/cnxk: add cn10k mempool ops mempool/cnxk: add batch op init mempool/cnxk: add cn10k batch enqueue op mempool/cnxk: add cn10k get count op mempool/cnxk: add cn10k batch dequeue op MAINTAINERS | 6 + doc/guides/mempool/cnxk.rst | 91 +++++++ doc/guides/mempool/index.rst | 1 + doc/guides/platform/cnxk.rst | 3 + drivers/mempool/cnxk/cn10k_mempool_ops.c | 319 +++++++++++++++++++++++ drivers/mempool/cnxk/cn9k_mempool_ops.c | 89 +++++++ drivers/mempool/cnxk/cnxk_mempool.c | 202 ++++++++++++++ drivers/mempool/cnxk/cnxk_mempool.h | 28 ++ drivers/mempool/cnxk/cnxk_mempool_ops.c | 191 ++++++++++++++ drivers/mempool/cnxk/meson.build | 16 ++ drivers/mempool/cnxk/version.map | 3 + drivers/mempool/meson.build | 3 +- 12 files changed, 951 insertions(+), 1 deletion(-) create mode 100644 doc/guides/mempool/cnxk.rst create mode 100644 drivers/mempool/cnxk/cn10k_mempool_ops.c create mode 100644 drivers/mempool/cnxk/cn9k_mempool_ops.c create mode 100644 drivers/mempool/cnxk/cnxk_mempool.c create mode 100644 drivers/mempool/cnxk/cnxk_mempool.h create mode 100644 drivers/mempool/cnxk/cnxk_mempool_ops.c create mode 100644 drivers/mempool/cnxk/meson.build create mode 100644 drivers/mempool/cnxk/version.map