From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 805E5A0542; Sat, 8 Oct 2022 10:38:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26C3340146; Sat, 8 Oct 2022 10:38:48 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id EFEB340042 for ; Sat, 8 Oct 2022 10:38:46 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id d10so6792680pfh.6 for ; Sat, 08 Oct 2022 01:38:46 -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:message-id:reply-to; bh=+/haNPWatod3MjWbSogUWyplF22bQkGBXrJBqQawGtQ=; b=gK+uw+Ba1jVFMXIVEQKnwrM5KULiJxPP9ScN8hPKpGcLjJ3MG1wbocWFu8h/2rY+BH MSvtfSD0X/rw4kUmLZsS2Sie7YP0aYHokmob9BH9AwdUTntsKdsrs56bhxkoC8NSqW/A uuq42NlwocsVe6wD//8c/T8pe8WI+uVqw/AxlZHWkouAjP5OCLZg+gKeu+ZsDPU7ot4V wT5sY6Zj7JH5gIF0NLy3lSyq0xWH9brus07zdhKX1hH6u8nEqgAIOWZTYK5Tr7Nc8M4z Y9a/wiMkSYE57JyyXDgassePYuhC5FHUzRehQ+rvoZ7jpsxsucTOWPVCcIH6hrG/44kv Osuw== 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:message-id :reply-to; bh=+/haNPWatod3MjWbSogUWyplF22bQkGBXrJBqQawGtQ=; b=g2asSBeA1Q82O6iG618/ZLogcxCItThKxKf5uTIrmCGv39hp4J2/gckZx5cG8Xe+F+ MnnKgRBFiN0L0+O8FNZhb7lbE3Opgpl7c6DCf9rNF1eBCQJhEFsYNK6hKvt5Qli4F7Xz hmQMOd/IIqJa6XdiF3gymINnUhPqye2NQNd90qx4hUdohriTb8FGorNN3GarERKeYkkM 1LiNJPdudiORkcdS9xdEM6JqxVVlxmUonQQxXLPv8FTkxBlb5XGoOHYDhAfrSJGLVhis we+P73NiiMweOvALR6q1XZSKZuoeBAQxGezJH6fecGNJA5cTP2JvuHSFrLMBqqSuVGGA UXGw== X-Gm-Message-State: ACrzQf1ti7TuzB6MxNYry5c5exw8Fs7rt12i7q/aTLUmAstQFPcDcXLp 5v5rxe4P1Wn/mXgbapw3ePnOoA== X-Google-Smtp-Source: AMsMyM6cza8Uhe6qi7uGS4o/XGxkujN8eFc8nc6rtlj2yeJQ5Zrjt7wgHqWLFIY4m8QBfrjBF8fsOg== X-Received: by 2002:a63:5762:0:b0:43c:c1b5:3e75 with SMTP id h34-20020a635762000000b0043cc1b53e75mr7874114pgm.380.1665218326066; Sat, 08 Oct 2022 01:38:46 -0700 (PDT) Received: from localhost.localdomain ([194.5.48.65]) by smtp.gmail.com with ESMTPSA id n1-20020a17090a2bc100b0020a0571b354sm2644371pje.57.2022.10.08.01.38.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Oct 2022 01:38:45 -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 resend v3 0/6] crypto/uadk: introduce uadk crypto driver Date: Sat, 8 Oct 2022 16:37:41 +0800 Message-Id: <20221008083747.6559-1-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 resend: Rebase on next/for-main, which just merged series "cryptodev: rework session framework". update in v3: Split patches according to Akhil's suggestions Please split the patches as below. 1. introduce driver - create files with meson.build and with probe/remove and device ops defined but not implemented. You do not need to write empty functions. Add basic documentation also which defines what the driver is. You can explain the build dependency here. 2. define queue structs and setup/remove APIs 3. Add data path 4. implement cipher op. Add capabilities and documentation of what is supported in each of the patch. Add feature flags etc. 5. implement auth, add capabilities and documentation 6. test app changes. Update in v2: Change uadk_supported_platform to uadk_crypto_version, which matches better than platform. enum uadk_crypto_version { UADK_CRYPTO_V2, UADK_CRYPTO_V3, }; Update in v1, compared 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 (6): crypto/uadk: introduce uadk crypto driver crypto/uadk: support basic operations crypto/uadk: support enqueue/dequeue operations crypto/uadk: support cipher algorithms crypto/uadk: support auth algorithms test/crypto: add cryptodev_uadk_autotest MAINTAINERS | 6 + app/test/test_cryptodev.c | 7 + app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/features/uadk.ini | 55 ++ doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/uadk.rst | 74 ++ drivers/crypto/meson.build | 1 + drivers/crypto/uadk/meson.build | 36 + drivers/crypto/uadk/uadk_crypto_pmd.c | 1145 +++++++++++++++++++++++ drivers/crypto/uadk/version.map | 3 + 10 files changed, 1329 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 -- 2.36.1