Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4093600img; Tue, 26 Mar 2019 02:54:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBrLCXvWXmJSgwdZHXLN78F7kSRudn1pbJo4IsCuf1kYbazEj7adKCfuh7VUl/FlZysIOq X-Received: by 2002:a17:902:ba88:: with SMTP id k8mr27973259pls.268.1553594063705; Tue, 26 Mar 2019 02:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553594063; cv=none; d=google.com; s=arc-20160816; b=sG3cK3URhvZGITf3IQbQyQDY8oZGBB5jPyN60OXfLRCJkVARa/M4Lgce7eBc8sX30S Snsxbuqavyw1H4xEPHdQa5xHUmN9Tpx8Jrkzt2JqKHmsh5n3brDfivdAEB/96Z1pSl2P MotDpp5lsLhVWhfLFDdTF46AKenLkb8AEYTo+2XnKqHUw/MzX95GxdVCCztdzZFvwy2c K/jZoByKzAJBz1iH74xY8gNW35cSXuVNXxLToWdagpzsJC7bVkTywWL+BCSZMcbIcNNR xYXAG4QhulySRJ9kJg5Ge9zObWtgFNlsMAwi/NqwizoM7QtK/tUp4z24pXVDO9k0x/xN lT/g== 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:message-id:subject:cc :to:from:date; bh=iIzaAnq5iPLa+FyJKmK9QowRp48FjX7Ye1+P16WoRM4=; b=Yzu/5QUPtL5ylFl/5VI9ZPg4l65slO9EGrSxX9s77x2sCRSgl0ZwYeitxhK/JaP64V c5v7B4mdKumxELMuscdG5xUcmTQxS3Ebt6P+Zb8lLW+cR9/eJoSu2cVUJQHiexw8y8zj 3Xzdr0kxir9gpiC5jP4ug5T+ZsSnw/RwRZ0tvGetc7+6Ok4MCxmi9Z86BrY4jJdYrK7t D1/oxceCSJtoo0HqA1l5hbu+RGJnl7Qx2+bqVAPYgl7GgfKQmDAPoHVYhGw55C2xvBzg ER9Ae6brG9nX3JjHyes6TjW2UMI+v3VQpTNhpB45tnYnmp6a5c/Yy3HUMxTicgUSe7v/ hg6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r13si6533019pgj.413.2019.03.26.02.54.08; Tue, 26 Mar 2019 02:54:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730919AbfCZJvo (ORCPT + 99 others); Tue, 26 Mar 2019 05:51:44 -0400 Received: from stretch.kos.to ([51.15.203.87]:56032 "EHLO pilvi.kos.to" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfCZJvo (ORCPT ); Tue, 26 Mar 2019 05:51:44 -0400 X-Greylist: delayed 338 seconds by postgrey-1.27 at vger.kernel.org; Tue, 26 Mar 2019 05:51:43 EDT Received: from 08efd375aeba (unknown [172.17.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pilvi.kos.to (Postfix) with ESMTPSA id B0AE62411D2; Tue, 26 Mar 2019 09:46:03 +0000 (UTC) Received: (nullmailer pid 32707 invoked by uid 1000); Tue, 26 Mar 2019 09:46:03 -0000 Date: Tue, 26 Mar 2019 09:46:03 +0000 From: Riku Voipio To: Pascal Van Leeuwen Cc: Linus Torvalds , Ard Biesheuvel , Herbert Xu , "David S. Miller" , "Jason A. Donenfeld" , Eric Biggers , Linux Crypto Mailing List , "linux-fscrypt@vger.kernel.org" , linux-arm-kernel , LKML Subject: Re: [PATCH 0/17] Add zinc using existing algorithm implementations Message-ID: <20190326094603.nyfi2dsnt6a6u57f@08efd375aeba> References: <20190322062740.nrwfx2rvmt7lzotj@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 09:10:08AM +0000, Pascal Van Leeuwen wrote: > As someone who has been working on crypto acceleration hardware for the better > part of the past 20 years, I feel compelled to respond to this, in defence of > the crypto API (which we're really happy with ...). Thanks for joining in. > We have done plenty of measurements, on both power and performance, to prove > you wrong there. Typically our HW needs *at least* a full order of a magnitude > less power to do the actual work. The CPU load for handing the interrupts etc. > tends to be around 20%. So assuming the CPU goes to sleep for the other 80% > of the time, the combined solution would need about 1/3rd of the power of a > CPU only solution. It's one of our biggest selling points. I actually have the kind of (relatively) low-power system with your crypto accelerator IP. But it doesn't matter how great performance or energy saving I would get from using crypto offloading. I will continue to use CPU only solution for the foreseeable future. Because of one tiny problem: The firmware files for eip197(?) crypto accelerator are secrets we are not allowed download anywhere from. > Pascal van Leeuwen, > Silicon IP Architect @ Inside Secure Riku