Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3034957ybc; Thu, 21 Nov 2019 02:16:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyMY9+RG29hV0Ff/0atFWviurI9d9SHgDM/2cmiiN8EExux9pEZOgJL/jFjkLVm+9EQWm+8 X-Received: by 2002:a7b:c7c7:: with SMTP id z7mr8651317wmk.85.1574331418512; Thu, 21 Nov 2019 02:16:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574331418; cv=none; d=google.com; s=arc-20160816; b=J9AZzmJ7V0fCZ6TpUTzjA4AEWx+IZRVBJsou7bCUzRrbxFlQiEn/ODVQ91tlSdxZf0 8Sbc8dh+kyKp8rzf2kWvv3kH/go7B7K8cbjnTd5R7FBISpM6ArxV4b0k/Np6/UVpvKLZ NEEnDHk28mpPLbKKBfvGa6oJdEHncaaRhqrVth+hV3LIsaaB+Il0Y7JDSQ/rFgWZioGs 7mAW2iQdqzRbX8kasJ/SGVBbZkpc5hDmXr9vUpYDJIkkEUrfTExeYRAArw+cKS7/KYrK QIzNNWix41fZLS49+o9pBRQJIMVEaSGqkGpkwnOIupfBOaokqQk9YGujnnYUqyR+C5z2 6i6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=PKKROUWzC5NX1Rye4qoCcUqvyJj0vdRLEWt+/Fufutg=; b=wb6K9lMStzKk0zVuLceOS/Rtc4dbmiEDkcpuSMxuWhweKtN4Qfh6OBRZuncVttxm6H jl1HyqGyYAz7J8UK1KWi6s0n9I0AnG1ACvti8YVg5LuRo6C/osNqUs354sOdP9SZ/EvK sEuh9LqM0DeEdndWj9TM75xrWjTPYlQohFXSbRcs86YIdCPQYOJstiJOqH2hYz3FeJjf iwZSTgWOjwX/VqLu6ks/ofvxxw53SEOLeUJcDKMOuUKop6r+AJvDkZYObDJjXbun7fmB YPcr6AwbBeB67ViqkBUN0a+TfscEvQ7EMjXoArm8Gk9aEAnSpZ3iMfoHTq1S8lZhdkk/ 2UsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=CWKQRgVh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y40si1661961edd.383.2019.11.21.02.16.25; Thu, 21 Nov 2019 02:16:58 -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=@gmx.net header.s=badeba3b8450 header.b=CWKQRgVh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726957AbfKUKOx (ORCPT + 99 others); Thu, 21 Nov 2019 05:14:53 -0500 Received: from mout.gmx.net ([212.227.15.18]:49805 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726948AbfKUKOx (ORCPT ); Thu, 21 Nov 2019 05:14:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1574331269; bh=ZWabn5cPEZdM/dU9k7wTedMC47TS5i2tDFXWn60+DOs=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=CWKQRgVhuOIUhCNpJUY3dP41+GKdPHtHldjxJ1DvtdOEyZjH1/Mi+/G76Hfrijjb7 zoHRD4yikNARTFY+9FAqGXjCYHcw8zbzQxPKcZSH/0GcZ+it0ZmyH4MDrutWuTu4kB zye1MDAFNaLL11W8qpIY35e8yhEkSMw3Pt+c9eb8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.176] ([37.4.249.139]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5VDE-1hn2lC4AWo-016tzL; Thu, 21 Nov 2019 11:14:29 +0100 Subject: Re: [PATCH v3 0/4] Raspberry Pi 4 HWRNG Support To: Nicolas Saenz Julienne , Stephen Brennan 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 References: <20191120031622.88949-1-stephen@brennan.io> <99554159-6abb-6ea5-aebb-57a148a59b78@gmx.net> <6aaa37d2cbe91c177b7be2d7f8aa3846efe3dc34.camel@suse.de> From: Stefan Wahren Message-ID: <79995d88-ad9c-e2cc-3f79-0fc9cf8352d2@gmx.net> Date: Thu, 21 Nov 2019 11:14:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <6aaa37d2cbe91c177b7be2d7f8aa3846efe3dc34.camel@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:oeIJr8IJyuJ/vS51pMEcSu7Yj39vWst+y+r9CPsXWP7HunwteIc egP5Y8cxeEiRXU4LvKDlX/9esGv2STZa/M/Q7404ZUthVaybzTLQLFi4tnQ2/AMGHQinzFa A/kE0mGrtwiBGKZE+/3ZxYjKn2NR/+cwIWadtynSh2CnxuCjSn8cAqQNx2HX4OVjiTZL34z OcWQPE/GGnLpp3QxQzdgQ== X-Spam-Flag: NO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jfLvbG2P8sb8CXbTC Q57gqNwV6a8cMX3NrdcppqCZ1PE+qXvd8Qladi6rKLM0rGrFnToukkd3qOPoqhsWMBhlu/wom gRwajYI98pxl019XccgxkJ7xPk+uYMgrIc4cMFkHq5k49w6eph1jepbNOd8IYmCL1i4SHgb3R WMEORmGvMXxlEkf0whZ7EdHCa4zrZeLQ+FixyOH7g6uw1eud0quCTufLmPLpmk/63AbrKxuXc VqqDW2HlvkjOw/jLJcYYiGGMCnPBiP2NcQp+B6C9/cdOzZVcCggaokriGAKw= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi, Am 20.11.19 um 20:50 schrieb Nicolas Saenz Julienne: > On Wed, 2019-11-20 at 17:16 +0100, Stefan Wahren wrote: >> Hi Stephen, >> >> Am 20.11.19 um 04:16 schrieb Stephen Brennan: >>> This patch series enables support for the HWRNG included on the Raspberry >>> 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 use >>> the hwrng gives: >>> >>> $ head -c 2 /dev/hwrng >>> head: /dev/hwrng: Input/output error >>> >>> After this series, the same command gives two random bytes. >> 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=1.284; avg=113.786; max=126.213)Kibits/s > rngtest: FIPS tests speed: (min=17.122; avg=28.268; max=28.812)Mibits/s > rngtest: Program run time: 172323761 microseconds > > AFAIR (Arch wiki) some small failures are acceptable. > > Regards, > Nicolas > thanks for the results. AFAIR the downstream implementation [1] has a significant higher input speed. So there is possibly some room for optimizations later. Regards Stefan [1] - https://github.com/raspberrypi/linux/commit/5e74aadfd1e0e6c00994521863ba044ce25b40de