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 6362545ADE; Tue, 8 Oct 2024 12:54:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E182240B8F; Tue, 8 Oct 2024 12:54:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 0FE1B40B8C for ; Tue, 8 Oct 2024 12:54:22 +0200 (CEST) Received: from pps.filterd (m0431383.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 497GcCPT004008; Tue, 8 Oct 2024 03:54: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=j 3Ovb9NrAGUkM8/Xqb/AadkjshMtsKwNYruvpb+QM3Y=; b=bpFBHxIZgpcO0iwz2 yxmxB709yb42L+bioOSNirVmHjnaSxabh6E+bLqhOHvM7mQHUCxeMuxO9u+uR6YL F8sPHKZ3n4rI/6aHP276Bk/HJHktjYFqRNiOZJzrBIhrHh914LzcAWqK12YdeOLl V9/k3PBLNpviJgCE9kZtBcOtKjePyJTSwzD9gHhJcHWH+bVET8kV6l+teqROOVz3 YIBRHOrObUyr021Wwa8qQ+OMNUljTEaubFC6AAY22m7VaJWpB8dhNSEDdgBcuG6g 7DAcnGW6sOa04JrVO13RNoKVcjiymmBalpklJ9J4PrqNbEuhFzL3jQAwwhmCW1S3 OCDig== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 424kb6a2rt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Oct 2024 03:54:22 -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 03:54:21 -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 03:54:21 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 041303F7045; Tue, 8 Oct 2024 03:54:18 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , "Akhil Goyal" Subject: [PATCH v2 0/9] drivers/raw: introduce cnxk rvu lf device driver Date: Tue, 8 Oct 2024 16:24:06 +0530 Message-ID: <20241008105415.1026962-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240907193311.1342310-3-gakhil@marvell.com> References: <20240907193311.1342310-3-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: Go85MGZGlr_4606Gn6_17FIjCaN8p8y3 X-Proofpoint-GUID: Go85MGZGlr_4606Gn6_17FIjCaN8p8y3 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 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 | 399 ++++++++++++++++++ drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.h | 222 ++++++++++ drivers/raw/cnxk_rvu_lf/meson.build | 10 + drivers/raw/cnxk_rvu_lf/rte_pmd_cnxk_rvu_lf.h | 33 ++ drivers/raw/meson.build | 1 + 29 files changed, 1280 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