Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1911258ybg; Fri, 5 Jun 2020 00:22:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1xWSD5rdsEN7w0qYxe8sojju8+NFut15IpRGB2NfCD2wOhFO/gF+1Oy3/NzNp5iVM0cVY X-Received: by 2002:aa7:d7cc:: with SMTP id e12mr7797490eds.70.1591341722870; Fri, 05 Jun 2020 00:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591341722; cv=none; d=google.com; s=arc-20160816; b=o5Y+HxiZ6RaDwSv7e2EsZ4uat0KWmEfuCfGisA3Js24yLAimtMXQuCIfvzle/BnPvW byBhH5DOLIHQM1bj0JtFObwGIdFukjM7pMonzfRHZQZVW9dL36vJoS0w86SVAs1k8aIP R4aM1POmnpjTGX6E+HI/rTagMdDSuYDARPNpWJWtltsS+sDX2I1PagPx90Gsh4xqZLDU EzjuwBGkjdfTB+5PDJCC70yUkGBjz8uzk5Z4f+Cwfa2BlGIohC/+S5WVwEIraZ+Myfvg hYX19VSBe5MJcMS1kLwhjyCH5fNjSRsCu6rCcIGK9pvZCiCDNNISjmHKG6M+48e0p69X 8hrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=19vrRMWmwFaMyOZYFFMoP+8hHxPd3vzl6HzvP+kgneA=; b=A63EyLkMFkc3C3kQHFaO3D2kbvK4ohEnNgz7poI5a3q851oepdK3lNkMdM68v64SA7 igNmHqk7C2QCUnt0LoZro7dey6dgo7bhRCO5YpYPfe1+yPbTB4LCdrzrSx2mOagGAHWN xXG5E729HK76r7iir/G8yxDyijgSUpvUx+yoQqGgSlRAPL3ZDIWuZgxOe8VYDL3LHM8h HCilfoI64181whDA+8F306n2ICrjwKrKvjBVCS7MwNBaNifKMAPO9fIenEX1J+Xxi9ts RgGwKK/fzv9wy+WMURZ4/+u0frFHFJfHhSI/tWa2g9tCXeXiRMOmR/pFJke5Hoe6goLo HYqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pkSJ4qjn; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l22si2669404ejg.740.2020.06.05.00.21.26; Fri, 05 Jun 2020 00:22:02 -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=@mediatek.com header.s=dk header.b=pkSJ4qjn; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726062AbgFEHTN (ORCPT + 99 others); Fri, 5 Jun 2020 03:19:13 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:52162 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725280AbgFEHTM (ORCPT ); Fri, 5 Jun 2020 03:19:12 -0400 X-UUID: ba4e6b62c5944400a14738fa76b5e78b-20200605 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=19vrRMWmwFaMyOZYFFMoP+8hHxPd3vzl6HzvP+kgneA=; b=pkSJ4qjn5Aj54DqVDsthFFeFeI6lpzQTgLZdOWyyIhouzbwjR2Pj2zlKMEiSXFIYfoiUdqr6YoMSq8x/atjwjuSVIPnwMXGm6NqokpUEs8rqIbRBmmqU2l96uVKnTRd2PWqYGoK7z+oZg1QK1RExZjgZOHniN/rfvB3pIWpUcBQ=; X-UUID: ba4e6b62c5944400a14738fa76b5e78b-20200605 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1814770406; Fri, 05 Jun 2020 15:19:05 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 5 Jun 2020 15:19:03 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 5 Jun 2020 15:19:02 +0800 Message-ID: <1591341543.19510.4.camel@mtkswgap22> Subject: Re: Security Random Number Generator support From: Neal Liu To: Russell King - ARM Linux admin , Marc Zyngier CC: Neal Liu , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Julius Werner , Herbert Xu , "Arnd Bergmann" , Greg Kroah-Hartman , Sean Wang , lkml , wsd_upstream , Crystal Guo =?UTF-8?Q?=28=E9=83=AD=E6=99=B6=29?= , "Rob Herring" , Linux Crypto Mailing List , Matt Mackall , "Matthias Brugger" , "linux-mediatek@lists.infradead.org" , Ard Biesheuvel , Linux ARM Date: Fri, 5 Jun 2020 15:19:03 +0800 In-Reply-To: <20200603093416.GY1551@shell.armlinux.org.uk> References: <1591085678-22764-1-git-send-email-neal.liu@mediatek.com> <85dfc0142d3879d50c0ba18bcc71e199@misterjones.org> <1591169342.4878.9.camel@mtkswgap22> <20200603093416.GY1551@shell.armlinux.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 57A0643566E8C5377AB748C11626465C1385BB50C574232E8C6EF02F5FB61C3F2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org T24gV2VkLCAyMDIwLTA2LTAzIGF0IDE3OjM0ICswODAwLCBSdXNzZWxsIEtpbmcgLSBBUk0gTGlu dXggYWRtaW4gd3JvdGU6DQo+IE9uIFdlZCwgSnVuIDAzLCAyMDIwIGF0IDA4OjQwOjU4QU0gKzAx MDAsIE1hcmMgWnluZ2llciB3cm90ZToNCj4gPiBPbiAyMDIwLTA2LTAzIDA4OjI5LCBOZWFsIExp dSB3cm90ZToNCj4gPiA+IE9uIFR1ZSwgMjAyMC0wNi0wMiBhdCAyMTowMiArMDgwMCwgTWFyYyBa eW5naWVyIHdyb3RlOg0KPiA+ID4gPiBPbiAyMDIwLTA2LTAyIDEzOjE0LCBBcmQgQmllc2hldXZl bCB3cm90ZToNCj4gPiA+ID4gPiBPbiBUdWUsIDIgSnVuIDIwMjAgYXQgMTA6MTUsIE5lYWwgTGl1 IDxuZWFsLmxpdUBtZWRpYXRlay5jb20+IHdyb3RlOg0KPiA+ID4gPiA+Pg0KPiA+ID4gPiA+PiBU aGVzZSBwYXRjaCBzZXJpZXMgaW50cm9kdWNlIGEgc2VjdXJpdHkgcmFuZG9tIG51bWJlciBnZW5l cmF0b3INCj4gPiA+ID4gPj4gd2hpY2ggcHJvdmlkZXMgYSBnZW5lcmljIGludGVyZmFjZSB0byBn ZXQgaGFyZHdhcmUgcm5kIGZyb20gU2VjdXJlDQo+ID4gPiA+ID4+IHN0YXRlLiBUaGUgU2VjdXJl IHN0YXRlIGNhbiBiZSBBcm0gVHJ1c3RlZCBGaXJtd2FyZShBVEYpLCBUcnVzdGVkDQo+ID4gPiA+ ID4+IEV4ZWN1dGlvbiBFbnZpcm9ubWVudChURUUpLCBvciBldmVuIEVMMiBoeXBlcnZpc29yLg0K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