From patchwork Mon Jul 27 10:14:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dybkowski, AdamX" X-Patchwork-Id: 74846 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C10B2A0524; Mon, 27 Jul 2020 12:16:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 945681C029; Mon, 27 Jul 2020 12:16:22 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id DBD141BFDD for ; Mon, 27 Jul 2020 12:16:19 +0200 (CEST) IronPort-SDR: z6QzpWWeNwxlf5blyAKlOJxoxX80XcnTBNZF8lDeTXb1ZqZcgm2xS/Mtzj/OYtGEnvrPG5y94B jAvzBNfDDhlA== X-IronPort-AV: E=McAfee;i="6000,8403,9694"; a="131050245" X-IronPort-AV: E=Sophos;i="5.75,402,1589266800"; d="scan'208";a="131050245" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2020 03:16:18 -0700 IronPort-SDR: zgUvlM4ruoI1UW3QQJJInNj0GRw4uM4u8VBnmieihslEVmZhfy9IwVWWTpZ2/fROpL6k6Ixq7I grMDYWobNaeQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,402,1589266800"; d="scan'208";a="303405227" Received: from unknown (HELO adamdybx-MOBL.ger.corp.intel.com) ([10.104.113.9]) by orsmga002.jf.intel.com with ESMTP; 27 Jul 2020 03:16:17 -0700 From: Adam Dybkowski To: dev@dpdk.org, fiona.trahe@intel.com, akhil.goyal@nxp.com Cc: Adam Dybkowski Date: Mon, 27 Jul 2020 12:14:07 +0200 Message-Id: <20200727101408.3539-2-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200727101408.3539-1-adamx.dybkowski@intel.com> References: <20200722080720.5977-1-adamx.dybkowski@intel.com> <20200727101408.3539-1-adamx.dybkowski@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v5 1/2] common/qat: support GEN2 QAT device 200xx 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 adds pci detection and documentation for Intel GEN2 QuickAssist device 200xx (PF Did 0x18ee, VF Did 0x18ef). Signed-off-by: Adam Dybkowski Acked-by: Fiona Trahe --- doc/guides/cryptodevs/qat.rst | 7 +++++-- doc/guides/rel_notes/release_20_08.rst | 2 ++ drivers/common/qat/qat_device.c | 6 +++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/guides/cryptodevs/qat.rst b/doc/guides/cryptodevs/qat.rst index 7ede427a2..e5d2cf499 100644 --- a/doc/guides/cryptodevs/qat.rst +++ b/doc/guides/cryptodevs/qat.rst @@ -22,6 +22,7 @@ poll mode crypto driver support for the following hardware accelerator devices: * ``Intel QuickAssist Technology DH895xCC`` * ``Intel QuickAssist Technology C62x`` * ``Intel QuickAssist Technology C3xxx`` +* ``Intel QuickAssist Technology 200xx`` * ``Intel QuickAssist Technology D15xx`` * ``Intel QuickAssist Technology C4xxx`` @@ -393,6 +394,8 @@ to see the full table) +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+ | Yes | Yes | Yes | " | " | 01.org/4.2.0+ | " | " | " | " | " | " | +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+ + | Yes | No | No | 2 | 200xx | p | qat_200xx | 200xx | 18ee | 1 | 18ef | 16 | + +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+ | Yes | No | No | 2 | D15xx | 01.org/4.2.0+ | qat_d15xx | d15xx | 6f54 | 1 | 6f55 | 16 | +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+ | Yes | No | No | 3 | C4xxx | p | qat_c4xxx | c4xxx | 18a0 | 1 | 18a1 | 128 | @@ -619,8 +622,8 @@ adjust the unbind command below:: done; \ done -For Intel(R) QuickAssist Technology C3xxx or D15xx device -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +For Intel(R) QuickAssist Technology C3xxx or 200xx or D15xx device +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The unbind command below assumes ``BDFs`` of ``01:01.00-01:02.07``, if your VFs are different adjust the unbind command below:: diff --git a/doc/guides/rel_notes/release_20_08.rst b/doc/guides/rel_notes/release_20_08.rst index d65f77250..bb4a10053 100644 --- a/doc/guides/rel_notes/release_20_08.rst +++ b/doc/guides/rel_notes/release_20_08.rst @@ -200,6 +200,8 @@ New Features ``rte_security`` API. * Added Chacha20-Poly1305 AEAD algorithm. * Improved handling of multi process in QAT crypto and compression PMDs. + * Added support for Intel GEN2 QuickAssist device 200xx + (PF Did 0x18ee, VF Did 0x18ef). * **Updated the OCTEON TX2 crypto PMD.** diff --git a/drivers/common/qat/qat_device.c b/drivers/common/qat/qat_device.c index a6ab29f95..b050ce20e 100644 --- a/drivers/common/qat/qat_device.c +++ b/drivers/common/qat/qat_device.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2018 Intel Corporation + * Copyright(c) 2018-2020 Intel Corporation */ #include @@ -53,6 +53,9 @@ static const struct rte_pci_id pci_id_qat_map[] = { { RTE_PCI_DEVICE(0x8086, 0x6f55), }, + { + RTE_PCI_DEVICE(0x8086, 0x18ef), + }, { RTE_PCI_DEVICE(0x8086, 0x18a1), }, @@ -223,6 +226,7 @@ qat_pci_device_allocate(struct rte_pci_device *pci_dev, case 0x37c9: case 0x19e3: case 0x6f55: + case 0x18ef: qat_dev->qat_dev_gen = QAT_GEN2; break; case 0x18a1: From patchwork Mon Jul 27 10:14:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dybkowski, AdamX" X-Patchwork-Id: 74847 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 43C62A0524; Mon, 27 Jul 2020 12:16:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3C9EF1C0B4; Mon, 27 Jul 2020 12:16:29 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id A6C821BFF5 for ; Mon, 27 Jul 2020 12:16:21 +0200 (CEST) IronPort-SDR: J+VswsEa8kEmGjfOpxq925ancOkr59e12KUAaDNGIyJtAk9253qV9XHdVnbN4qs63GkMOkSFeg BjvYnYoriwIg== X-IronPort-AV: E=McAfee;i="6000,8403,9694"; a="131050249" X-IronPort-AV: E=Sophos;i="5.75,402,1589266800"; d="scan'208";a="131050249" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2020 03:16:20 -0700 IronPort-SDR: 9ZmHKx4E0W5LMkXofLtZsLOcztFQEB1AHCmZNfoZHq3lQpy+/GmkOFm97eXlLnxN/hHTuASxSk O50sHCZMfrnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,402,1589266800"; d="scan'208";a="303405237" Received: from unknown (HELO adamdybx-MOBL.ger.corp.intel.com) ([10.104.113.9]) by orsmga002.jf.intel.com with ESMTP; 27 Jul 2020 03:16:19 -0700 From: Adam Dybkowski To: dev@dpdk.org, fiona.trahe@intel.com, akhil.goyal@nxp.com Cc: Adam Dybkowski Date: Mon, 27 Jul 2020 12:14:08 +0200 Message-Id: <20200727101408.3539-3-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200727101408.3539-1-adamx.dybkowski@intel.com> References: <20200722080720.5977-1-adamx.dybkowski@intel.com> <20200727101408.3539-1-adamx.dybkowski@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v5 2/2] doc: update QAT PMD release notes 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 updates 20.08 release notes inside the part that describe changes in Intel QuickAssist PMD. Fixes: faa57df0b458 ("crypto/qat: support ChaCha20-Poly1305") Fixes: 9904ff684981 ("common/qat: improve multi-process handling") Signed-off-by: Adam Dybkowski Acked-by: Fiona Trahe --- doc/guides/rel_notes/release_20_08.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/guides/rel_notes/release_20_08.rst b/doc/guides/rel_notes/release_20_08.rst index bb4a10053..dce18f84d 100644 --- a/doc/guides/rel_notes/release_20_08.rst +++ b/doc/guides/rel_notes/release_20_08.rst @@ -196,9 +196,9 @@ New Features * **Updated the QuickAssist Technology (QAT) PMD.** - * Added support for lookaside protocol offload for DOCSIS through the - ``rte_security`` API. - * Added Chacha20-Poly1305 AEAD algorithm. + * Added support for lookaside protocol offload in QAT crypto PMD + for DOCSIS through the ``rte_security`` API. + * Added Chacha20-Poly1305 AEAD algorithm in QAT crypto PMD. * Improved handling of multi process in QAT crypto and compression PMDs. * Added support for Intel GEN2 QuickAssist device 200xx (PF Did 0x18ee, VF Did 0x18ef).