From patchwork Sun Sep 11 05:23:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 604776 Delivered-To: patch@linaro.org Received: by 2002:a05:6504:2213:b0:1da:4c02:b5e7 with SMTP id z19csp1853447ltw; Sat, 10 Sep 2022 22:24:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6iOrRhM8K3rNrD7wJZXWGht4dbxNhwoBflxTjx9w65GZ96Bv50VOrVWkHh4iXC7/rv+AY2 X-Received: by 2002:adf:ea89:0:b0:22a:27e1:a90c with SMTP id s9-20020adfea89000000b0022a27e1a90cmr10700027wrm.397.1662873848620; Sat, 10 Sep 2022 22:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662873848; cv=none; d=google.com; s=arc-20160816; b=Tf887GJeSGbDimcbpJASiY23SnPz1sM7vHxwJXYHp1MJSYf90XU/PwUIXhDyWuHvxx WxkvVMsVRxptkwDg53Dp8o/vFLKsdeCsaFaC/R58nNOtt0N0Qg/tYORBqkUuk3Nxixr4 EHkhqc8L0/xFahLLxAm3x7JnmSyFNMa6PlTix/zC9Ei7fWUlNYNu/K4++GmnoR80tuJ8 Q9fRV2sOhb1ylLkzBuJfSin5/Oq6J3ZmZ1+ZiTXWMrSvQb87RBJg6azLE5GM1WR1Lq0/ WG00BPi1Iz+G5AXlmL/Ft8EELMP/tFbZQEf8H2nuZhPTzjuBHbVaYK7Vu8ZEsdhjhZFj CGfg== 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=fATw1E0jJaN5tV7Azpizc9zqzua8k/Hcgr2lkF64OEQ=; b=iOuvjmPMr0Hi5gEGcdkCwVlfsHE4QGRzeei2lk51jou06WRgHhszXW2E6dnTYcYzZ5 yMYvrMFtb87z5Axe5Q4974jHCWSJfUBOX5dCxdXCDIcz+VGnXkaFgTEmV/3gfm+qnspb bmGXeOpeTsB97X8QDlCa+fA8ombjYb6LLsurautUr0XcsBOgvLgJVcaeTJIQf2FhDSjD Nt/swsumu/o784t2IHecEAkZ+LyBEsLuW4yr1mxDUQBVfubnSd3TRaoQMAm5tOyQw3sC qE2TaOFIQ4PUHoD8FYlN9yjE41XbxeaqyzP1ix7Mok5fQ4H8FhAe9dA0OEkMryC3jWR5 hQpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MrhVkbwT; 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 bp26-20020a5d5a9a000000b0022a6ec5a112si651268wrb.345.2022.09.10.22.24.08; Sat, 10 Sep 2022 22:24:08 -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=MrhVkbwT; 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 057DC4003F; Sun, 11 Sep 2022 07:24:08 +0200 (CEST) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id 6D05A4003C for ; Sun, 11 Sep 2022 07:24:07 +0200 (CEST) Received: by mail-pg1-f174.google.com with SMTP id q63so5312288pga.9 for ; Sat, 10 Sep 2022 22:24:07 -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=fATw1E0jJaN5tV7Azpizc9zqzua8k/Hcgr2lkF64OEQ=; b=MrhVkbwT0PvxhNCFtDLyoXv7tcgUwDnp1z+A97cFvfyIt353ydLig0dont5uVGa3gB sYcPvihnw2lrL+Itqv6qOnd7pP/GD6nJ2ZNmdrnXFI2E6fF9zMKwR8oeswWNI7du4el6 jRAAbfSvwBTZ6ZqQgERHBzOOs1IOxhukuAKRHb+9R8XXOyOd5HY7VM2MXZZ/kIzFGu0r MAXUKUb2ucwhRwWe+cJuRbgHFgxMxRcbNepR4DWwAaL4x33GPNQfM84pDpr3xmad8s6g Vl4u/VeeXczM6rxHmKrzw+cRZ2Nndv93brUQzvZfcv4jKdfMkvJnlbiY+Va721MkAgCv 02cQ== 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=fATw1E0jJaN5tV7Azpizc9zqzua8k/Hcgr2lkF64OEQ=; b=pQcW26sNe0WaFl9wdGBvBlVHo00dQt/uJaEENrFVcJbcbhEi5gywl1krxfGexo1zdc C1kpvTlg0Ie89WoCRWDEEhV/4pt0F6zFBXeN/caIN3vaNVZQpzXphQ5sjf+EWATu9R0s SMVoy69dl8X0NoSiKZejafiSgQcv6Df4wKqYXFHmFNQucLbEIi8ou3l637MXnYuHRij+ TnmA96VPIknCwclciRNBWCXreslHFIcRCrPv9VEbEaK9CDEqAsxwZzxbHfFYT4VfXr+R WdxEmDReYYjGScjNuWnvYwFEjJumhJaXKLegJucci4qEiO74H82oZu6j2tfvJPuXczBl t/Iw== X-Gm-Message-State: ACgBeo2tmla+n1KecPwtZcq782m2gL+nQZTHryoCKztwnWhQ44G9eSYA aJuVengurwUDsNWEvDzIYrUGpQ== X-Received: by 2002:a63:cd43:0:b0:434:b73a:24c8 with SMTP id a3-20020a63cd43000000b00434b73a24c8mr5216530pgj.248.1662873846558; Sat, 10 Sep 2022 22:24:06 -0700 (PDT) Received: from localhost.localdomain ([199.101.192.45]) by smtp.gmail.com with ESMTPSA id z11-20020a170902cccb00b00173cfaed233sm3215860ple.62.2022.09.10.22.23.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Sep 2022 22:24:06 -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 0/5] crypto/uadk: introduce uadk crypto driver Date: Sun, 11 Sep 2022 13:23:39 +0800 Message-Id: <20220911052344.31239-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 UADK, which relies on UADK library [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. Currently supported platforms: HiSilicon kunpeng920 & kunpeng930. This patch adds a basic framework. [1] https://github.com/Linaro/uadk Test: sudo dpdk-test --vdev=crypto_uadk (--log-level=6) RTE>>cryptodev_uadk_autotest RTE>>quit 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 | 80 ++ 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, 1350 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