Message ID | 20240907193311.1342310-1-gakhil@marvell.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 534D245931; Sat, 7 Sep 2024 21:33:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CDC204026F; Sat, 7 Sep 2024 21:33:19 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7CC6540269 for <dev@dpdk.org>; Sat, 7 Sep 2024 21:33:18 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 487JO3Tj026467; Sat, 7 Sep 2024 12:33:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=m72G1r3XN/5ygCAQZf/gy0v Q3NBJ7mNTWVDrBWvBcQM=; b=EM0mYX7JvVDRtAOeTa+9iqkKFCc46QOAEhpnBOj hnUfumeliY3duPHn08mNXaeged2aZkvLXT1j2/SlBpmhemP2S97xabFzH3fbe8NE Kgh7yPoXDEuvBAtjEnh4BsuvJaGl3kL8Ot+dP1EZDATmy+F+ApjT5V73cMxZR3Q0 aAHxsftJoLshWRrZqq/SO+dCJEFur/UUBLUYTKqqbg5GgNY0Od1Xw79k2ifMHyC3 +pfkrfuHLS3q/E+et7fjWodyIdxK5vfCIKQe08HxS0wwzwpPxahbBAAkVX9bldgs Uh1VLe/C0liGSHyxK8vqnGLAOPSrbl4e2Of+5n/wv+PyrTA== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 41gm6k8ttf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 07 Sep 2024 12:33:17 -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; Sat, 7 Sep 2024 12:33:16 -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; Sat, 7 Sep 2024 12:33:16 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id E58623F7072; Sat, 7 Sep 2024 12:33:13 -0700 (PDT) From: Akhil Goyal <gakhil@marvell.com> To: <dev@dpdk.org> CC: <thomas@monjalon.net>, <david.marchand@redhat.com>, <hemant.agrawal@nxp.com>, <jerinj@marvell.com>, <hkalra@marvell.com>, "Akhil Goyal" <gakhil@marvell.com> Subject: [PATCH 0/9] drivers/raw: introduce cnxk rvu lf device driver Date: Sun, 8 Sep 2024 01:03:02 +0530 Message-ID: <20240907193311.1342310-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 6Bcsbudc_DEzAUa7gfva0yruXvpgdsUJ X-Proofpoint-GUID: 6Bcsbudc_DEzAUa7gfva0yruXvpgdsUJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
drivers/raw: introduce cnxk rvu lf device driver
|
|
Message
Akhil Goyal
Sept. 7, 2024, 7:33 p.m. UTC
CNXK product families can have a use case to allow PF and VF applications to communicate using mailboxes and also get notified of any interrupt that may occur on the device. Hence, a new raw device driver is added for such RVU LF devices. These devices can map to a PF or a VF which can send mailboxes to each other. The RVU LF device implements following features in the rawdev API: - Register mailbox callbacks for the other side to process mailboxes. - Register interrupt handler callbacks. - Process mailbox. - Set range of message IDs allowed for communication. Akhil Goyal (9): rawdev: add API to get device from index drivers/raw: introduce cnxk rvu lf device driver raw/cnxk_rvu_lf: add PMD API to get npa/sso pffunc raw/cnxk_rvu_lf: add PMD API to get BAR addresses raw/cnxk_rvu_lf: register/unregister interrupt handler raw/cnxk_rvu_lf: register/unregister msg handler raw/cnxk_rvu_lf: set message ID range raw/cnxk_rvu_lf: process mailbox message raw/cnxk_rvu_lf: add selftest MAINTAINERS | 6 + doc/guides/rawdevs/cnxk_rvu_lf.rst | 100 ++++++ doc/guides/rawdevs/index.rst | 1 + drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_constants.h | 2 + drivers/common/cnxk/roc_dev.c | 117 ++++++- drivers/common/cnxk/roc_dev_priv.h | 7 + drivers/common/cnxk/roc_idev.c | 46 +++ drivers/common/cnxk/roc_idev.h | 4 + drivers/common/cnxk/roc_idev_priv.h | 1 + drivers/common/cnxk/roc_mbox.h | 2 + drivers/common/cnxk/roc_npa.c | 6 + drivers/common/cnxk/roc_npa.h | 3 + drivers/common/cnxk/roc_priv.h | 2 + drivers/common/cnxk/roc_rvu_lf.c | 202 ++++++++++++ drivers/common/cnxk/roc_rvu_lf.h | 44 +++ drivers/common/cnxk/roc_rvu_lf_priv.h | 37 +++ drivers/common/cnxk/roc_sso.c | 6 + drivers/common/cnxk/roc_sso.h | 3 + drivers/common/cnxk/roc_utils.c | 2 + drivers/common/cnxk/version.map | 15 + drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.c | 380 +++++++++++++++++++++++ drivers/raw/cnxk_rvu_lf/meson.build | 10 + drivers/raw/cnxk_rvu_lf/rte_pmd_rvu_lf.h | 214 +++++++++++++ drivers/raw/meson.build | 1 + lib/rawdev/rte_rawdev_pmd.h | 24 ++ 27 files changed, 1233 insertions(+), 6 deletions(-) create mode 100644 doc/guides/rawdevs/cnxk_rvu_lf.rst create mode 100644 drivers/common/cnxk/roc_rvu_lf.c create mode 100644 drivers/common/cnxk/roc_rvu_lf.h create mode 100644 drivers/common/cnxk/roc_rvu_lf_priv.h create mode 100644 drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.c create mode 100644 drivers/raw/cnxk_rvu_lf/meson.build create mode 100644 drivers/raw/cnxk_rvu_lf/rte_pmd_rvu_lf.h