Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1258093iol; Fri, 10 Jun 2022 03:53:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQgAaqb4Rzu5DsSXsx7FBYWcEW391YQ7d74CQ6CcDhFiiqI+PgBCgzqVcE6bD677sxf8Rm X-Received: by 2002:a65:6d0d:0:b0:3fb:1477:5191 with SMTP id bf13-20020a656d0d000000b003fb14775191mr39337548pgb.541.1654858400876; Fri, 10 Jun 2022 03:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654858400; cv=none; d=google.com; s=arc-20160816; b=AryEJpZ5LVQOkwKBSTPU6+PksFUPwub0CJvyMA88uDkUrvvXgQhco7ergmnP2+sKkl vHCEm3KEqRkcgC+OC49ac2L8lK6JQ513+ki1zRjguzQPTtFynrUCeIBGZlMDkCnmfuGx j+4+8bwa/Qj8PQI88LOvckEVNh7iBTV/xC0ATidaa8lE+kxp0+FNHxuGeG3cwzV48V/C D1UZk1iYB7CEdKCjTIMQp046iE53U7xtYIjcuDlhQ4XdIgP4Pa8ECb4uj3vQVg0+tdMO S8MG9M5iMpzoc4khrPh3n+RY9Ip7MQesh2pFEQVmKTXpkwCWX0bBAMte2wGWyICg8hJp ZtSQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=TUsilWfTaDZqGctyNo2YWgsTbVc/efGAOGpeITd0UZg=; b=upwbrRb0cykhrDa3qMLnWZCWAatDjvDQuDLtff8KT871B7t0v45pXK6q7z9TcaY6AQ qQFEOjuNqjOEGnHlFZsC9EMZpwsM6FPz1fNd00hO8J2kw8gJzizk9F6wyK8MFudMYRjs Rry/l8ZJyCEWO0NnQAwdu7IPrg0KCajzp249J0vHlQUbNjlWCzbK1WJejo8BO8iQ1DSg JtzdArnaaD0WV4EaYkAvcRi1NmY30KvXeoGZWpQpfBsX/MFl1oOOt50511yAyW1K6l1r fl3/ZNbrC6M0bEevUQvsBoGlPwXk2j35toI8gA8DXVGV7MejC+xUoA8LJHyKV6jooKSF 6Mvg== 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 b11-20020a65578b000000b003fbe491c418si29557025pgr.220.2022.06.10.03.52.49; Fri, 10 Jun 2022 03:53: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 S1344804AbiFJKw0 (ORCPT + 99 others); Fri, 10 Jun 2022 06:52:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239945AbiFJKwE (ORCPT ); Fri, 10 Jun 2022 06:52:04 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E9A52FEF7D; Fri, 10 Jun 2022 03:48:46 -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 724FA12FC; Fri, 10 Jun 2022 03:48:46 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7C9613F766; Fri, 10 Jun 2022 03:48:44 -0700 (PDT) Date: Fri, 10 Jun 2022 11:48:40 +0100 From: Andre Przywara To: Rob Herring Cc: Yoan Picchi , Giovanni Cabiddu , Herbert Xu , "David S . Miller" , qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Ard Biesheuvel Subject: Re: [PATCH 2/2] Removes the x86 dependency on the QAT drivers Message-ID: <20220610114840.10db23ea@donnerap.cambridge.arm.com> In-Reply-To: <20220609213652.GA115440-robh@kernel.org> References: <20220607165840.66931-1-yoan.picchi@arm.com> <20220607165840.66931-3-yoan.picchi@arm.com> <20220609213652.GA115440-robh@kernel.org> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Thu, 9 Jun 2022 15:36:52 -0600 Rob Herring wrote: Hi, > On Tue, Jun 07, 2022 at 04:58:40PM +0000, Yoan Picchi wrote: > > 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. > > We have not tested it yet on any big endian machine, hence the new dependency > > For the subject, use prefixes matching the subsystem (like you did on > patch 1). > > The only testing obligation you have is compiling for BE. So I just compiled for arm64 BE, powerpc BE & LE, and riscv again: $ file qat_c62xvf.ko qat_c62xvf.ko: ELF 64-bit MSB relocatable, ARM aarch64, version 1 (SYSV), BuildID[sha1]=630cc0ee5586c7aeb6e0ab5567ce2f2f7cc46adf, with debug_info, not stripped qat_c62xvf.ko: ELF 64-bit MSB relocatable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), BuildID[sha1]=4090ba181cf95f27108bf3ecde0776f12ef2b636, not stripped qat_c62xvf.ko: ELF 64-bit LSB relocatable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), BuildID[sha1]=2cb0fd09d5bc36c8918fcd061c9f3dac1546cf0d, not stripped qat_c62xvf.ko: ELF 64-bit LSB relocatable, UCB RISC-V, version 1 (SYSV), BuildID[sha1]=bfaa53df7e9aad79d3ab4c05e75ca9169227f6b8, not stripped All built without errors or warnings, for every of the enabled drivers. > If kconfig was > supposed to capture what endianness drivers have been tested or not > tested with, then lots of drivers are missing the dependency. Kconfig > depends/select entries should generally be either to prevent compile > failures (you checked PPC, RiscV, etc.?) or to hide drivers *really* > specific to a platform. IMO, we should only have !CPU_BIG_ENDIAN if it > is known not to work and not easily fixed. Fair enough, I leave that decision to Giovanni. I have plans to test this with BE, but getting a BE setup on a server is not trivial, both for userland and actual booting, so this will take some time. We just didn't want to block this on some BE concerns. > Also, with the dependency, no one can test the driver without modifying > the kernel and if it does work as-is, then one has to upstream a change > and then wait for it to show up in distro kernels. You could mitigate > the first part with COMPILE_TEST. Yeah, that's a good point, we were already bitten by this, the initial testing was done on a stable distro kernel (v5.4), and it worked fine already there. Cheers, Andre