From patchwork Wed Apr 17 07:27:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anoob Joseph X-Patchwork-Id: 869 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 B64C143E8E; Wed, 17 Apr 2024 09:27:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7793740647; Wed, 17 Apr 2024 09:27:31 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 86B4C402D9 for ; Wed, 17 Apr 2024 09:27:29 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43GK1xuc017063; Wed, 17 Apr 2024 00:27:29 -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=ptdyUxfXULu7K3U72qGhv559UFJBW817fT1K5yg/WaY=; b=bOm pOCiNtaRayYij4zKZSNC2EzR17PKexwcIcVkPpk1DO5FXDCGl88c7udUXz7qjrmX 1UwvLiMdH5Auh/Ah1G956QLOQO1Q0JS3HcvWwQNXxiByZ9gwsLNGIbz6w5BG8A/0 IkF5lC879xMvuh/TA0wWIvkOKNcPIDIIMaRP7i+oWSdJGc5MF7gcpOhPREpgD4bS WEnY6YtsQoq5oMCvgKhT0PGGrTiQVzAmaG0hwCg3r/xSbIDAXPFgbz2KlZWUWR6c Hw5KywDEIfnB3THw1Aeh0ouKRn9ExV1U2ermvaEeztIrL+kXKm+ugyqMQ2qH73kU cERk2IAyQ32OHboCFkw== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3xhfdn5btq-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Apr 2024 00:27:28 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 17 Apr 2024 00:27:12 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 17 Apr 2024 00:27:12 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.193.69.67]) by maili.marvell.com (Postfix) with ESMTP id 5F7593F7082; Wed, 17 Apr 2024 00:27:09 -0700 (PDT) From: Anoob Joseph To: Chengwen Feng , Kevin Laatz , Bruce Richardson , "Jerin Jacob" , Thomas Monjalon CC: Gowrishankar Muthukrishnan , "Vidya Sagar Velumuri" , Subject: [PATCH v2 0/7] Add ODM DMA device Date: Wed, 17 Apr 2024 12:57:01 +0530 Message-ID: <20240417072708.322-1-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240415153159.86-1-anoobj@marvell.com> References: <20240415153159.86-1-anoobj@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: mQxvSrzDtRs3Ub39qvNOPWT12eFbD24z X-Proofpoint-ORIG-GUID: mQxvSrzDtRs3Ub39qvNOPWT12eFbD24z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-17_06,2024-04-16_01,2023-05-22_02 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 Add Odyssey ODM DMA device. This PMD abstracts ODM hardware unit on Odyssey SoC which can perform mem to mem copies. The hardware unit can support upto 32 queues (vchan) and 16 VFs. It supports 'fill' operation with specific values. It also supports SG mode of operation with upto 4 src pointers and 4 destination pointers. The PMD is tested with both unit tests and performance applications. Changes in v2 - Addressed build failure with CI - Moved update to usertools as separate patch Anoob Joseph (2): dma/odm: add framework for ODM DMA device dma/odm: add hardware defines Gowrishankar Muthukrishnan (3): dma/odm: add dev init and fini dma/odm: add device ops dma/odm: add stats Vidya Sagar Velumuri (2): dma/odm: add copy and copy sg ops dma/odm: add remaining ops MAINTAINERS | 7 + doc/guides/dmadevs/index.rst | 1 + doc/guides/dmadevs/odm.rst | 92 +++++ drivers/dma/meson.build | 1 + drivers/dma/odm/meson.build | 14 + drivers/dma/odm/odm.c | 237 ++++++++++++ drivers/dma/odm/odm.h | 217 +++++++++++ drivers/dma/odm/odm_dmadev.c | 713 +++++++++++++++++++++++++++++++++++ drivers/dma/odm/odm_priv.h | 49 +++ 9 files changed, 1331 insertions(+) create mode 100644 doc/guides/dmadevs/odm.rst create mode 100644 drivers/dma/odm/meson.build create mode 100644 drivers/dma/odm/odm.c create mode 100644 drivers/dma/odm/odm.h create mode 100644 drivers/dma/odm/odm_dmadev.c create mode 100644 drivers/dma/odm/odm_priv.h