Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp139980ybl; Wed, 22 Jan 2020 17:54:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzivM43kbXMm5ayWGzI6oHzzLSwRYMNUh8hfrfuVjG4edGhb8HrpvZHwZVUlkbOLXdv1v7z X-Received: by 2002:a05:6830:1353:: with SMTP id r19mr9817144otq.288.1579744452838; Wed, 22 Jan 2020 17:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579744452; cv=none; d=google.com; s=arc-20160816; b=r6rOdftiJS5xeB9nJrRpzpSsQGEvHHMBr1/BBiZn9ND3uNlVyil4GVCLUJlyTEc8K4 1gRikJXMqmR0ckSGcRpaHxVbJN0ZpMwpV6jaKVLyRBeG5BarBDVMQRmrsmfShN/8573x VLERssjX+RGYO97qtgcw/5m7FpkGwBf1Y4CaFwgtMQzVYzkKakq3na1HCTau4J0ee07P h/cSKkqAKqvmz47C1ki/g4btM1RhzKz4Jhyt/K2aNf1sKyeAXjByoHJ+XJpb/TqtgT53 kUztuaZ2C0TGkgXoFwXqvZNddc3xoglhCVRFjQ6ZE3H3k0232VHhgzwcngXx0GzTjSsp m11w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=ujZkvtF9majEmku/Gxs4rZoUakuhfzphD8ol/URHilo=; b=Xl/35qNzMAdspUDB4Hi2etVVkHBrjchKP+isWRVymiI45w7n8VwwVbFcN8T6O0OxNP CmJlo9sCQSfrEwqQg16EoBujmx3EOrpVzIIUkOcMw291DM3y9Bw0M1zVRtkMxoC5sPLl IboA6ZPl46kNniJThfA1yMB89mDeufmoDXyt58IZEszs+erj4ldt4NbPEsTwpmFh8jnU QIt9IYlyw+8yZ3McF3Ve6uT76Eeae3euTekFSOrdeenCtlKlGyGYLQqvjAd42Zii9sln Hn2ZrsB5uiJmZ1qUtbaR37nU5LewaBshWmtOpLQPplvzy1mBUrdgB3r6DfjQVMNYY4GY Ngpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=qsshw+6M; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="DN6OGW/S"; 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 d21si135315oic.168.2020.01.22.17.53.53; Wed, 22 Jan 2020 17:54:12 -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=@aj.id.au header.s=fm1 header.b=qsshw+6M; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="DN6OGW/S"; 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 S1725943AbgAWBxx (ORCPT + 99 others); Wed, 22 Jan 2020 20:53:53 -0500 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:36509 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgAWBxw (ORCPT ); Wed, 22 Jan 2020 20:53:52 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id D8A6A6D87; Wed, 22 Jan 2020 20:53:51 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Wed, 22 Jan 2020 20:53:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=ujZkvtF9majEmku/Gxs4rZoUakuhfzp hD8ol/URHilo=; b=qsshw+6MxBNBzlpsVfUQJvzPlg1mYf034IOSuoePEBVtHNN ehE++KC/RbpuXEATKpEmSmmnCDp1WFqj7zSqqmQaLd1P/XsqZQpuulLziDntGcEi Zl24Kqe7K5broi96LBy5wFhNHIwNwXyEvvLMp9EqS/6nsF/A1gBvZHTJSR+ZCTq8 jWvOnveizc8TEi4FFYrl6/b6ptzaBi4KjnepiyPNrzEAfiFHFKqfnudBBcXcd+Vl 1Q6FBERhKPJL2nFTyOkGQPs5b8QvcnoAzkZn2Br4y2nAbo2Du0g3lZgqPa6+xHCl fQ1vp8LM4m3v8l5So9ZZ5kwWz2cHB6+LstSxB/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ujZkvt F9majEmku/Gxs4rZoUakuhfzphD8ol/URHilo=; b=DN6OGW/SMqdXSI8jjtOzO2 pGGVbrE9JRzGYsU3PcIOiobOZj1lO91DbwO31coNzfzM79yWYDsfaH1z/FrE4pOw K1cSpis2xl8x04ImWo4vZfPpa6T2R2jbu6OXfyod2Hi9b39uZVhOzKR8R0hG5A/N pUc9U3pDRSgmijNImgE+OK81Ohewqo/E9GWP5dUvTYMhLzWSWl9uJyv9P6EMFbBA g9nO1fp1IBXJUNrvbSrHxWw/xir2jOWs+Mub7vIioYbyUbYPRtBaAkBrcb7BhOTB fSY/RMQ+yIIyPB8wd9BHAvboR+hwUPsKTXljq72DPmDKDp0NAzJYOwmNdvlrtwAA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrvddugdefiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghj rdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7543AE00A2; Wed, 22 Jan 2020 20:53:50 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-754-g09d1619-fmstable-20200113v1 Mime-Version: 1.0 Message-Id: <575811fd-24ca-409c-8d33-c2152ee401d7@www.fastmail.com> In-Reply-To: <4446ffb694c7742ca9492c7360856789@neuralgames.com> References: <20200120150113.2565-1-linux@neuralgames.com> <4446ffb694c7742ca9492c7360856789@neuralgames.com> Date: Thu, 23 Jan 2020 12:23:29 +1030 From: "Andrew Jeffery" To: "Oscar A Perez" , "Joel Stanley" Cc: "Matt Mackall" , "Herbert Xu" , "Rob Herring" , "Mark Rutland" , "Linux Crypto Mailing List" , devicetree , "Linux ARM" , linux-aspeed , "Linux Kernel Mailing List" Subject: Re: [PATCH 1/2] hwrng: Add support for ASPEED RNG Content-Type: text/plain Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org > Thanks for reviewing the patch. > > The RNG on Aspeed hardware allows eight different modes for combining > its four internal Ring Oscillators that together generate a stream of > random bits. However, the timeriomem-rng driver does not allow for mode > selection so, the Aspeed RNG with this generic driver runs always on > mode 'seven' (The default value for mode according to the AspeedTech > datasheets). > > I've performed some testings on this Aspeed RNG using the NIST > Statistical Test Suite (NIST 800-22r1a) and, the results I got show that > the default mode 'seven' isn't producing the best entropy and linear > rank when compared against the other modes available on these SOCs. On > the other hand, the driver that I'm proposing here allows for mode > selection which would help improve the random output for those looking > to get the best out of this Aspeed RNG. Have you published the data and results of this study somewhere? This really should be mentioned in the commit message as justification for not using timeriomem-rng. Andrew