From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0073.outbound.protection.outlook.com [104.47.41.73]) by dpdk.org (Postfix) with ESMTP id 74D4B1B0F7 for ; Tue, 9 Oct 2018 11:08:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yfY2CN57bJTZdo0gydJ4OnNKo1bxkoWCvWWwxThyrG0=; b=lytdiRZj+3xnJswiQtv+QEB1Rn/EvJ7+XLyRBqvr+yKivcAXsMu9Q44eoVdHpWs0bhoI/Jx0g9S66O7FgSWYVmjqxMnIBxJr2JlMVALIR7xwtVTVtiL6/HMByAjXUQ15DedpB0R/bOiCKpE++kytZpXMTtNeH2knhfmDNkPUSDQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by BN7PR07MB4897.namprd07.prod.outlook.com (2603:10b6:406:ef::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.28; Tue, 9 Oct 2018 09:08:33 +0000 From: Anoob Joseph To: Akhil Goyal , Pablo de Lara , Thomas Monjalon Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , Ankur Dwivedi , Murthy NSSR , Nithin Dabilpuram , Ragothaman Jayaraman , Srisivasubramanian S , Tejasree Kondoj , dev@dpdk.org Date: Tue, 9 Oct 2018 14:37:33 +0530 Message-Id: <1539076076-19786-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538744363-30340-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1538744363-30340-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: PN1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::14) To BN7PR07MB4897.namprd07.prod.outlook.com (2603:10b6:406:ef::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6627396e-f673-4637-a3cb-08d62dc6cbd0 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4897; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4897; 3:64nB4d62OQ5EEkzwLLbJPKPHeytBDw6nvcGznFtLvdgMn0ru7tJnf4TNE51xfibi9LsHaKVytVGT+9CexiDOeeUGUOrPd6h8GEA0nUSz2EZ5AJuazabTW3PgV8rChyV4ljgeKBJ8KxkZz4952PtYoPSp90yPb9GVFGiauC8xu+G7aT1lMCOvqNXsd3bnS2GkHOLgUoMqQSu/sPt1L1IOM7WG1e8sjE/9eCnN00HEHy1kDDSDHAFr5IWHC4MWKs5h; 25:jVpiWCrT1Q1XfDVMeXq5N9Th3joVbNUghtU5drb7WzqkC9RLnHWRUEvP8HunpyHiBd6UNB6/fb+HU84evfF/Nm4zspLUUox4FGE++GnCDTVJQ2cOBH/VNYbdZLSIkVWF7nSmCjnvUjXRUqPsxbC22pyWsgQeGC3y+eJRrwYrl9PuO2ZFmbQakmKBQQBlMRS2nkepKvrXFspnYtkRo0k+25Uun58TjJwTrg3pVhVPLqXXg/DuTlASmpE4Yh+O36KSddNSHADDLcZv9Pd/bCQ35R8Zy8/T07QBtc0l16BlMej+PJeFG3rZyDY8gERw5uARqIoM7PfYClgOUoe1O8WhBQ==; 31:K+ass9dcl8yKS3X8G47wXwtnYxw3ageneZ/IhcbxJrEt0tYUqTGYHstbw4r8meANhWdeHiJ4MWby2GjdRLAlkr8YPkrHkArpXhogh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KTVmQHjxgZgaC3doQqnEdfP0d+mnIP9jw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(3231355)(944501410)(52105095)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(201708071742011)(7699051); SRVR:BN7PR07MB4897; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4897; X-Forefront-PRVS: 08200063E9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(136003)(346002)(39860400002)(199004)(189003)(42882007)(47776003)(106356001)(186003)(5660300001)(26005)(68736007)(16526019)(8936002)(25786009)(6116002)(2906002)(81156014)(50226002)(305945005)(81166006)(7736002)(3846002)(105586002)(478600001)(8676002)(54906003)(110136005)(48376002)(16586007)(14444005)(6486002)(6506007)(50466002)(316002)(53936002)(386003)(51416003)(52116002)(76176011)(11346002)(6512007)(44832011)(446003)(36756003)(55236004)(956004)(2616005)(486006)(4326008)(66066001)(97736004)(72206003)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4897; H:ajoseph83.caveonetworks.com.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR07MB4897; 23:YarvYEaGa5u6OdlLcu1xYuRr3JpQZVSxsOd8VbGOO?= =?us-ascii?Q?qnq+i2IVjf4vYVVdhXorNOwnarFvxAhWKmhuhTDQ8QE9jUcsJThRI88UfO8K?= =?us-ascii?Q?r/3bhzvenN8q0y2nrcoprSWVnFhZbcqBYhDyauXDsdKn4erkVyugPHSXdGE5?= =?us-ascii?Q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JSHu2mehPLAxwqObLmPaXCuT/Rg+ZpgVx5GUx1nZ3WpSnd+fwi3/4y5AgooGx9N0fu8r4afR1PY2+Q1UTPA==; 5:xfT70V+eEKEm78nu8Zgyic8rsx54iG3ad9VDfZ7nVnthRiYUE5L5hcvCmNhai8pTdJWvz9jMgfbNrmE7jBSZeGzWfMY7zhQci7sXkpqKVn92w/q1GFE9o4nQZcLEPtRS7Qq8eUbgjO5lrB0thhp4FIyVz3UcIu2b2gVROnQGFqA=; 7:Dj0jhVkaExNQBO4GRel/YMInV03KDiVmJlLkMKWXeiSgaoD2klSACnBSagRxTFiuUUo89SWIdr4YZjGwXNkXSQx40XNnbnnm0JJzmC1EP8IxE7BGBpg6tvZmBDcuuleM+29T2TbBToMoIpfnvxwoOETDdf4JcsUANFON2VJrx85T/19CELyx4WTsfxVwD2CyCUb3l3jbG5nlcWbX73IkymKBnJFMtOM0irAroInohHk9YUu3f3iOlT9bEAG4D3GR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2018 09:08:33.2363 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6627396e-f673-4637-a3cb-08d62dc6cbd0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4897 Subject: [dpdk-dev] [PATCH v4 00/23] Adding Cavium's OCTEON TX crypto PMD 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: , X-List-Received-Date: Tue, 09 Oct 2018 09:08:40 -0000 v4: * Marged the following v3 patches (Akhil & Thomas), - 01/32 & 02/32 - 03/32, 04/32 & 05/32 - 06/32 & 07/32 - 13/32 & 14/32 - 15/32 & 16/32 - 17/32 & 18/32 - 27/32 & 28/32 - 29/32 & 30/32 * Replaced usages OCTEONTX with OCTEON TX (Thomas & Jerin) * Fixed commit logs in v3 02/32 (Thomas) * Replaced references to cpt with octeontx in v3 31/32 (Akhil) * Fixed commit logs in v3 31/32 (Akhil) v3: * Merged v2-0001* & v2-0003* patch (Akhil) * Replaced macro used in capabilities with array and function to return it (Thomas) * Consistent comments in the code base (Akhil) * Added missing comments for members of structure (Akhil) * Added missing feature flags for scatter-gather (Akhil) * Added validation tests for testing the newly introduced flags (Akhil) * Added missing flags etc in doc (Akhil) * Improvements in the function cpt_fc_ciph_set_key function (patch 0017) * Fixed typos (Akhil) * Other optimizations (removed non-critical members in structures accessed in data path etc) v2: * Moved common code identified for crypto devices of OCTEON TX family to common/cpt. * Divided the patches to make sure one feature gets added with one patch. * Addressed indentation issues. * Addressed comments from Jerin and Pablo. Ankur Dwivedi (4): crypto/octeontx: add hardware init routine crypto/octeontx: add hardware register access for misc poll crypto/octeontx: add symmetric capabilities test/crypto: add OCTEON TX unit tests Anoob Joseph (4): crypto/octeontx: add PMD skeleton common/cpt: add PMD ops helper functions crypto/octeontx: add global resource init doc: add documentation for OCTEON TX crypto Murthy NSSR (3): crypto/octeontx: add mailbox routines crypto/octeontx: add basic dev ops crypto/octeontx: add queue pair functions Nithin Dabilpuram (3): crypto/octeontx: add session management ops crypto/octeontx: add supported sessions common/cpt: add common defines for microcode Ragothaman Jayaraman (3): common/cpt: add microcode interface for encryption common/cpt: add microcode interface for decryption common/cpt: add crypo op enqueue request manager framework Srisivasubramanian S (3): common/cpt: support zuc and snow3g common/cpt: support kasumi common/cpt: support hash Tejasree Kondoj (3): crypto/octeontx: add routines to prepare instructions crypto/octeontx: add enqueue burst op crypto/octeontx: add dequeue burst op MAINTAINERS | 7 + config/common_base | 5 + doc/guides/cryptodevs/features/octeontx.ini | 62 + doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/octeontx.rst | 128 + drivers/common/Makefile | 4 + drivers/common/cpt/Makefile | 25 + drivers/common/cpt/cpt_common.h | 91 + drivers/common/cpt/cpt_hw_types.h | 522 +++ drivers/common/cpt/cpt_mcode_defines.h | 386 +++ drivers/common/cpt/cpt_pmd_logs.h | 50 + drivers/common/cpt/cpt_pmd_ops_helper.c | 41 + drivers/common/cpt/cpt_pmd_ops_helper.h | 34 + drivers/common/cpt/cpt_request_mgr.h | 185 + drivers/common/cpt/cpt_ucode.h | 3648 ++++++++++++++++++++ drivers/common/cpt/meson.build | 8 + drivers/common/cpt/rte_common_cpt_version.map | 6 + drivers/common/meson.build | 2 +- drivers/crypto/Makefile | 1 + drivers/crypto/meson.build | 2 +- drivers/crypto/octeontx/Makefile | 46 + drivers/crypto/octeontx/meson.build | 18 + drivers/crypto/octeontx/otx_cryptodev.c | 133 + drivers/crypto/octeontx/otx_cryptodev.h | 20 + .../crypto/octeontx/otx_cryptodev_capabilities.c | 604 ++++ .../crypto/octeontx/otx_cryptodev_capabilities.h | 17 + drivers/crypto/octeontx/otx_cryptodev_hw_access.c | 598 ++++ drivers/crypto/octeontx/otx_cryptodev_hw_access.h | 320 ++ drivers/crypto/octeontx/otx_cryptodev_mbox.c | 178 + drivers/crypto/octeontx/otx_cryptodev_mbox.h | 92 + drivers/crypto/octeontx/otx_cryptodev_ops.c | 531 +++ drivers/crypto/octeontx/otx_cryptodev_ops.h | 18 + .../octeontx/rte_pmd_octeontx_crypto_version.map | 4 + mk/rte.app.mk | 5 + test/test/meson.build | 1 + test/test/test_cryptodev.c | 318 ++ test/test/test_cryptodev.h | 1 + test/test/test_cryptodev_aes_test_vectors.h | 114 +- test/test/test_cryptodev_blockcipher.c | 9 +- test/test/test_cryptodev_blockcipher.h | 1 + test/test/test_cryptodev_des_test_vectors.h | 12 +- test/test/test_cryptodev_hash_test_vectors.h | 78 +- 42 files changed, 8255 insertions(+), 71 deletions(-) create mode 100644 doc/guides/cryptodevs/features/octeontx.ini create mode 100644 doc/guides/cryptodevs/octeontx.rst create mode 100644 drivers/common/cpt/Makefile create mode 100644 drivers/common/cpt/cpt_common.h create mode 100644 drivers/common/cpt/cpt_hw_types.h create mode 100644 drivers/common/cpt/cpt_mcode_defines.h create mode 100644 drivers/common/cpt/cpt_pmd_logs.h create mode 100644 drivers/common/cpt/cpt_pmd_ops_helper.c create mode 100644 drivers/common/cpt/cpt_pmd_ops_helper.h create mode 100644 drivers/common/cpt/cpt_request_mgr.h create mode 100644 drivers/common/cpt/cpt_ucode.h create mode 100644 drivers/common/cpt/meson.build create mode 100644 drivers/common/cpt/rte_common_cpt_version.map create mode 100644 drivers/crypto/octeontx/Makefile create mode 100644 drivers/crypto/octeontx/meson.build create mode 100644 drivers/crypto/octeontx/otx_cryptodev.c create mode 100644 drivers/crypto/octeontx/otx_cryptodev.h create mode 100644 drivers/crypto/octeontx/otx_cryptodev_capabilities.c create mode 100644 drivers/crypto/octeontx/otx_cryptodev_capabilities.h create mode 100644 drivers/crypto/octeontx/otx_cryptodev_hw_access.c create mode 100644 drivers/crypto/octeontx/otx_cryptodev_hw_access.h create mode 100644 drivers/crypto/octeontx/otx_cryptodev_mbox.c create mode 100644 drivers/crypto/octeontx/otx_cryptodev_mbox.h create mode 100644 drivers/crypto/octeontx/otx_cryptodev_ops.c create mode 100644 drivers/crypto/octeontx/otx_cryptodev_ops.h create mode 100644 drivers/crypto/octeontx/rte_pmd_octeontx_crypto_version.map -- 2.7.4