From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 577F445BFE; Mon, 28 Oct 2024 12:01:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2CBF7402A3; Mon, 28 Oct 2024 12:01:26 +0100 (CET) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 03942400D7 for ; Mon, 28 Oct 2024 12:01:24 +0100 (CET) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49SA2lKj015232; Mon, 28 Oct 2024 04:01:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=v Yv9Z4L+/dIbms0kGH/sF7rExcbqPjqv9eAzEEjYUS4=; b=Ah9DC4E404ULSMVLB EAAI+sXFYTo7rxOsK0BEkYoHBwvtsKqbxrRoesj2+rsi9pPHusZYFlrHrKePd3Yr rblnzP6qrPEBU0lj4Qv0WaONNjfjr+4wCQGMEtwnf9QzrOEOi6Io2EsT5VBCUmbM 5d8Pjb8K0XoZ8dqiBisjds/ZIVjsFh7uq7KlyyMUtzsZjVRxodFw3IsoawDRjc/p sNhDMdhWWLFEXz2u1KLPiS4+LeBIeh1tBlerlT2Uv0xuccJrl38lwWyOlAwvyL/5 lZ9l2v2HoQsEXhnRlQA8En2lLRRPsRSffdIkKifZKOPQhUcbKWGRB6Jrz6Y3q6dX mYdog== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 42j8gxg2sy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Oct 2024 04:01:22 -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; Mon, 28 Oct 2024 04:01:21 -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; Mon, 28 Oct 2024 04:01:21 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id ACBB95C68E8; Mon, 28 Oct 2024 04:01:18 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , Akhil Goyal Subject: [PATCH v6 0/9] drivers/raw: introduce cnxk rvu lf device driver Date: Mon, 28 Oct 2024 16:31:06 +0530 Message-ID: <20241028110115.1070655-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241024131759.3337333-1-gakhil@marvell.com> References: <20241024131759.3337333-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: YC_C0YOXm54KYCe4E0zkqEhQE0_3Tq7G X-Proofpoint-GUID: YC_C0YOXm54KYCe4E0zkqEhQE0_3Tq7G X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_01 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 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. Changes in v6: - Addressed comments from Jerin on documentation Changes in v5: - fixed checkpatch Changes in v4: - moved all PMD APIs to internal APIs to be exposed via enable_driver_sdk meson option. - added missing version.map entries as internal APIs. - separate out selftest in a separate file - fixed logs Changes in v3: - fix internal/external header files. Changes in v2: - removed library patch from series - removed PMD logs from external PMD header. - updated doc/api/doxy-api-index.md - Added release notes Akhil Goyal (9): drivers/raw: introduce cnxk rvu lf device driver raw/cnxk_rvu_lf: support NPA/SSO pffunc get raw/cnxk_rvu_lf: support interrupt callback registration raw/cnxk_rvu_lf: support msg handler registration raw/cnxk_rvu_lf: support to set message ID range raw/cnxk_rvu_lf: support mailbox processing raw/cnxk_rvu_lf: support device pffunc get raw/cnxk_rvu_lf: support getting BAR addresses raw/cnxk_rvu_lf: add selftest MAINTAINERS | 6 + doc/guides/platform/cnxk.rst | 5 + doc/guides/rawdevs/cnxk_rvu_lf.rst | 109 ++++++++ doc/guides/rawdevs/index.rst | 1 + doc/guides/rel_notes/release_24_11.rst | 5 + drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_constants.h | 3 + drivers/common/cnxk/roc_dev.c | 118 +++++++- 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 | 46 +++ 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 | 16 ++ drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.c | 262 ++++++++++++++++++ drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.h | 26 ++ drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf_driver.h | 218 +++++++++++++++ .../raw/cnxk_rvu_lf/cnxk_rvu_lf_selftest.c | 166 +++++++++++ drivers/raw/cnxk_rvu_lf/meson.build | 11 + drivers/raw/cnxk_rvu_lf/version.map | 16 ++ drivers/raw/meson.build | 1 + 31 files changed, 1328 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/cnxk_rvu_lf.h create mode 100644 drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf_driver.h create mode 100644 drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf_selftest.c create mode 100644 drivers/raw/cnxk_rvu_lf/meson.build create mode 100644 drivers/raw/cnxk_rvu_lf/version.map -- 2.25.1