Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3110606pxb; Tue, 21 Sep 2021 15:00:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBr/4f4K9z7SQdCsRM4TjCSVLjd8jzOem6JQXGDqf5UAdBhAi7WnlCEe43tXOX918cnu7f X-Received: by 2002:a92:c26a:: with SMTP id h10mr13230146ild.284.1632261620190; Tue, 21 Sep 2021 15:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632261620; cv=none; d=google.com; s=arc-20160816; b=A5OXxHqYFCAoRxVlOzbJciFEvYW/vmUJDeXbR/o1/31rmvvKIKPv2rchytRtZfr+KL 2JX08iVc0jcp/kFrxhm6j7JQCdMUDjWMRxatU8LSX0yK2UrBPa6cZsrUmSs/wAGS2ts6 Ug+cClul8yMuaf99yB6UJqNWxeLOn1MkaJXgBeeMy0Us2FQOsrp5o3mHfdL3VqUelNvo AQB5a6myQoS5SIUvqSMc6Yx8p+pvuSuf4i+7tABFiTXZNImhqaXV1gPANY5rxjEhRHAq D7IxgbL+lxt23QVRakGQ/8M3Ereqa8IxaNPwN1T2zrrs0tZRRxu+auxoPWC5s53FmsR3 mWHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XtIupny4DX6wHxmaSX+YXyWd02vz/XB/7tX3OIYMSYY=; b=uGudeNcxQRmzkMKWfUDEZITpkD0Mcj1oMZ3T1W7Ww4MB8ylQlkcYcPc1pSt98ZSnN7 LNdgQsBkQDa9eKzlki5ckZkz3jSL+XwNH36zKc9dhTH+NwbBrrPfjDmeGzSXKdSgWjwL dhmX9O6Hj+4MkUfhyoSsWdIUgXZnzz9gSLUSVzY5fdWKlJonVzzccqodvWMPDda11V5O 5xyNdtTHgA0FKkJSS3mKtKbe2NAzHRanmcQE6c2gCSmdCYiL/w3QVsFo4sPSc+hTsMdA u5noULCEHwvmQgmtbF7ITtsgdNTMkf4PgNpFAhu/ZFcLik7dujBIGpMkSdmMNw9P4YEx doxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CNv6IJ+I; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n3si287343ilj.23.2021.09.21.15.00.07; Tue, 21 Sep 2021 15:00:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CNv6IJ+I; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 S235833AbhIUWBJ (ORCPT + 99 others); Tue, 21 Sep 2021 18:01:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:40170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235766AbhIUWBJ (ORCPT ); Tue, 21 Sep 2021 18:01:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9BA5961019; Tue, 21 Sep 2021 21:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632261579; bh=2pzwqy6lIqIzqKUOtcOetgKUkFn022GfsoxI/JVuA50=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CNv6IJ+ItHvfpI9kKpFXRsKE44FdSPdiTYTJ//cZyeKrD64OgUgLFKypkwE+KPo08 qDHA09VhX/Z76tOXl8C+1+QlwTdBTIpVyS7sPL3uOjYTmQF2Ukxp1rG9edwApOPKN8 /dV1lSko4LSOAfqSlmTgRfQH2c6c2QLIp69UN9vSSQIv8j6/TO2kYFckN52YjtWZLd KI1+EETZscWQ0YZbvxVnRJOhdHmFbQiHmmfrFA+5SOkS7LgOdbmfjBBZQHhHHBhXLt z++MouszFcOPocs+oB08S1yAqzuFb4bbJO/O328GwDoPZHRluk1PZZk5USSFKBoTLz 3XJzfTrdbXIjQ== Date: Tue, 21 Sep 2021 14:59:37 -0700 From: Eric Biggers To: Emmanuel Gil Peyrot Cc: linux-crypto@vger.kernel.org, Ash Logan , Jonathan =?iso-8859-1?Q?Neusch=E4fer?= , Herbert Xu , "David S. Miller" , Rob Herring , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 0/4] crypto: nintendo-aes - add a new AES driver Message-ID: References: <20210921213930.10366-1-linkmauve@linkmauve.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210921213930.10366-1-linkmauve@linkmauve.fr> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Sep 21, 2021 at 11:39:26PM +0200, Emmanuel Gil Peyrot wrote: > This engine implements AES in CBC mode, using 128-bit keys only. It is > present on both the Wii and the Wii U, and is apparently identical in > both consoles. > > The hardware is capable of firing an interrupt when the operation is > done, but this driver currently uses a busy loop, I’m not too sure > whether it would be preferable to switch, nor how to achieve that. > > It also supports a mode where no operation is done, and thus could be > used as a DMA copy engine, but I don’t know how to expose that to the > kernel or whether it would even be useful. > > In my testing, on a Wii U, this driver reaches 80.7 MiB/s, while the > aes-generic driver only reaches 30.9 MiB/s, so it is a quite welcome > speedup. > > This driver was written based on reversed documentation, see: > https://wiibrew.org/wiki/Hardware/AES > > Emmanuel Gil Peyrot (4): > crypto: nintendo-aes - add a new AES driver > dt-bindings: nintendo-aes: Document the Wii and Wii U AES support > powerpc: wii.dts: Expose the AES engine on this platform > powerpc: wii_defconfig: Enable AES by default Does this pass the self-tests, including the fuzz tests which are enabled by CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y? - Eric