From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FBC6C43467 for ; Thu, 8 Oct 2020 10:34:58 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 3C1D82076B for ; Thu, 8 Oct 2020 10:34:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="BLsOGtn5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3C1D82076B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F14BC1BEB4; Thu, 8 Oct 2020 12:34:54 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 619D81BEB2 for ; Thu, 8 Oct 2020 12:34:52 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 098AUI64024758; Thu, 8 Oct 2020 03:34:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Xmw3PArc1fHHQW6+/r9Tzds9eazaH7vHerkUEKTKX7s=; b=BLsOGtn5eYKXHEuaEoQGUFUrZtBzV2xyKIAPb5dbQ1q+Qe1n2PSTSDidDwO5HrKMdRX/ 4vhvf6jAM1WacTl0OHP+W7RevJvOxz7FbwiN8/M+UdUkAVFSO9aHzQDE/cKMUtcL51vd JK8nk/xZ32ZeKG+qDj1Kl8b9ObHH2TII6WZZkJYCa10wWTXWxhVMRpIr310VomVF9a72 NH7PEa6kq3bOBJvWcUns/LDqrde3biJGPnwdjQDUuw/UO6jL5ZR/d+Wbu4N6Q3Q0M/si FHrw9P0p1TXu4QEYsaXPWmLwzekjl4F75ND7qTXjEC7BEJAAor8UCSFMIH8aCfD8vl5w Rg== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 33xpnq0dtk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 08 Oct 2020 03:34:51 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Oct 2020 03:34:50 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 8 Oct 2020 03:34:50 -0700 Received: from hyd1349.t110.caveonetworks.com (unknown [10.29.45.13]) by maili.marvell.com (Postfix) with ESMTP id 761413F703F; Thu, 8 Oct 2020 03:34:48 -0700 (PDT) From: Ankur Dwivedi To: CC: , , , , Ankur Dwivedi Date: Thu, 8 Oct 2020 16:04:32 +0530 Message-ID: <20201008103435.19187-1-adwivedi@marvell.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201008055423.32259-1-adwivedi@marvell.com> References: <20201008055423.32259-1-adwivedi@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-08_04:2020-10-08, 2020-10-08 signatures=0 Subject: [dpdk-dev] [PATCH v4 0/3] event/octeontx2: add support for event crypto adapter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch series adds support for event crypto adapter in op new mode in the OCTEON TX2 event PMD. The functionality has been verified with event crypto adapter test application. Build with meson and ninja is supported. v4: * In the "event/octeontx2: add crypto adapter datapath" patch, replaced rte_cio_wmb with rte_io_wmb, to resolve compilation error. v3: * In the "event/octeontx2: add crypto adapter framework" patch, the following changes were made: - Moved the crypto adapter files from crypto/octeontx2 to event/octeontx2 directory. - Reused the security flag for crypto adapter implementation. * In the "event/octeontx2: add crypto adapter datapath" patch, the following changes were made: - In otx2_ssogws_get_work() and otx2_ssogws_dual_get_work(), the crypto adapter function is called if offload flag has security enabled. This is an additional check apart from checking event type. v2: * In the "event/octeontx2: add crypto adapter datapath" patch, right shifting the req pointer by 3 bits before submit during enqueue. Because of this the right shift during dequeue is not required. Ankur Dwivedi (3): crypto/octeontx2: move functions to helper file event/octeontx2: add crypto adapter framework event/octeontx2: add crypto adapter datapath drivers/common/cpt/cpt_common.h | 1 + drivers/crypto/octeontx2/meson.build | 1 + .../octeontx2/otx2_cryptodev_hw_access.h | 12 +++ .../crypto/octeontx2/otx2_cryptodev_mbox.h | 2 + drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 96 ++++++++----------- .../octeontx2/otx2_cryptodev_ops_helper.h | 74 ++++++++++++++ drivers/crypto/octeontx2/otx2_cryptodev_qp.h | 7 ++ .../rte_pmd_octeontx2_crypto_version.map | 10 ++ drivers/event/octeontx2/meson.build | 4 +- drivers/event/octeontx2/otx2_evdev.c | 4 + drivers/event/octeontx2/otx2_evdev.h | 11 +++ .../event/octeontx2/otx2_evdev_crypto_adptr.c | 81 ++++++++++++++++ .../octeontx2/otx2_evdev_crypto_adptr_dp.h | 75 +++++++++++++++ drivers/event/octeontx2/otx2_worker.h | 28 ++++-- drivers/event/octeontx2/otx2_worker_dual.h | 44 +++++---- 15 files changed, 365 insertions(+), 85 deletions(-) create mode 100644 drivers/crypto/octeontx2/otx2_cryptodev_ops_helper.h create mode 100644 drivers/event/octeontx2/otx2_evdev_crypto_adptr.c create mode 100644 drivers/event/octeontx2/otx2_evdev_crypto_adptr_dp.h -- 2.28.0