Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1800771iof; Tue, 7 Jun 2022 11:33:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5W9WUOl8ql1f7/9TxNELvP3VC2xPSUKJig9+d3eeFnIcoT0YhdB3gfs5Hi7Ff37oNHFWe X-Received: by 2002:a63:2c15:0:b0:3f6:6a5f:8f0a with SMTP id s21-20020a632c15000000b003f66a5f8f0amr26209481pgs.76.1654626806018; Tue, 07 Jun 2022 11:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654626806; cv=none; d=google.com; s=arc-20160816; b=VB2X+jM+lxKZNpeXtfzkuvCpiljGaO3AhiPbOU+kaiEk4mlJ3MTa19nspvGTwQSKoh Mw6Q8nH8rOz6zgmc1i6vQhg2fhMxmU9h6FeZT1Gue8Ex5g7fC2/7fsgnqFg96nPvr3ls NbkbOoCFEi220/6bEUO1gcjIk+OcOHb1jTBQtUHEZ3IDFfUFfnn+0MjvyE8/cVMXXxCp miTU3MauiwtDk7fedkxMtJfdODf1sKXqAqBAEsF/4P4o0RcSN6M2SJco4rVhniOyNmnT X7lNdqAH7gqrkPrnkL10O6Q2tdUOdlQalMnbFJ0CRxe34b/SxiWq3V20fkn8GmpuzlYu Iy4A== 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=6BiHwMyPklHrpm6+gWbQlRManCtWTeeP66jLN+k/j1A=; b=XNcoPW0Rdmo829lB23eMs6rly59hNiTDfOHBICfrT7wTRuEu+Ur9Ez59WDcRTCkDpZ vExziMXvx9fmzMg6vDIlSZshiN8Rtp6AfXQ7ss+nBVtma1y05kVRV93tFW+8IStOrn7a yNIAWZs6MlNZKYK0oWrM2LJBvMJBuwbqbKPynpxygjVrqiL0SufMTU/6uQqI4O3F72iu PzP8HA4mvTt/SjtPp1oYDoZHNSV6ik65N1FLrCJ8YA5SHxoEv3opu0naW3h3DceHg4sb y9X1PDXq2EQrditU4dODG/BU7WEMxrE+Htcu9MxgGItYigYJYHCyVJZn+UyuBr9Ac60J ZDIg== 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 t20-20020aa79474000000b0051b904d9c7csi21239883pfq.251.2022.06.07.11.32.51; Tue, 07 Jun 2022 11:33:26 -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 S1344320AbiFGQ6z (ORCPT + 99 others); Tue, 7 Jun 2022 12:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344095AbiFGQ6z (ORCPT ); Tue, 7 Jun 2022 12:58:55 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E6DA7F1379; Tue, 7 Jun 2022 09:58:53 -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 80A89143D; Tue, 7 Jun 2022 09:58:53 -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 4A9C83F66F; Tue, 7 Jun 2022 09:58:53 -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: Tue, 7 Jun 2022 16:58:38 +0000 Message-Id: <20220607165840.66931-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. 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