From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01hn0235.outbound.protection.outlook.com [104.47.34.235]) by dpdk.org (Postfix) with ESMTP id 1F25C325F for ; Fri, 9 Mar 2018 09:35:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JDv0eBlpi0VhJG72y/kfU5e4rbIQ4r+ydJHOn6nhGAQ=; b=KTCV+PTy3odSDPQQyNNsHKgzGB3VuPq/j/kXpAXUWvj/EEHU7gxw6dkjSc6MZofvH6T8MVtQMeCSVLo7zZBJHhGJw97Z0uwXr1k2Y/BKwOgRHWA6IGoSNPcvV9i+4/62ukbexFacSVC+XbAyyplNABV64zARoU1XPiCi6Trdv+s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ravi1.Kumar@amd.com; Received: from wallaby-smavila.amd.com (202.56.249.162) by MWHPR12MB1518.namprd12.prod.outlook.com (2603:10b6:301:b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.14; Fri, 9 Mar 2018 08:35:42 +0000 From: Ravi Kumar To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com Date: Fri, 9 Mar 2018 03:35:01 -0500 Message-Id: <1520584520-130522-1-git-send-email-Ravi1.kumar@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515577379-18453-1-git-send-email-Ravi1.kumar@amd.com> References: <1515577379-18453-1-git-send-email-Ravi1.kumar@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: MA1PR0101CA0050.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::12) To MWHPR12MB1518.namprd12.prod.outlook.com (2603:10b6:301:b::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9285ea5f-e63d-4c87-c04e-08d58598bf3e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MWHPR12MB1518; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1518; 3:oCzHMnY/7WDykIhZ1p7ZMWuGCuafBVBNLUuno9ESB/geUd5FInQlxhAGrkGHluKE022tdjVzMQaEti3dPLZ2TgDxajadP2Re2x/RozuLdMd7FaAL3Zd2Are5TipcSclyuikZPLhwG8pRjbKs7nyu9gNJbj6i6XDYk6bzQE/uTF/RQC8+ONkA13R08R4q5h8vcBsrW3bLRO0KYhbml+1YHFYcugd1m/4pvxR/QD67f1ol9iavNWOgxwBKQxrUQsEB; 25:3SRz7h6MUgotXkALBar9xphqji8+UTTr86TYywn9kXIvREw+AGz1GfJhjGeTHsgPdSqDxS4sR6tycvedUhcuftAblac8FIee4tjwhw+uxaw2CfM88gRUzZiuWga3pKC1GretpmmixbGVDcCMEGgaGombh98coZ+dJ8a9SvgZnFPqui2me3PQ3GNsEM2+Av9+HAga/6ExTEHq7/GSmHJBAkvpUR/aRiflVf7FNZP6Vw+V+6JnIlnMEZx+aYYQW/UKHmPTb5xsWZhuW7SZnDipycEmx2sz5iQxVfRTe2VHv8aSjKPFQYoyAcxXsC2RTgjASnwRB1AQOOAtQ1T+roaXjw==; 31:pS9m1O4NgFA7teUzzT13NPbirdqfpGpGv66I8YciECtniXEX21qzkFtVc2ZGXgpcBVPeN/11EH30PeTiFfIVXwdjlZELbbAnQd+qTWA7BN4fnGWM58kHUJHAPNZhIiGL+JwTJnS0gPX7yOMoMofnNt26K7tRwnT1OkTm8Kw+lsMdfvtp8ha4z/e8OdOgXAL8VPXV8phZx/DiLvWpHvc3ig4YZxiJwdicDY5TSifnt8s= X-MS-TrafficTypeDiagnostic: MWHPR12MB1518: X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1518; 20:mmwqvr9Wo+Dfzp3ym75CVK/iSwDyKmQ3T/EewMYkGAVZ0RvshXefuhY2fp8EOOD0W557Yp+tg5ML7p9Dma/97FIV4ijCI2Bvsl+sHAEPm4Did4+orz7LrsMO8tEo+HHm9MAERDPClXKJT8+Q79JKM+tQJBcQzizgHwfjo9h2ZV0BzEIS2+Pu8IKfF7dACzikx3qDG9kg17+kVD0/OVUjV5cGo9MEy6j1l7VVudt6by5cKuCy7ZOOsOleIj546vbKTAuJib/yhThxiOGB5OsHJpTbB0fb681DiCkuf7jEGH/oUx8ucymcmGIXTYjTClyg9J31e8+dabzE6PuNmv2oNo+PoVUa5ShlR7pt7Egrz21v9oh4h46hIJhYS2xYjH8ZvFhQy04PpXaF7AOCHf0Fc8kE3qHPVN/6IVKZD4sgM1joAkv+JCmKH2qohaXJ3+LusGMdZxnuq7gcx6q/mypfsu8t+jwNmw9+FHmSib9A3F6LS4ceyf2iCnrcXjc3RUz4; 4:I1xGoSMBi6f54QRQfON3uOWABM3WKKXZu4+bBLgMJvqoSmdwoCWUiADIgs12nl3nxBsO4S4nRL5Oz8PxW4ePxfGNqQq7PRDjVsnTEaLWVU78OB2ctz9XLpEYRhoueqb0eFcaAb6B/HkrRX4U05NQ01wwxZFEaP6FeiGfOH9BsAVDnSwFvqKuzFUHyQj3iQXCKgjHa72xhmbPY6TMwDIgQkkLDR7H0AFsBgvc7Vhr+9WfVfmAJ+QNJEh9g/1r8KfW4sThsbF6afJCLeSpnh/0x0Snb4/RrKgGlPr8qJkiybqKC24KKUqKumbcBZiPk7cHxcnMEKYMIj7+4Pqhkbn4sZkbnj/BJAZaYlh3FMYad52YJVqAro6zyNVkwQZJxZuc X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(66839620246622)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231220)(2232076)(944501244)(52105095)(10201501046)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:MWHPR12MB1518; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1518; X-Forefront-PRVS: 0606BBEB39 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(979002)(39860400002)(39380400002)(396003)(366004)(376002)(346002)(199004)(189003)(16586007)(26005)(81156014)(16526019)(8676002)(186003)(81166006)(25786009)(7736002)(3846002)(386003)(305945005)(4326008)(6116002)(6666003)(316002)(86362001)(76176011)(52116002)(8936002)(51416003)(50226002)(5660300001)(2906002)(2950100002)(6916009)(59450400001)(7696005)(36756003)(106356001)(105586002)(6486002)(68736007)(48376002)(97736004)(53416004)(2361001)(2351001)(53936002)(50466002)(478600001)(47776003)(66066001)(72206003)(59010400001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1501; SCL:5; SRVR:MWHPR12MB1518; H:wallaby-smavila.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1518; 23:xIUfRHXsSlgD8lW/cajzDvPqLMPb3lEV0P9mD7ho0?= =?us-ascii?Q?IeOQgYtiIG1Ybuu2N9ZNlifoj88tJt8LkTWfohFVn+c1y1pKgJWmGZp/WUuM?= =?us-ascii?Q?LbV2vxymCyKyF+8sTjNk37xs/zLhZk37k2gxc161hGCL2eYiw3RFaeZhnhz9?= =?us-ascii?Q?Vh5Udk+t3pO5kDZN9erLRdasZ0phnqXsVFGB9GuKOZVupaCHSgM9xqkoiOor?= =?us-ascii?Q?modg4XcppnGTN+kC4uPnS3yO8FO9WK4mwPBwUYmTP01M1AlLoZPg+NSe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T2rugm9KGt23PXq+NFjBB2X1c5Y6bFJGAJlbNa+XIta+nG3/QAFjf3Mh1EMC8gx3FXf6Z3Jg==; 5:NzkBNfBkppSTT1sZkLvbpHbEVF1KlS2W/UiMoU81pJu3KOWFKxU8IpcFxSg3ardX6nKeRDiHeUmxcSiWYrigWGv4cUORHdNoZQbRvdqK8kISGUSA1JVgDEwqSMFCVUaqtZlcm1j1npcKg2AcK5rRFH00Ug8XWENbgtoFUeEJj3E=; 24:ER1z0WykVlR+npj/pAE8wOSOciXJaP6LdZFPcJ03ZS1w+OQaV9kCWBbgog28YyAlhiHRyt+p7Q8Wk0shLR5SBA==; 7:N5TZuFVMQRup1+a9H7s4NXb44P9cGfW0slWVjMBUfJsrtERBf6A95EVzmFpOzmYBg3mcjEaxZd90LDs6iY93/ddF7PzDm5tFL3lSqMumG1h0Xq9IJ4VNGHmOU4vzWw+tvZ/S+yAAnzn5lu+vi3vUPveZYaic4NbwmW2MVXzJ3CF85+eGt/aUG4XmT6F6eGydqZZ8RcANbtzPxGHQvKNo3fokYeYq07NmTNpmNKZcXalTHiXgE01GuaoRyMeV1qK3 SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1518; 20:j17VrNUEC/+Ju3evCeiiEZNavSS8ijJBtuXHCQJgj7OejVR6dBFm6SmN0OKDP1MdQ3Isob0HyiMZT4dvyWvDpuYBM8kG0rEE/nFDHuhTd/EGacf9Xuoc0gx1Rh6W0thiMChBRPbKW8hmQ/iblyPQg1u+13TDTJvwdk9HRPLcgvE6G4BGl0uK0kD2adFxSX+jRYJUzW7MqQD8kMkH7raKSbRCHgJbjfyX7cb0MNqjU4f5iTz3UVyec3xBKOM4OtQZ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2018 08:35:42.4439 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9285ea5f-e63d-4c87-c04e-08d58598bf3e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1518 Subject: [dpdk-dev] [PATCH v4 01/20] crypto/ccp: add AMD ccp skeleton 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: Fri, 09 Mar 2018 08:35:45 -0000 Signed-off-by: Ravi Kumar --- MAINTAINERS | 6 +++ config/common_base | 5 +++ doc/guides/rel_notes/release_18_05.rst | 5 +++ drivers/crypto/Makefile | 1 + drivers/crypto/ccp/Makefile | 55 ++++++++++++++++++++++++++ drivers/crypto/ccp/rte_ccp_pmd.c | 62 ++++++++++++++++++++++++++++++ drivers/crypto/ccp/rte_pmd_ccp_version.map | 4 ++ mk/rte.app.mk | 2 + 8 files changed, 140 insertions(+) create mode 100644 drivers/crypto/ccp/Makefile create mode 100644 drivers/crypto/ccp/rte_ccp_pmd.c create mode 100644 drivers/crypto/ccp/rte_pmd_ccp_version.map diff --git a/MAINTAINERS b/MAINTAINERS index a646ca3..8481731 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -640,6 +640,12 @@ M: Pablo de Lara T: git://dpdk.org/next/dpdk-next-crypto F: doc/guides/cryptodevs/features/default.ini +AMD CCP Crypto PMD +M: Ravi Kumar +F: drivers/crypto/ccp/ +F: doc/guides/cryptodevs/ccp.rst +F: doc/guides/cryptodevs/features/ccp.ini + ARMv8 Crypto M: Jerin Jacob F: drivers/crypto/armv8/ diff --git a/config/common_base b/config/common_base index ad03cf4..28237f0 100644 --- a/config/common_base +++ b/config/common_base @@ -529,6 +529,11 @@ CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER_DEBUG=n CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO=y # +# Compile PMD for AMD CCP crypto device +# +CONFIG_RTE_LIBRTE_PMD_CCP=n + +# # Compile PMD for Marvell Crypto device # CONFIG_RTE_LIBRTE_PMD_MRVL_CRYPTO=n diff --git a/doc/guides/rel_notes/release_18_05.rst b/doc/guides/rel_notes/release_18_05.rst index 3923dc2..c5b2854 100644 --- a/doc/guides/rel_notes/release_18_05.rst +++ b/doc/guides/rel_notes/release_18_05.rst @@ -41,6 +41,11 @@ New Features Also, make sure to start the actual text at the margin. ========================================================= +* **Added a new crypto poll mode driver for AMD CCP devices.** + + Added the new ``ccp`` crypto driver for AMD CCP devices. See the + :doc:`../cryptodevs/ccp` crypto driver guide for more details on + this new driver. API Changes ----------- diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index 628bd14..fe41edd 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -16,5 +16,6 @@ DIRS-$(CONFIG_RTE_LIBRTE_PMD_MRVL_CRYPTO) += mrvl DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO) += null DIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += dpaa2_sec DIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA_SEC) += dpaa_sec +DIRS-$(CONFIG_RTE_LIBRTE_PMD_CCP) += ccp include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/crypto/ccp/Makefile b/drivers/crypto/ccp/Makefile new file mode 100644 index 0000000..51c5e5b --- /dev/null +++ b/drivers/crypto/ccp/Makefile @@ -0,0 +1,55 @@ +# +# Copyright(c) 2018 Advanced Micro Devices, Inc. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of the copyright holder nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include $(RTE_SDK)/mk/rte.vars.mk + +# library name +LIB = librte_pmd_ccp.a + +# build flags +CFLAGS += -O3 +CFLAGS += -I$(SRCDIR) +CFLAGS += $(WERROR_FLAGS) + +# library version +LIBABIVER := 1 + +# external library include paths +LDLIBS += -lcrypto +LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring +LDLIBS += -lrte_cryptodev +LDLIBS += -lrte_pci -lrte_bus_pci + +# versioning export map +EXPORT_MAP := rte_pmd_ccp_version.map + +# library source files +SRCS-$(CONFIG_RTE_LIBRTE_PMD_CCP) += rte_ccp_pmd.c + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/crypto/ccp/rte_ccp_pmd.c b/drivers/crypto/ccp/rte_ccp_pmd.c new file mode 100644 index 0000000..6fa14bd --- /dev/null +++ b/drivers/crypto/ccp/rte_ccp_pmd.c @@ -0,0 +1,62 @@ +/*- + * Copyright(c) 2018 Advanced Micro Devices, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include + +uint8_t ccp_cryptodev_driver_id; + +/** Remove ccp pmd */ +static int +cryptodev_ccp_remove(struct rte_vdev_device *dev __rte_unused) +{ + return 0; +} + +/** Probe ccp pmd */ +static int +cryptodev_ccp_probe(struct rte_vdev_device *vdev __rte_unused) +{ + return 0; +} + +static struct rte_vdev_driver cryptodev_ccp_pmd_drv = { + .probe = cryptodev_ccp_probe, + .remove = cryptodev_ccp_remove +}; + +static struct cryptodev_driver ccp_crypto_drv; + +RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_CCP_PMD, cryptodev_ccp_pmd_drv); +RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_CCP_PMD, + "max_nb_queue_pairs= max_nb_sessions= socket_id="); +RTE_PMD_REGISTER_CRYPTO_DRIVER(ccp_crypto_drv, cryptodev_ccp_pmd_drv, + ccp_cryptodev_driver_id); diff --git a/drivers/crypto/ccp/rte_pmd_ccp_version.map b/drivers/crypto/ccp/rte_pmd_ccp_version.map new file mode 100644 index 0000000..9b9ab1a --- /dev/null +++ b/drivers/crypto/ccp/rte_pmd_ccp_version.map @@ -0,0 +1,4 @@ +DPDK_18.05 { + + local: *; +}; diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 3eb41d1..95c1221 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -215,6 +215,8 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_DPAA_SEC) += -lrte_bus_dpaa _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_DPAA_SEC) += -lrte_pmd_dpaa_sec endif # CONFIG_RTE_LIBRTE_DPAA_BUS +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_CCP) += -lrte_pmd_ccp -lcrypto + endif # CONFIG_RTE_LIBRTE_CRYPTODEV ifeq ($(CONFIG_RTE_LIBRTE_EVENTDEV),y) -- 2.7.4