Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2821497iob; Mon, 16 May 2022 07:01:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/gwr2/rTc6InM1V7Wn2C/HkZI3rtfsAsyUC5uEMr+/f9OMYHRGXaY1pMDMsuGKD9pjqgG X-Received: by 2002:a17:90a:688a:b0:1df:6940:e83e with SMTP id a10-20020a17090a688a00b001df6940e83emr3164476pjd.120.1652709709587; Mon, 16 May 2022 07:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652709709; cv=none; d=google.com; s=arc-20160816; b=qNxAXhYYAOI3VmTjMGFMG6vJ0zfLC/F9/FBvvdJnrFgpag29Iqt1qTzBcla8xJP2ph KowTq96QxVdzYv+vUpGXhvaGKFy9xcyF35WrF1AdopS7pkwe+58jIlA946yL5Oi3akHM SIFkibntGOqxHIPG0Paj+fr+mCUDdNz0Qy4AVAchbE5VVlidIDxinLuFhVHP5R3gJ+X5 fTDLmKKCewZ8Eui42VIZbAZ6rXG1VyA4jC55wBaIi/Bk2aZ93ZByYyPOcNkTPHGMUmbq pZ2CesYJ1pBcMLr7Xs4g7E+ccIQ+5/+U+/YhaKSgzfvgWRaBo25kwcdrIi3UlEHOC2Kr r3og== 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:to:from; bh=5DIMJPidmshhS3lxlir7MUc+JKsQtFls7MjBZRYkJbU=; b=V3zX1osix/wh3v0ojyS0s0URc1BA9KMMBjvR22lIDHqJWCIRh/xLg18/yL4tMvBwK2 iHUvMBIoEW2Zi6k7OXVezIMPMqafOEmiS/y5hnhByno5AZrOWJ8/6qNNAgfVe1E5kytU A+ZULJxpOLW0pCuBhQzRNkuVX7ZlV1RjK7u6cQjDq0FIMpXzO4ibXnqbRQuM0P0GSLYi cCSpljA1kRlHc+t3pNk4nde2SiYZ0CGOA0iDpgyMD514axE1GTEOYuBlRrAwqY9l6+uy vOUQexzoJsNnOe/qYvd5GlvSUNTY5BHMFX4TNizpBljixMb155JWdUxFCK0pQYiIDrjx p4LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 x207-20020a6331d8000000b003816043efd9si13934284pgx.462.2022.05.16.07.01.37; Mon, 16 May 2022 07:01:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S242226AbiEPKQp (ORCPT + 99 others); Mon, 16 May 2022 06:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233684AbiEPKQn (ORCPT ); Mon, 16 May 2022 06:16:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BBA49DE97; Mon, 16 May 2022 03:16:42 -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 36B791063; Mon, 16 May 2022 03:16:42 -0700 (PDT) Received: from ampere-altra-2-1.usa.Arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 12C023F66F; Mon, 16 May 2022 03:16:42 -0700 (PDT) From: yoan.picchi@arm.com To: Giovanni Cabiddu , Herbert Xu , "David S . Miller" , qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/2] Crypto: Remove x86 dependency on QAT drivers Date: Mon, 16 May 2022 10:16:33 +0000 Message-Id: <20220516101635.1082132-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_PASS,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-kernel@vger.kernel.org From: Yoan Picchi 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. Please let us know if we missed something that would warrants some further testing. 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