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 3522B45BC0; Thu, 24 Oct 2024 15:19:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 228504348E; Thu, 24 Oct 2024 15:19:13 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3D84640265 for ; Thu, 24 Oct 2024 15:19:11 +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 49OAoffx000402; Thu, 24 Oct 2024 06:19:08 -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=5 VnJPvRG9zRqb6lhCuVgrbwX0yQcAdzgml6oWDU2OnE=; b=d5sodrpcFPUPe0dBB fLzB1R1+B2GdnN7WZgQIcRMH5S/+w0vMvyheVuWTUn4tV9iV1D6LCsff26IGUG/Q MmecwnVCdZVQxMUCt3XoSXIpDdJXJBuPTqTUYfleYJaNDgAs9mrpLkgRQZHcSVM5 vCxC+KjiwVCS61HupQcoWpK76j2qB/Spg4J6b4de1ACjstf6AVL5vT90HjMjF29l u2NLaADovzJTkE6D1GV/MSTqAIH4BzK4QAH99LM7HzlaT0S4QAxU0fJcf/0TG/JI Fu6gPllBGYTz53R1mMHbX9G05ohLXdMXSRtpLJYtTxjtCVQqWed4d7iAq017mLny UWTqg== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 42fkrf0d1f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Oct 2024 06:19:08 -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; Thu, 24 Oct 2024 06:18:05 -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; Thu, 24 Oct 2024 06:18:05 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 2D2E23F70BD; Thu, 24 Oct 2024 06:18:01 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , Akhil Goyal Subject: [PATCH v5 0/9] drivers/raw: introduce cnxk rvu lf device driver Date: Thu, 24 Oct 2024 18:47:50 +0530 Message-ID: <20241024131759.3337333-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241024130130.3330978-1-gakhil@marvell.com> References: <20241024130130.3330978-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: in80xSN7JUSg0Y8QRVFiuzNuwD6gBlRZ X-Proofpoint-GUID: in80xSN7JUSg0Y8QRVFiuzNuwD6gBlRZ 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 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: add API to get NPA/SSO pffunc 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 API to get device pffunc raw/cnxk_rvu_lf: add API to get BAR addresses raw/cnxk_rvu_lf: add selftest MAINTAINERS | 6 + 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 | 260 ++++++++++++++++++ drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.h | 26 ++ drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf_driver.h | 216 +++++++++++++++ .../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 + 30 files changed, 1310 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