From patchwork Mon Jun 28 16:34:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 94907 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 71D80A0A0C; Mon, 28 Jun 2021 18:34:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E512C40692; Mon, 28 Jun 2021 18:34:29 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id DD7104068A for ; Mon, 28 Jun 2021 18:34:27 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10029"; a="207934330" X-IronPort-AV: E=Sophos;i="5.83,306,1616482800"; d="scan'208";a="207934330" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2021 09:34:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,306,1616482800"; d="scan'208";a="456395384" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by fmsmga008.fm.intel.com with ESMTP; 28 Jun 2021 09:34:19 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, fiona.trahe@intel.com, roy.fan.zhang@intel.com, Arek Kusztal Date: Mon, 28 Jun 2021 17:34:18 +0100 Message-Id: <20210628163434.77741-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.13.6 Subject: [dpdk-dev] [PATCH v2 00/16] Add support for fourth generation of Intel QuickAssist Technology devices 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 Sender: "dev" This patchset adds support for fourth generation (GEN4) of Intel QuickAssist Technology (QAT) devices. Symmetric crypto PMD is enabled with following algorithms: * AES-CBC * AES-CMAC * AES-XCBC MAC * NULL (auth, cipher) * SHA1-HMAC * SHA2-HMAC (224, 256, 384, 512) * Chacha20-Poly1305 * AES-CCM * AES-GCM Other services (compression, asymmetric crypto) are not added with this patchset. v2: - add service discovery Adam Dybkowski (2): crypto/qat: enable RAW API on QAT GEN1-3 only test/crypto: check if RAW API is supported Arek Kusztal (13): common/qat: rework qp per service function crypto/qat: add support for generation 4 devices crypto/qat: enable gen4 legacy algorithms crypto/qat: add gen4 ucs slice type, add ctr mode crypto/qat: rename content descriptor functions crypto/qat: add legacy gcm and ccm crypto/qat: rework init common header function crypto/qat: add aes gcm in ucs spc mode crypto/qat: add chacha-poly in ucs spc mode crypto/qat: add gmac in legacy mode on gen 4 common/qat: add pf2vf communication in qat common/qat: reset ring pairs before setting gen4 common/qat: add service discovery to qat gen4 Fan Zhang (1): crypto/qat: update raw dp api app/test/test_cryptodev.c | 34 +- doc/guides/cryptodevs/qat.rst | 10 +- doc/guides/rel_notes/release_21_08.rst | 6 + drivers/common/qat/meson.build | 1 + drivers/common/qat/qat_adf/adf_pf2vf_msg.h | 154 ++++++ .../adf_transport_access_macros_gen4.h | 52 ++ .../adf_transport_access_macros_gen4vf.h | 48 ++ drivers/common/qat/qat_adf/icp_qat_fw_la.h | 28 ++ drivers/common/qat/qat_adf/icp_qat_hw.h | 10 + drivers/common/qat/qat_common.h | 11 +- drivers/common/qat/qat_device.c | 88 ++++ drivers/common/qat/qat_device.h | 18 + drivers/common/qat/qat_pf2vf.c | 80 +++ drivers/common/qat/qat_pf2vf.h | 19 + drivers/common/qat/qat_qp.c | 269 +++++++--- drivers/common/qat/qat_qp.h | 30 +- drivers/compress/qat/qat_comp_pmd.c | 16 +- drivers/crypto/qat/qat_asym_pmd.c | 16 +- drivers/crypto/qat/qat_sym.c | 57 ++- drivers/crypto/qat/qat_sym_capabilities.h | 472 ++++++++++++++++++ drivers/crypto/qat/qat_sym_hw_dp.c | 419 ++++++++-------- drivers/crypto/qat/qat_sym_pmd.c | 53 +- drivers/crypto/qat/qat_sym_session.c | 335 ++++++++----- drivers/crypto/qat/qat_sym_session.h | 31 +- 24 files changed, 1782 insertions(+), 475 deletions(-) create mode 100644 drivers/common/qat/qat_adf/adf_pf2vf_msg.h create mode 100644 drivers/common/qat/qat_adf/adf_transport_access_macros_gen4.h create mode 100644 drivers/common/qat/qat_adf/adf_transport_access_macros_gen4vf.h create mode 100644 drivers/common/qat/qat_pf2vf.c create mode 100644 drivers/common/qat/qat_pf2vf.h Acked-by: Fan Zhang