Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6972104ybx; Mon, 11 Nov 2019 18:33:54 -0800 (PST) X-Google-Smtp-Source: APXvYqynq+phORS+xYb9QDw5gQ+cX8L//iVdxKL0uKfdWxaqwKpBwIW0opgkavuiohE7JDaj3697 X-Received: by 2002:a17:906:4e53:: with SMTP id g19mr26148698ejw.286.1573526034356; Mon, 11 Nov 2019 18:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573526034; cv=none; d=google.com; s=arc-20160816; b=JX1tvQ/G0J3n6gQ+AYhtX0lEi8CujVZMkZNmsbBg6UzoihuaXiNMUpXh2FmG4JLlW2 Y21Jc53CFiGiRn2VEWsFh3wUOhf3KlnKEWsSH8uNUzXYjZzlGIqLQB9Jo6bm17dSYZ7M 84UzlYW+8HbgcbPeK1a3ANi/7HUye3AAGYNbvuTsK/zOyB5YP7V6QXQ9omGfxZ3kAdVp YBO/1ViXioRhOhu/7GNTxb/ghVv/x9ZZHACe6ldpiIrAcmBryNkbK+OSnAXiD/h/gtg4 5kD2qSTwE/BvdWmN/GJSSfU0J6SOs9rSgXWceIUud4Bn7OK2c6XJReiBBe1Kas8/a/TL ES5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=7EaXux2AoVlLEE5Bx/0/Rjvpe4zlVD9tIzl4OSrmhgY=; b=FTiqA/QrIcL3hQ5cRkrKeUbksSLspy4ytEG2Cgn0vZNBpaus4jVRbRvWhmLwoPs0ym P4E+GjKFzlSdMhlxfq6FgK7iAKvdkA8KuVTv2RO7lIoXe6LF5cY7O1RGsDA2ZRwpSQ9n 9dAFTxP4OjOAGQgwQBZeeln2uTNwoHIegBI8p5p9gi8XyueCa5eOXYHW9lBvRWrwtCbT ftSPh+0QIukwQnE6JArASoOQZZyYmm3+iAB8pK3LzkxcNu/BmA+PRA+1FBRMDk/iIqP1 oygltwChEmmR+Ef0xcBnGJey4PfHLy3XX0ADv0ypIjLCzbiXlLoMT6PN2bapKVMhJO9m 2Vdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NdgN2kD6; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23si5408360ede.355.2019.11.11.18.33.27; Mon, 11 Nov 2019 18:33:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NdgN2kD6; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 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 S1726924AbfKLCdW (ORCPT + 99 others); Mon, 11 Nov 2019 21:33:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:55550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbfKLCdW (ORCPT ); Mon, 11 Nov 2019 21:33:22 -0500 Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B77CF20818; Tue, 12 Nov 2019 02:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573526001; bh=sQB1Zw1+UsJr50bYO73MkSn7QaVUsNpdXkdIbbDdk6w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NdgN2kD6Q6nAxqjbY0UWm25jjTWQ2vi3/07dj2fyJRRPgPcGfeClixiZVa87Rf/NF YC+rTYLvtMyBNoVrCC1nYS35GqcK4MVgSj89HsTBUCNcF79TNgaAT3BydBBq/rJwtx RDrYby8jUq/AtoZaC7CrlATC7WglhpuwNv0a9EFE= Date: Mon, 11 Nov 2019 18:33:19 -0800 From: Eric Biggers To: Xu Zaibo Cc: herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, jonathan.cameron@huawei.com, wangzhou1@hisilicon.com, linuxarm@huawei.com, fanghao11@huawei.com, yekai13@huawei.com, zhangwei375@huawei.com, forest.zhouchang@huawei.com Subject: Re: [PATCH v2 0/5] crypto: hisilicon - add HiSilicon SEC V2 support Message-ID: <20191112023319.GA1433@sol.localdomain> Mail-Followup-To: Xu Zaibo , herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, jonathan.cameron@huawei.com, wangzhou1@hisilicon.com, linuxarm@huawei.com, fanghao11@huawei.com, yekai13@huawei.com, zhangwei375@huawei.com, forest.zhouchang@huawei.com References: <1573264917-14588-1-git-send-email-xuzaibo@huawei.com> <20191109021650.GA9739@sol.localdomain> <20191111053720.GA18665@sol.localdomain> <5f822228-0323-928a-30f9-dea4af210a4c@huawei.com> <20191111171816.GA56300@gmail.com> <6cecf2de-9aa0-f6ea-0c2d-8e974a1a820b@huawei.com> <20191112012843.GA695@sol.localdomain> <5fd20e25-db51-55c3-406a-dd68a27e93c5@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5fd20e25-db51-55c3-406a-dd68a27e93c5@huawei.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Nov 12, 2019 at 10:11:10AM +0800, Xu Zaibo wrote: > > On 2019/11/12 9:28, Eric Biggers wrote: > > On Tue, Nov 12, 2019 at 09:04:33AM +0800, Xu Zaibo wrote: > > > On 2019/11/12 1:18, Eric Biggers wrote: > > > > On Mon, Nov 11, 2019 at 08:26:20PM +0800, Xu Zaibo wrote: > > > > > Hi, > > > > > > > > > > On 2019/11/11 13:37, Eric Biggers wrote: > > > > > > On Mon, Nov 11, 2019 at 10:21:39AM +0800, Xu Zaibo wrote: > > > > > > > Hi, > > > > > > > > > > > > > > On 2019/11/9 10:16, Eric Biggers wrote: > > > > > > > > On Sat, Nov 09, 2019 at 10:01:52AM +0800, Zaibo Xu wrote: > > > > > > > > > This series adds HiSilicon Security Engine (SEC) version 2 controller > > > > > > > > > driver in Crypto subsystem. It includes PCIe enabling, Skcipher, DebugFS > > > > > > > > > and SRIOV support of SEC. > > > > > > > > > > > > > > > > > > This patchset rebases on: > > > > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git > > > > > > > > > > > > > > > > > > This patchset is based on: > > > > > > > > > https://www.spinics.net/lists/linux-crypto/msg43520.html > > > > > > > > > > > > > > > > > > Changes: > > > > > > > > > - delete checking return value of debugfs_create_xxx functions. > > > > > > > > > > > > > > > > > > Change log: > > > > > > > > > v2: - remove checking return value of debugfs_create_xxx functions. > > > > > > > > > > > > > > > > > Does this driver pass all the crypto self-tests, including with > > > > > > > > CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y? > > > > > > > > > > > > > > > Not including extra testing now, only CONFIG_CRYPTO_TEST is passed. > > > > > > > > > > > > > Can you please ensure that all the extra tests are passing too? I.e., boot a > > > > > > kernel with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y and check dmesg for failures. > > > > > > > > > > > Ok, I will try to do this. BTW, why we need this test? Thanks. > > > > > > > > > It will test the correctness of your driver. > > > > > > > So, it is a basic test not an extra test ? :) > > > > > The options are separate because the "extra tests" include fuzz tests which take > > much longer to run than the regular tests, and some people who enable the > > regular tests wouldn't want them to get 100x slower. But as someone actually > > developing a crypto driver you're expected to run the extra tests. They've > > found lots of bugs in other drivers, so please run them and fix any bugs found. > > > Okay. Not sure whether my understanding is right. Should it be a part of > regular test once > we find a shorter time way to do this "extra tests"? > Yes, I am running it. Thank you very much. You should always run them when doing crypto development. With the default fuzz_iterations=100 they normally just take a few seconds. It's just that not everyone who wants to enable some level of crypto testing is actively developing a crypto driver and is willing to delay boot by any significant amount, so we have to have multiple testing options. - Eric