Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3535971iob; Tue, 17 May 2022 02:06:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEkkxlbLDk/XutYDXSY2DZS9B0/LhLhNhG55LSoBrfEKEKRBSSzdi9SoaH0/K57Z986tOm X-Received: by 2002:a17:90b:4ccb:b0:1df:8238:3f82 with SMTP id nd11-20020a17090b4ccb00b001df82383f82mr3031334pjb.164.1652778363382; Tue, 17 May 2022 02:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652778363; cv=none; d=google.com; s=arc-20160816; b=Cxo6tawF2s1T10409bSr0AWj++i7FI3Sm0g/aWqe7cumMEJjwVlCNIMDxqK6iY7PKP FvLcukBQlzgG8buTsskKPr54iK3mRRtNd6SvOhb8azYrKOOWGMWcDVnXL2iSqHALXTAg kongIQnOk256MQx68k2L0ppRnf9Y7s1bqnDdlt660i/fQkJ51DbxRmLEh50ZC+O4lRcJ YedhWDeTGJ93hBDXrrOKPuSnFi73dQ9FhU5OG/b5+CpZaDOixvrgRuzWaa8aoSPIivpC 19aMraBjeIf4rZSEz59q8TjaDimTKGEyzK7XaODp2lOQKYkMTmQJXFvCAE5tbW1qDzvo wCZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3tqpD7cR8CW84CYy7+IONJJG8xGzqaufCwdiwH7tBSQ=; b=dngOvT6pf0a6cn0nLmWZYOLFgo68skZ/LhZJnalWPVccPSKV/Js7zTr3EeK8rdAaJj /2FanzoeICQiYay1K7CQCsnUKmxDiQT+8O0XKycBODkHcX+1kAjeYTOS3FgEZct6QeB2 /1B3MXgtHU1898xM4ctBk8EgtJwYzd2MSKlUJuZhiyzFi8aiX2yy9jMDTlonsmHlLw2J m0RHxvRcMxPWIGaDdA2UTWMf1CxKBf+4/zbBJHhSh7pfVHmBIg5V47Qiad5iNX4F/Xz+ prNhklyoFSDmu8nmJW5RqSa+DuE2URV+JwQpOnk2EUSCLN1dEgCz2mg3Jb5IuUopJ51r AZ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p6T8WwRR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb8-20020a17090ae7c800b001dc263ce975si2881132pjb.97.2022.05.17.02.05.36; Tue, 17 May 2022 02:06:03 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p6T8WwRR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242536AbiEQIL7 (ORCPT + 99 others); Tue, 17 May 2022 04:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242751AbiEQILX (ORCPT ); Tue, 17 May 2022 04:11:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8549A3CA5B; Tue, 17 May 2022 01:11:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 068D0611E2; Tue, 17 May 2022 08:11:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AEDEC34100; Tue, 17 May 2022 08:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652775081; bh=G13kXIW4s6Pcy4BSlXyMefkAe8ns85SmAcmOmBOdOws=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=p6T8WwRRYkq2Yr0T/ugAAQuYioRnEv9Co8Aatc3ztL3Sf3qbQEVqRmJCyQLC/13sF r58+AhSwc7onQTwwl7a6AXjvMYaAVXkFNlfxGpV3rAjCeQ09b+4JkxxilV/u1Hwvao tydOTumob09OYzt2yEM5VPCT9Dh1pLqyR8qKZzSCS9PMraIE7Zv9RQ9qqsjkRwfYTm kkMQL36jqxoVJAj7ZMGMrijXHfH1bgROd7xoxzJzuCHAS+2GtDSdNgCJiZCtsJ6ASM 0oy7RONFwjQC+DS25khs0akCVDftbxlIwPaZz0UaS14K8ewH4IEfMuQtTQxR3MbQSO 5/GERxxc/muMg== Received: by mail-oi1-f177.google.com with SMTP id v66so21451132oib.3; Tue, 17 May 2022 01:11:21 -0700 (PDT) X-Gm-Message-State: AOAM531Bsclh2cAi8FQXDsawrejLDRziW/tF59TjGYVFUh27piSJ28gz EVJZg2MjDfYDHDiL7T4DuGZt1GdIluq3JUOH4MQ= X-Received: by 2002:a05:6808:1314:b0:326:e438:d8cd with SMTP id y20-20020a056808131400b00326e438d8cdmr15625016oiv.228.1652775080613; Tue, 17 May 2022 01:11:20 -0700 (PDT) MIME-Version: 1.0 References: <20220516101635.1082132-1-yoan.picchi@arm.com> <20220516101635.1082132-3-yoan.picchi@arm.com> In-Reply-To: <20220516101635.1082132-3-yoan.picchi@arm.com> From: Ard Biesheuvel Date: Tue, 17 May 2022 10:11:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 2/2] Removes the x86 dependency on the QAT drivers To: yoan.picchi@arm.com Cc: Giovanni Cabiddu , Herbert Xu , "David S . Miller" , qat-linux , Linux Crypto Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-crypto@vger.kernel.org On Mon, 16 May 2022 at 12:16, wrote: > > From: Yoan Picchi > > This dependency looks outdated. After the previous patch, we have been able > to use this driver to encrypt some data and to create working VF on arm64. > > Signed-off-by: Yoan Picchi Are you sure the driver is safe for non-coherent DMA as well? > --- > drivers/crypto/qat/Kconfig | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/crypto/qat/Kconfig b/drivers/crypto/qat/Kconfig > index 4b90c0f22b03..88df2cf4cac9 100644 > --- a/drivers/crypto/qat/Kconfig > +++ b/drivers/crypto/qat/Kconfig > @@ -17,7 +17,7 @@ config CRYPTO_DEV_QAT > > config CRYPTO_DEV_QAT_DH895xCC > tristate "Support for Intel(R) DH895xCC" > - depends on X86 && PCI > + depends on PCI > select CRYPTO_DEV_QAT > help > Support for Intel(R) DH895xcc with Intel(R) QuickAssist Technology > @@ -28,7 +28,7 @@ config CRYPTO_DEV_QAT_DH895xCC > > config CRYPTO_DEV_QAT_C3XXX > tristate "Support for Intel(R) C3XXX" > - depends on X86 && PCI > + depends on PCI > select CRYPTO_DEV_QAT > help > Support for Intel(R) C3xxx with Intel(R) QuickAssist Technology > @@ -39,7 +39,7 @@ config CRYPTO_DEV_QAT_C3XXX > > config CRYPTO_DEV_QAT_C62X > tristate "Support for Intel(R) C62X" > - depends on X86 && PCI > + depends on PCI > select CRYPTO_DEV_QAT > help > Support for Intel(R) C62x with Intel(R) QuickAssist Technology > @@ -50,7 +50,7 @@ config CRYPTO_DEV_QAT_C62X > > config CRYPTO_DEV_QAT_4XXX > tristate "Support for Intel(R) QAT_4XXX" > - depends on X86 && PCI > + depends on PCI > select CRYPTO_DEV_QAT > help > Support for Intel(R) QuickAssist Technology QAT_4xxx > @@ -61,7 +61,7 @@ config CRYPTO_DEV_QAT_4XXX > > config CRYPTO_DEV_QAT_DH895xCCVF > tristate "Support for Intel(R) DH895xCC Virtual Function" > - depends on X86 && PCI > + depends on PCI > select PCI_IOV > select CRYPTO_DEV_QAT > > @@ -74,7 +74,7 @@ config CRYPTO_DEV_QAT_DH895xCCVF > > config CRYPTO_DEV_QAT_C3XXXVF > tristate "Support for Intel(R) C3XXX Virtual Function" > - depends on X86 && PCI > + depends on PCI > select PCI_IOV > select CRYPTO_DEV_QAT > help > @@ -86,7 +86,7 @@ config CRYPTO_DEV_QAT_C3XXXVF > > config CRYPTO_DEV_QAT_C62XVF > tristate "Support for Intel(R) C62X Virtual Function" > - depends on X86 && PCI > + depends on PCI > select PCI_IOV > select CRYPTO_DEV_QAT > help > -- > 2.25.1 >