From patchwork Wed Feb 28 14:00:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nayak, Nishikanta" X-Patchwork-Id: 711 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 DEB4B43C2D; Wed, 28 Feb 2024 15:00:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BBEE94328B; Wed, 28 Feb 2024 15:00:50 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by mails.dpdk.org (Postfix) with ESMTP id CA29643285 for ; Wed, 28 Feb 2024 15:00:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709128849; x=1740664849; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UGbUOJO7XNhSPtKTDkdU1shYIn/FMrvL4PyQ14b4kCw=; b=LuoUdzJwfBMNPvfvOByqhX3csSwjiCOISAFDzI+6w4QU6saJOfHaXjdq G7s+hzq0vp1aR/Xwc2/HkXi9GJn+DP4Ye3wqiZj9XaQQ7ecoVpavzx3VA KrEeXOEbIKI5Su8o4WaUufCWJsWplHvBz70AExZfTvg3Aeb7/CelL1ja/ ERTCb32AgQeFlFCOEeGmONtb4wWVXeDktXEewGdMJdE1RS53MaF/ttllw ANJY5vE6wvvahn8gCv/JofSO93DHxnez8ylyQMWXpTR1BOEB7Qe9htmPw Z0jWhxmDz3StRq1JFFuRHt5WBWL9i/bZCtok4xPru1oHvHnBRr6U663AW g==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3374013" X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="3374013" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2024 06:00:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="12157130" Received: from silpixa00401797.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.113]) by orviesa005.jf.intel.com with ESMTP; 28 Feb 2024 06:00:38 -0800 From: Nishikant Nayak To: dev@dpdk.org Cc: ciara.power@intel.com, kai.ji@intel.com, arkadiuszx.kusztal@intel.com, rakesh.s.joshi@intel.com, Nishikant Nayak Subject: [PATCH v6 0/4] add QAT GEN LCE device Date: Wed, 28 Feb 2024 14:00:32 +0000 Message-Id: <20240228140036.1996629-1-nishikanta.nayak@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231220132616.318983-1-nishikanta.nayak@intel.com> References: <20231220132616.318983-1-nishikanta.nayak@intel.com> MIME-Version: 1.0 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 This patchset adds a new QAT LCE device. The device currently only supports symmetric crypto, and only the AES-GCM algorithm. v6: - Added documentation and release note changes. - Removed unused device PCI ID. v5: - Fixed compilation issue by replacing __u8 with uint8_t. v4: - Fixed cover letter, v3 included the wrong details relating to another patchset. v3: - Fixed typos in commit and code comments. - Replaced use of linux/kernel.h macro with local macro to fix ARM compilation in CI. v2: - Renamed device from GEN 5 to GEN LCE. - Removed unused code. - Updated macro names. Nishikant Nayak (4): common/qat: add files specific to GEN LCE common/qat: update common driver to support GEN LCE crypto/qat: update headers for GEN LCE support test/cryptodev: add tests for GCM with AAD .mailmap | 1 + app/test/test_cryptodev.c | 48 ++- app/test/test_cryptodev_aead_test_vectors.h | 62 ++++ doc/guides/cryptodevs/qat.rst | 1 + doc/guides/rel_notes/release_24_03.rst | 4 + drivers/common/qat/dev/qat_dev_gen_lce.c | 306 ++++++++++++++++ drivers/common/qat/meson.build | 2 + .../qat/qat_adf/adf_transport_access_macros.h | 1 + .../adf_transport_access_macros_gen_lce.h | 51 +++ .../adf_transport_access_macros_gen_lcevf.h | 48 +++ drivers/common/qat/qat_adf/icp_qat_fw.h | 34 ++ drivers/common/qat/qat_adf/icp_qat_fw_la.h | 59 +++- drivers/common/qat/qat_common.h | 1 + drivers/common/qat/qat_device.c | 5 + .../crypto/qat/dev/qat_crypto_pmd_gen_lce.c | 329 ++++++++++++++++++ drivers/crypto/qat/qat_sym.c | 16 +- drivers/crypto/qat/qat_sym.h | 66 +++- drivers/crypto/qat/qat_sym_session.c | 62 +++- drivers/crypto/qat/qat_sym_session.h | 10 +- 19 files changed, 1090 insertions(+), 16 deletions(-) create mode 100644 drivers/common/qat/dev/qat_dev_gen_lce.c create mode 100644 drivers/common/qat/qat_adf/adf_transport_access_macros_gen_lce.h create mode 100644 drivers/common/qat/qat_adf/adf_transport_access_macros_gen_lcevf.h create mode 100644 drivers/crypto/qat/dev/qat_crypto_pmd_gen_lce.c