From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 91E72A04BA; Wed, 7 Oct 2020 18:46:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 45E4B1BC92; Wed, 7 Oct 2020 18:45:54 +0200 (CEST) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 7998A1BC92 for ; Wed, 7 Oct 2020 18:45:52 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id b193so829133pga.6 for ; Wed, 07 Oct 2020 09:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version; bh=kIi9YgvblxpX7HI3fnaWltglu7hIja6yO8t6mp0/LEE=; b=T5C3CMXD0jUUWKbmHhqT3dFy9A2M7FMe8zLF5AM77ctemOpJ6h6bUf1IcYQXsXMecy OI2Xsac4wDDrjDKzdWfm/JDpNM7JIg2ZltBFgXiOwch0p4XIFlb1xnwMXRaXXXw2hGHX /MPCb46/dYl8Ri1g2D0kqFVzhTLcx70Yv+Myk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version; bh=kIi9YgvblxpX7HI3fnaWltglu7hIja6yO8t6mp0/LEE=; b=Gqjx5+lzVpLoomKwfbEDLM93uX5x9cX4h0hPthGTkp6qqfRM0gn2c2wwxmHoRZ8X0k QWr7lL5hauTXWWrRgT202gzGnok7WHseDA+Q30jFJzVYZNp/j/+su+SSzkonpsSItIGr FzI+s+dC3ey44Rj4DOn95oj+3aeWR+ICfl7ROPiZd9fuk+vH+EodsHyFDa53Z+t5m1jt XZfPnDeoTiIBor0ocUJSMhqdwAb/ceh+mJQxpthE02vHeamp6t5zkfxsLgji0NQXx+1N rqmUC8ypJn7zK/IapzVq17oVHCwyQrmr9LQaS2HBH7YZqsIedasjqEeCQBv7f7lskape GlmQ== X-Gm-Message-State: AOAM532l1ObrNNSyUUWpT72NpBWt5q2e34pbCb1RQIArGofgOad8/oln FBwfTumKhBOgX3p0hIkSdSX0XNbsL6y4lVGLW+fHWiDW9EXdTMqZTUxTobG+1FVgmwS5Ki876dq L/BS+h3zge67SncvQchhnTOjimtGk0QC8zlup25/M9R0ty6LEHZH44dq6rznX X-Google-Smtp-Source: ABdhPJxazsLQbKPZrNJUYXqlINSEZC3m5j5EFpmh+dxaOb7LiQqQdVPLxdnL7WiV4VoEXNeGs3v1oQ== X-Received: by 2002:a62:1bce:0:b029:152:9d3b:c85f with SMTP id b197-20020a621bce0000b02901529d3bc85fmr3605653pfb.5.1602089151005; Wed, 07 Oct 2020 09:45:51 -0700 (PDT) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id g126sm3858647pfb.32.2020.10.07.09.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 09:45:50 -0700 (PDT) From: Vikas Gupta To: dev@dpdk.org, akhil.goyal@nxp.com Cc: vikram.prakash@broadcom.com, Vikas Gupta Date: Wed, 7 Oct 2020 22:15:31 +0530 Message-Id: <20201007164539.45097-1-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201005162658.12416-1-vikas.gupta@broadcom.com> References: <20201005162658.12416-1-vikas.gupta@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH v4 0/8] Add Crypto PMD for Broadcom`s FlexSparc devices 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" Hi, This patchset contains support for Crypto offload on Broadcom’s Stingray/Stingray2 SoCs having FlexSparc unit. BCMFS is an acronym for Broadcom FlexSparc device used in the patchest. The patchset progressively adds major modules as below. a) Detection of platform-device based on the known registered platforms and attaching with VFIO. b) Creation of Cryptodevice. c) Addition of session handling. d) Add Cryptodevice into test Cryptodev framework. The patchset has been tested on the above mentioned SoCs. Regards, Vikas Changes from v0->v1: Updated the ABI version in file .../crypto/bcmfs/rte_pmd_bcmfs_version.map Changes from v1->v2: - Fix compilation errors and coding style warnings. - Use global test crypto suite suggested by Adam Dybkowski Changes from v2->v3: - Release notes updated. - bcmfs.rst updated with missing information about installation. - Review comments from patch1 from v2 addressed. - Updated description about dependency of PMD driver on VFIO_PRESENT. - Fixed typo in bcmfs_hw_defs.h (comments on patch3 from v2 addressed) - Comments on patch6 from v2 addressed and capability list is fixed. Removed redundant enums and macros from the file bcmfs_sym_defs.h and updated other impacted APIs accordingly. patch7 too is updated due to removal of redundancy. Thanks! to Akhil for pointing out the redundancy. - Fix minor code style issues in few files as part of review. Changes from v3->v4: - Code style issues fixed. - Change of barrier API in bcmfs4_rm.c and bcmfs5_rm.c Vikas Gupta (8): crypto/bcmfs: add BCMFS driver crypto/bcmfs: add vfio support crypto/bcmfs: add queue pair management API crypto/bcmfs: add HW queue pair operations crypto/bcmfs: create a symmetric cryptodev crypto/bcmfs: add session handling and capabilities crypto/bcmfs: add crypto HW module crypto/bcmfs: add crypto pmd into cryptodev test MAINTAINERS | 7 + app/test/test_cryptodev.c | 17 + app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/bcmfs.rst | 109 ++ doc/guides/cryptodevs/features/bcmfs.ini | 56 + doc/guides/cryptodevs/index.rst | 1 + doc/guides/rel_notes/release_20_11.rst | 5 + drivers/crypto/bcmfs/bcmfs_dev_msg.h | 29 + drivers/crypto/bcmfs/bcmfs_device.c | 332 +++++ drivers/crypto/bcmfs/bcmfs_device.h | 76 ++ drivers/crypto/bcmfs/bcmfs_hw_defs.h | 32 + drivers/crypto/bcmfs/bcmfs_logs.c | 38 + drivers/crypto/bcmfs/bcmfs_logs.h | 34 + drivers/crypto/bcmfs/bcmfs_qp.c | 383 ++++++ drivers/crypto/bcmfs/bcmfs_qp.h | 142 ++ drivers/crypto/bcmfs/bcmfs_sym.c | 289 +++++ drivers/crypto/bcmfs/bcmfs_sym_capabilities.c | 764 +++++++++++ drivers/crypto/bcmfs/bcmfs_sym_capabilities.h | 16 + drivers/crypto/bcmfs/bcmfs_sym_defs.h | 34 + drivers/crypto/bcmfs/bcmfs_sym_engine.c | 1155 +++++++++++++++++ drivers/crypto/bcmfs/bcmfs_sym_engine.h | 115 ++ drivers/crypto/bcmfs/bcmfs_sym_pmd.c | 426 ++++++ drivers/crypto/bcmfs/bcmfs_sym_pmd.h | 38 + drivers/crypto/bcmfs/bcmfs_sym_req.h | 62 + drivers/crypto/bcmfs/bcmfs_sym_session.c | 282 ++++ drivers/crypto/bcmfs/bcmfs_sym_session.h | 109 ++ drivers/crypto/bcmfs/bcmfs_vfio.c | 107 ++ drivers/crypto/bcmfs/bcmfs_vfio.h | 17 + drivers/crypto/bcmfs/hw/bcmfs4_rm.c | 743 +++++++++++ drivers/crypto/bcmfs/hw/bcmfs5_rm.c | 677 ++++++++++ drivers/crypto/bcmfs/hw/bcmfs_rm_common.c | 82 ++ drivers/crypto/bcmfs/hw/bcmfs_rm_common.h | 51 + drivers/crypto/bcmfs/meson.build | 20 + .../crypto/bcmfs/rte_pmd_bcmfs_version.map | 3 + drivers/crypto/meson.build | 1 + 35 files changed, 6253 insertions(+) create mode 100644 doc/guides/cryptodevs/bcmfs.rst create mode 100644 doc/guides/cryptodevs/features/bcmfs.ini create mode 100644 drivers/crypto/bcmfs/bcmfs_dev_msg.h create mode 100644 drivers/crypto/bcmfs/bcmfs_device.c create mode 100644 drivers/crypto/bcmfs/bcmfs_device.h create mode 100644 drivers/crypto/bcmfs/bcmfs_hw_defs.h create mode 100644 drivers/crypto/bcmfs/bcmfs_logs.c create mode 100644 drivers/crypto/bcmfs/bcmfs_logs.h create mode 100644 drivers/crypto/bcmfs/bcmfs_qp.c create mode 100644 drivers/crypto/bcmfs/bcmfs_qp.h create mode 100644 drivers/crypto/bcmfs/bcmfs_sym.c create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_capabilities.c create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_capabilities.h create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_defs.h create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_engine.c create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_engine.h create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_pmd.c create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_pmd.h create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_req.h create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_session.c create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_session.h create mode 100644 drivers/crypto/bcmfs/bcmfs_vfio.c create mode 100644 drivers/crypto/bcmfs/bcmfs_vfio.h create mode 100644 drivers/crypto/bcmfs/hw/bcmfs4_rm.c create mode 100644 drivers/crypto/bcmfs/hw/bcmfs5_rm.c create mode 100644 drivers/crypto/bcmfs/hw/bcmfs_rm_common.c create mode 100644 drivers/crypto/bcmfs/hw/bcmfs_rm_common.h create mode 100644 drivers/crypto/bcmfs/meson.build create mode 100644 drivers/crypto/bcmfs/rte_pmd_bcmfs_version.map -- 2.17.1