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 0567345AE7; Tue, 8 Oct 2024 20:49:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C8AAC40261; Tue, 8 Oct 2024 20:49:24 +0200 (CEST) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 31FA84025D for ; Tue, 8 Oct 2024 20:49:23 +0200 (CEST) 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 498DOcMj015395; Tue, 8 Oct 2024 11:49:21 -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=W AMDiZ4LO6dPrIKhvAYI3ZNWn1krrVSZDafZFWECwio=; b=dNhVBcZK+RpOJbsgU 0YZvgV4cM6p8OCRbt0IuQ5/wXDB5bTLcptxu3CKyEyTrXRTc0GuPysllR5w+f7Af KF67rbSYDsNsiSkMXBHkU+DiZQI1ExDSb8FMz9ulpKYc1Bb0VQyzYrMtq2RCVN0g NjVSYlhBM/0xrnmXowSemLh9RxZp2qAaoAH+aw6MLQvpUoJ1XAnU7tMJWprm5+Yw OxShvtfJyke4cH3hhGNsxsqA279IYsE1iMCxFQZKlMVwPrYHlmfYXiWUIiRYPeWM 9FWAABd5eq2UPSUeRLhNn23SQD5BargxGyZhFcV9P26ef0cbCZF6hIf3kCdv5tuD pC7uQ== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 4255kb8s0p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Oct 2024 11:49:21 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 8 Oct 2024 11:49:20 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 8 Oct 2024 11:49:20 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 1AD233F7043; Tue, 8 Oct 2024 11:49:17 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , "Akhil Goyal" Subject: [PATCH v3 0/9] drivers/raw: introduce cnxk rvu lf device driver Date: Wed, 9 Oct 2024 00:19:06 +0530 Message-ID: <20241008184915.1356089-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241008105415.1026962-1-gakhil@marvell.com> References: <20241008105415.1026962-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: iBV5MGOl-bPrEv7EdQeNVL643qKzOvUP X-Proofpoint-ORIG-GUID: iBV5MGOl-bPrEv7EdQeNVL643qKzOvUP 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. Depends-on: https://patches.dpdk.org/project/dpdk/patch/20241008074000.3745855-1-gakhil@marvell.com/ 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: 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 raw/cnxk_rvu_lf: add PMD API to get device pffunc MAINTAINERS | 6 + doc/api/doxy-api-index.md | 1 + doc/guides/rawdevs/cnxk_rvu_lf.rst | 100 +++++ 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 | 400 ++++++++++++++++++ drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.h | 35 ++ drivers/raw/cnxk_rvu_lf/meson.build | 10 + drivers/raw/cnxk_rvu_lf/rte_pmd_cnxk_rvu_lf.h | 220 ++++++++++ drivers/raw/meson.build | 1 + 29 files changed, 1281 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/meson.build create mode 100644 drivers/raw/cnxk_rvu_lf/rte_pmd_cnxk_rvu_lf.h -- 2.25.1