From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF286C432C0 for ; Wed, 20 Nov 2019 19:50:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9E3ED2068F for ; Wed, 20 Nov 2019 19:50:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YCoixVoQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E3ED2068F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:References:In-Reply-To:Date:To:From:Subject:Message-ID:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qW7jtE/+DdmunkrlxuzIyi97+9F2YaqUCq2OS7qB6Aw=; b=YCoixVoQHeIc+evBhF3OepeHe aAwDGzxYIMYxHEZJw1FcjS4KPevOI2Oln3r4OHaNLKoLAoJmlAnGZPGRTn8N7NNylISUTUgSpB1R/ 4UdUa1omHCDGNzUyD4qhA6P3/57iytE/oOq3aYs+ZYw1H0k3pXIrQ+MuIzDSfQu1N0ji7oF61nNt3 G2bMovdc/6FQayamsX+Lgdju2iskEaEStXx5irqZ0qbXXAMhKTr1rqvp+yE74vWswnJhEvNsQSIZu JL00YoNB+uBfDP727SzbgDljYeVYiTuYwr9UcM5xOXf3OrAM0Lk9cOfVXJKwbURF8r2Bm6/WETrTC U1rWdCCZA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXVzY-0004py-Jd; Wed, 20 Nov 2019 19:50:20 +0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXVzV-0004p8-K1; Wed, 20 Nov 2019 19:50:19 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 29ACDB14A; Wed, 20 Nov 2019 19:50:16 +0000 (UTC) Message-ID: <6aaa37d2cbe91c177b7be2d7f8aa3846efe3dc34.camel@suse.de> Subject: Re: [PATCH v3 0/4] Raspberry Pi 4 HWRNG Support From: Nicolas Saenz Julienne To: Stefan Wahren , Stephen Brennan Date: Wed, 20 Nov 2019 20:50:14 +0100 In-Reply-To: <99554159-6abb-6ea5-aebb-57a148a59b78@gmx.net> References: <20191120031622.88949-1-stephen@brennan.io> <99554159-6abb-6ea5-aebb-57a148a59b78@gmx.net> User-Agent: Evolution 3.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191120_115017_808167_164BFEC4 X-CRM114-Status: GOOD ( 14.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Florian Fainelli , Herbert Xu , Scott Branden , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Ray Jui , Eric Anholt , Rob Herring , Arnd Bergmann , linux-crypto@vger.kernel.org, Matt Mackall , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============9091469692085728190==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============9091469692085728190== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-iQqSDeLkAUWuKqj/9yXJ" --=-iQqSDeLkAUWuKqj/9yXJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-11-20 at 17:16 +0100, Stefan Wahren wrote: > Hi Stephen, >=20 > Am 20.11.19 um 04:16 schrieb Stephen Brennan: > > This patch series enables support for the HWRNG included on the Raspber= ry > > Pi 4. It is simply a rebase of Stefan's branch [1]. I went ahead and > > tested this out on a Pi 4. Prior to this patch series, attempting to u= se > > the hwrng gives: > >=20 > > $ head -c 2 /dev/hwrng > > head: /dev/hwrng: Input/output error > >=20 > > After this series, the same command gives two random bytes. >=20 > just a note: a more expressive test would be running rngtest (package > rng-tools) on this device. Just had a go at it, root@rpi4:~# rngtest -c 1000 < /dev/hwrng rngtest 2-unofficial-mt.14 Copyright (c) 2004 by Henrique de Moraes Holschuh This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. rngtest: starting FIPS tests... rngtest: bits received from input: 20000032 rngtest: FIPS 140-2 successes: 998 rngtest: FIPS 140-2 failures: 2 rngtest: FIPS 140-2(2001-10-10) Monobit: 0 rngtest: FIPS 140-2(2001-10-10) Poker: 1 rngtest: FIPS 140-2(2001-10-10) Runs: 0 rngtest: FIPS 140-2(2001-10-10) Long run: 1 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0 rngtest: input channel speed: (min=3D1.284; avg=3D113.786; max=3D126.213)Ki= bits/s rngtest: FIPS tests speed: (min=3D17.122; avg=3D28.268; max=3D28.812)Mibits= /s rngtest: Program run time: 172323761 microseconds AFAIR (Arch wiki) some small failures are acceptable. Regards, Nicolas --=-iQqSDeLkAUWuKqj/9yXJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl3VmPYACgkQlfZmHno8 x/747ggAscLDM0fF7tOoTWdcO+lp+zKBM4o38uVkOwes/laW6msQMiAvB0qW7j4V 8FRmDLDFt34e1Ta9NKZW3GloAUkVkrS/iPX9msSCy7qlodRjRYdkgF5rbSH4YSIK K/9p8MXknOsXsJ9kQCiexooNiiKspt2XLl1lwtLuhHVdtNEVVw1phdlPhfU37BAW tV1n45JjdagGkNS8JrjvXNPbCRkSk8SStb/IjldltTO1Rvp//I5Whj0CWXnNzM0t HDhXrZiO7+5NB30WU9gP+o3NU8b0KiyAdoe5RgRzTCqlnZsK2rdhJ4eDQKzVpvWR /Ra8OIJmgCp4aezFVms92D0KO2dB6w== =VuSq -----END PGP SIGNATURE----- --=-iQqSDeLkAUWuKqj/9yXJ-- --===============9091469692085728190== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============9091469692085728190==--