Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp726351iog; Mon, 13 Jun 2022 11:32:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sCKnr1TFRcLedi0xPh0PgWX6+GoKfKe65MiH1YqZzcpN4uHJMTR9dZeDh8IqfU5wA1llKN X-Received: by 2002:a17:902:b597:b0:168:d8ce:4a63 with SMTP id a23-20020a170902b59700b00168d8ce4a63mr344340pls.57.1655145140114; Mon, 13 Jun 2022 11:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655145140; cv=none; d=google.com; s=arc-20160816; b=cezeMsOKGiR3iT6I7YrBKkIysV262pvYDWZT6lHrm4ay1qp8xwMBUM1I2kHhZWUdXP MitLnh3S/K6M8HWZRLKE6yfpkeo5xWVtUhVjai04Lz42ZNwpvBWSZo5lq+h016qsfVNW OXgF/YcAacfCiZl1UOViL3nPen4JB5qNsPSBRlXJdm72krguXVV1NK1SNnMQvNL54f+j Q1TZ+WwiPvvROYxWzsDvvVxY+ZgX+Iwk/pzdC+Dblr4SMzh8KM1VEfGHiR3P9Ck6uZdC wnLXsQkydnWjikoYDtxx4o0VqpJ7Ba/LbZweBmPXRVAULt4ZuAtOMSaUTehah/zebzwm Fbxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=aTduano7L8YcKuXBKqwnoChTGqH4+4t0rwsnA55037o=; b=ntPKVqrATiz2gg54h9eS898ACyAJ9UvJ39shLJRYxJJBAn934ajkTBUvhEIhtkw5t/ yyHedor3ki5oqy60oXtYPaufpScn7NS82d3RzfT6L3EpYaJGlr0z7Jh/CZhiOmS9731U bW9vIXHsEAJDPRlbH3NGcT4CgvoNi9ybnSgBFJRpGgo1MNANcktPb/qm7zUdiSDbC6av FPWkCW57xBHeojYL+7Dd01Klf8ZKOq+Gj0nbpE8HYyP9dnNJWi+Wk2lrDhzOd9BRwwnU PnNcQUsajcWaIxYLFBq/3YHEhA173RqJFVgJWIo4qavUmG2CoHdUQxaTsmk9E3DtXCrT zFRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a170903018500b001614cd9cc52si11930691plg.197.2022.06.13.11.32.01; Mon, 13 Jun 2022 11:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244806AbiFMSV2 (ORCPT + 99 others); Mon, 13 Jun 2022 14:21:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244821AbiFMSVL (ORCPT ); Mon, 13 Jun 2022 14:21:11 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17E9F46C9A; Mon, 13 Jun 2022 07:25:41 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EB27C23A; Mon, 13 Jun 2022 07:25:40 -0700 (PDT) Received: from ampere-altra-2-1.usa.Arm.com (ampere-altra-2-1.usa.arm.com [10.118.91.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A4CFC3F792; Mon, 13 Jun 2022 07:25:40 -0700 (PDT) From: Yoan Picchi To: Giovanni Cabiddu , Herbert Xu , "David S . Miller" , qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andre Przywara , Ard Biesheuvel Subject: [PATCH 0/2] Crypto: Remove x86 dependency on QAT drivers Date: Mon, 13 Jun 2022 14:25:33 +0000 Message-Id: <20220613142535.222041-1-yoan.picchi@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The QAT acceleration card can be very helpfull for some tasks like dealing with IPSEC but it is currently restricted to be used only on x86 machine. Looking at the code we didn't see any reasons why those drivers might not work on other architectures. We've successfully built all of them on x86, arm64, arm32, mips64, powerpc64, riscv64 and sparc64. We also have tested the driver with an Intel Corporation C62x Chipset QuickAssist Technology (rev 04) PCIe card on an arm64 server. After the numa patch, it works with the AF_ALG crypto userland interface, allowing us to encrypt some data with cbc for instance. We've also successfully created some VF, bound them to DPDK, and used the card this way, thus showing some real life usecases of x86 do work on arm64 too. Changelog v1 ... v2: - add COMPILE_TEST to Kconfig Andre Przywara (1): crypto: qat: replace get_current_node() with numa_node_id() Yoan Picchi (1): Removes the x86 dependency on the QAT drivers drivers/crypto/qat/Kconfig | 14 +++++++------- drivers/crypto/qat/qat_common/adf_common_drv.h | 5 ----- drivers/crypto/qat/qat_common/qat_algs.c | 4 ++-- drivers/crypto/qat/qat_common/qat_asym_algs.c | 4 ++-- 4 files changed, 11 insertions(+), 16 deletions(-) -- 2.25.1