Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp357927iog; Mon, 13 Jun 2022 04:22:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4iUqPQHjFxSTu+oMrEgYFs+hFLxAykGpNe7AdwTv6wpveuNVowk8C5ROwMWTPESEaBDu5 X-Received: by 2002:a05:6a00:16d2:b0:522:81c0:a635 with SMTP id l18-20020a056a0016d200b0052281c0a635mr4667058pfc.0.1655119375363; Mon, 13 Jun 2022 04:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655119375; cv=none; d=google.com; s=arc-20160816; b=wjJVZvBkQC63x8VlL7sJWFsPov6uMF4tXtZH6v4YEioTejGOoa5kaD0kXl+ZUpsp/f 7MpCLbY8n/FS/Cc9W7TEjItjgJCTELBZ87x2ez17j7t5b+5q669AiRi80ZvyTYAZYbm5 IEOl2jjfi3J0oJCIVi4FWRBJ8l2LQ/k5VzPBJCdnBpj1xrv/ZuO9jXnl0JurG5iOZVy8 fp1ak3i74S5WYC2RqC3952X466A1gjIltxYSWsmnj2JEn48Mxuu5nXDtmDxMBNrXDOsD ooD0ZO5bQ7NJhMmhm0zUxg4Q7dAE+BaaWMnbc7SD+bUJMYjcJ2DAyqCHlype+XpJRbPF Km8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ciM/cZAeLwWxz/Oga+LiOg3OAGWBtVs7EitAWs7lfdg=; b=yMWJhst27oJ+g35am8zkdSlQsQ+/NgbrOm5SAbcKsOw2Qy/aFJ73SLezYgbZkAiAFg eu4Yi+VC3nMMEMtWQEHY6szd7AA1yjTx1IEBYnJA34nQtEbSY2B74BECPXzFvoFX6eKp YsTTYeRqehThribWiQzC+A4EZvM9rjhb87BPlZoYaUgXekjPds/SWisOxYYghAJVyxoN uWUTuU26u09zUJQlEz9iO32vN7RJ24lK3Et79BQdTy5QRrlcHlshPlB7iyFICKs8SUHd 6NjmZXc3BYugj5Q3hSuA7NKHi8eNxH153f+hQicoww6oBACp6vuMhFAqETJOYY9N7Or5 bfsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n3Dw3Ekj; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a056a00194b00b0051b904d9c7csi9639743pfk.251.2022.06.13.04.22.21; Mon, 13 Jun 2022 04:22:55 -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=@intel.com header.s=Intel header.b=n3Dw3Ekj; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352315AbiFMLVa (ORCPT + 99 others); Mon, 13 Jun 2022 07:21:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353862AbiFMLUB (ORCPT ); Mon, 13 Jun 2022 07:20:01 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88225DEB1; Mon, 13 Jun 2022 03:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655116912; x=1686652912; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7rsKUR+6MiJx8UgfRHWwQNo6ucuWpz2ctrmFovdOBQU=; b=n3Dw3EkjF2DMD4xxdypbleoBI7aKSWmyX+v1Ll3AssSECEK2lZQ1Mh4J ngNHuvr4sKfHx41UU5zItynRrfTdesmDYXECbWB5rEKqTn/xFPoBmAtFk AAjNN1chHw9taQjeROy3NSdfGzmBn78hUwL32vwnQNKOEKQeqd9jJpCKl NfVn0jIuPTWUyyOBmClnCZgoxH/uwc18tDqcglCKncQDr+snlyHqUECND +3+RaJFKCJ3Ep3Z0r53oRgLDZNE5PJ3wBukOsy6SKKfEduEh0vv5OzKDm OuoKzPAPpqDxFHvMMkBXL4SNTcPwfhUF/wzBw4EpEY1ACMPPL92Lm4htI g==; X-IronPort-AV: E=McAfee;i="6400,9594,10376"; a="258074900" X-IronPort-AV: E=Sophos;i="5.91,297,1647327600"; d="scan'208";a="258074900" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:41:43 -0700 X-IronPort-AV: E=Sophos;i="5.91,297,1647327600"; d="scan'208";a="639666709" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314) ([10.237.222.76]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:41:41 -0700 Date: Mon, 13 Jun 2022 11:41:34 +0100 From: Giovanni Cabiddu To: Andre Przywara Cc: Rob Herring , Yoan Picchi , 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: References: <20220607165840.66931-1-yoan.picchi@arm.com> <20220607165840.66931-3-yoan.picchi@arm.com> <20220609213652.GA115440-robh@kernel.org> <20220610114840.10db23ea@donnerap.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220610114840.10db23ea@donnerap.cambridge.arm.com> Organization: Intel Research and Development Ireland Ltd - Co. Reg. #308263 - Collinstown Industrial Park, Leixlip, County Kildare - Ireland X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 Fri, Jun 10, 2022 at 11:48:40AM +0100, Andre Przywara wrote: > 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). Just to add on this, patches to the qat driver should have the following headline: crypto: qat - not crypto: qat: > > > > 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. Just inspecting the code I can see we are not handling BE in the logic that builds FW descriptors. My preference would be to keep !CPU_BIG_ENDIAN until the driver is fixed and tested. > > 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 -- Giovanni