From patchwork Fri Sep 23 02:40:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 608574 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp37505pvb; Thu, 22 Sep 2022 19:40:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM48MRB7g0ov92ySMfb4JHWfKuw+7waBeC0KcCEsFI27O9loh9ln8JWaBb5TU/XN2WsCxlUd X-Received: by 2002:a05:6000:886:b0:225:24f5:deac with SMTP id ca6-20020a056000088600b0022524f5deacmr3662300wrb.104.1663900839787; Thu, 22 Sep 2022 19:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663900839; cv=none; d=google.com; s=arc-20160816; b=wmtNwqsu3ne13+GfZhi2YI/3FGT97JSClj6VRpsVEek6BpjFyq6xHuP9NP9/db1EwL ak2xjxfxFCoNQXdMVGDHeRnvZwKtFDi9pOQTnwTqzdXFPcgdknfhs17dVfxQhMlMYXdN WPh2mF0rX/n7EH49vBGPgvelMM2orunzBoy5dbOsxsTGN2XiDebzbP1LGaWIAZmT2bby lDWHxa7CwePxkAKYy8Qy8yIjT/5eIJz2Y4nm+zCTmdQ9Mzy64o7o4E/1/32MaC2ASpVb eKPV1htSOO4NyOiN0EVMcOXHwAPjENXR2maOFmBFfmvXEnVr0cUAly1nXS28NNpCGyD7 ZS5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=bYCBO0xUAN5Blpg3j67gmZrMUP+fTMVynkQPFKvgvfE=; b=rtjXvPwJ60waOhj+GVQrecrIpmZ182w3U6L30wnRRoCp0g4UgGP1BRjETaQBDBqUKU 8Quk5dCI8v59RCFKm9AJZLvL66v3h9CGc/FWivFmW3VhttvILoOzlJcTNTwoBVtjapYK xfkgwjzTx+TSUjEfQ7ycvmzEt5cLdf5Yq1IsliBoV04XeYbWNCM58TIJBMmNYUcqxWqA dAIjEzpn8U1Cyjo44wjLZmV9KlGbIbVXp1j33lSO3JvYsXNTCIIhFvbGCh7BtxExIDLs NBgpYdxUIlcAyZdG4acdOEbfZZclsfoSzaXlFTIsY3VbG9uN/Ixh84yw6CpxPTa4RJ+v HaxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TVDW1Bxf; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id u13-20020adff88d000000b0022a28469b24si4155033wrp.61.2022.09.22.19.40.39; Thu, 22 Sep 2022 19:40:39 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TVDW1Bxf; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3ABD0400D7; Fri, 23 Sep 2022 04:40:39 +0200 (CEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id B3C0F4003C for ; Fri, 23 Sep 2022 04:40:37 +0200 (CEST) Received: by mail-pl1-f174.google.com with SMTP id t3so10553908ply.2 for ; Thu, 22 Sep 2022 19:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=bYCBO0xUAN5Blpg3j67gmZrMUP+fTMVynkQPFKvgvfE=; b=TVDW1BxfCe5cPhJWlu7P+grigh6mp9MTHYU4Pz4Xcy/S3geK8l0XjukXtgO7XHGNGR SiRNuc5vuQaUDASOPt7il4QUPrfVE8wNIhdT8xVEAmF6MHQ/zz3WS0cSmfpw0cc5jfA9 UlQ62a52ll4f1cLfLD8qJHpSorF5P1Vf5J67cjxB5rsEkbcY3PJqkJqL9yIzc9jbpo3C 4Ew0pmidTRrwmY9LgITfywYMyHBzmTobEWRLtk081G+TlSJ0zTuD7/2OQNwISlOXtuCN pj2R1/1RkXmb+kMXtFFnIb3+2tO5ziZToQG7klR00Sp0VhkPib/6cCa0W2rSps9/HYO7 SDEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=bYCBO0xUAN5Blpg3j67gmZrMUP+fTMVynkQPFKvgvfE=; b=tpsVbN9j5B/VXjH+m3tiZmha5oHm0/yUe/pfy5TtipXGQG9iRAVqlJJcyogjB48Qef yXd1C1ByNDb2Zdhc+XPfgR9806yhFGGF5kgRN61HZTdVBGANLgQsbkXjgYQfKzTjCD8m OP9d/N5L9VJByBulo+poL/ookad4Q0mLcq7zG6ziyAkEnYrB8/gRYK2Rt+4Q3z3mxO1S 1tpHHOVWShoPiT0QF1zmCv96mxSrwd9rIIp9M19YBfpCkdRAfWCx6SzyFAZrfjuVlLmV CyMvlNZ3DA3svDv27v4G+8KsdpWmI9jagyZsk3lB0gQHpJGuBpBo6et5LufkoGgJgiey AdnQ== X-Gm-Message-State: ACrzQf1Klk1S9lFG00LGLbyOxgDjFZTfm0gW2GiVfHsq8lgGqOckhhHh 7RaZS7B25vm4E1xBEgmjZZKgsg== X-Received: by 2002:a17:902:eb90:b0:178:bb0b:574f with SMTP id q16-20020a170902eb9000b00178bb0b574fmr6417212plg.91.1663900836832; Thu, 22 Sep 2022 19:40:36 -0700 (PDT) Received: from localhost.localdomain ([199.101.192.56]) by smtp.gmail.com with ESMTPSA id t5-20020a625f05000000b0053e8940c4absm5075011pfb.209.2022.09.22.19.40.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2022 19:40:36 -0700 (PDT) From: Zhangfei Gao To: Akhil Goyal , Declan Doherty , Fan Zhang , Ashish Gupta , Ray Kinsella Cc: dev@dpdk.org, acc@openeuler.org, Zhangfei Gao Subject: [PATCH v2 0/5] crypto/uadk: introduce uadk crypto driver Date: Fri, 23 Sep 2022 10:40:18 +0800 Message-Id: <20220923024023.15849-1-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.36.1 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 Introduce a new crypto PMD for hardware accelerators based on UADK [1]. UADK is a framework for user applications to access hardware accelerators. UADK relies on IOMMU SVA (Shared Virtual Address) feature, which share the same page table between IOMMU and MMU. Thereby user application can directly use virtual address for device dma, which enhances the performance as well as easy usability. [1] https://github.com/Linaro/uadk Test: sudo dpdk-test --vdev=crypto_uadk (--log-level=6) RTE>>cryptodev_uadk_autotest RTE>>quit Update with v1: Change uadk_supported_platform to uadk_crypto_version, which matches better than platform. enum uadk_crypto_version { UADK_CRYPTO_V2, UADK_CRYPTO_V3, }; Update with rfc Suggested from Akhil Goyal Only consider crypto PMD first Split patch into small (individually compiled) patches. Update MAINTAINERS and doc/guides/cryptodevs/features/uadk.ini Zhangfei Gao (5): test/crypto: add cryptodev_uadk_autotest crypto/uadk: introduce uadk crypto driver crypto/uadk: support cipher algorithms crypto/uadk: support auth algorithms doc: Update doc for UADK crypto PMD MAINTAINERS | 6 + app/test/test_cryptodev.c | 7 + app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/features/uadk.ini | 54 ++ doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/uadk.rst | 77 ++ drivers/crypto/meson.build | 1 + drivers/crypto/uadk/meson.build | 36 + drivers/crypto/uadk/uadk_crypto_pmd.c | 1161 +++++++++++++++++++++++ drivers/crypto/uadk/version.map | 3 + 10 files changed, 1347 insertions(+) create mode 100644 doc/guides/cryptodevs/features/uadk.ini create mode 100644 doc/guides/cryptodevs/uadk.rst create mode 100644 drivers/crypto/uadk/meson.build create mode 100644 drivers/crypto/uadk/uadk_crypto_pmd.c create mode 100644 drivers/crypto/uadk/version.map