Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1300858rdh; Mon, 25 Sep 2023 08:40:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXqLuSaCAyGedbWAY+JNPl62QVrZbejRXsYWdPxeWNtMnbxdMy3vyFjNnkI/DUxaBjw4Cc X-Received: by 2002:a05:6a20:13d5:b0:132:ff57:7fab with SMTP id ho21-20020a056a2013d500b00132ff577fabmr7363872pzc.2.1695656412460; Mon, 25 Sep 2023 08:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695656412; cv=none; d=google.com; s=arc-20160816; b=FxfXUjuVPVYO3UPwI6ketQwbWGAxSji6+O4nb9EB788v9gxn3BFTYVrAnII6V7ImMS TcoLwSuCS6kAvTfqfGT62AW78T2RGfVaPOE5/iZNkyKtRPCI2uHe3Dbkp3HrI/URdJeP duzSm0ZMnvrN5rJ7otNAPydxkHWfQ1l5KbYuC5D794TWdeLrZeT7Nus9mjwwEn2G12rV U/zpQWcrxT37W8uPHeTJI93g2UKKWurF0lJ/NuRMBbPexXoynmyQsEZpImAfcY6aT7c2 MnXLlco3Bqbt/+Z3ELOwe0T+AKE/OP3wtFOA6kYgMRKRtrHmAb24LNac7QENvyezQa26 5Y+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:cc:to:from:thread-topic:subject:dkim-signature; bh=laqhfkaMk1emxqXbBHQuPhdUTmHi74kih73ISull9rM=; fh=dto3ihDRJ4DXraKmqA8LBQ1EpOtmZ2Tbrcc8TbM0tk8=; b=uatgN47u7+5Ie+UO8QplBMRUk8nQYdtVIN20dJRZfd1u8QdeYYv5NdGmrnxti3t5CH 6Z1UK8xeTdJOTP3Jb10/rOGMMb0p1hpxBTy3pr2HvkOFUJiQgr8gJCCFfzb2PA1P+3RY xgyvsvJk6SQCwPTsfddHmErZF0aYAmvSxs57MMQm7VpxrOcvnWj2wW3o9QQn+od4GHav gC0hbIQZDH+43S/elwurGoQ6w+K0c4Zx1Knv9kdGyNMX9g5+/lTZnEpNlsjxdq/M4kjH +C9kuMe1yfoo8BvTmGum2FYTXPOR1IUrX0WJSixGsrn4MKA0xJ+BKOMLBGuWN1iuwxtT U2oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=lp0LVMA7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f20-20020a63f114000000b00565610b2ed5si10588502pgi.794.2023.09.25.08.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 08:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=lp0LVMA7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4A4698098B9D; Mon, 25 Sep 2023 08:11:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232562AbjIYPLX (ORCPT + 99 others); Mon, 25 Sep 2023 11:11:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232556AbjIYPLW (ORCPT ); Mon, 25 Sep 2023 11:11:22 -0400 Received: from smtp-fw-52002.amazon.com (smtp-fw-52002.amazon.com [52.119.213.150]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD279103 for ; Mon, 25 Sep 2023 08:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1695654676; x=1727190676; h=from:to:cc:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version:subject; bh=laqhfkaMk1emxqXbBHQuPhdUTmHi74kih73ISull9rM=; b=lp0LVMA7SrRDlBUjaPA/Y4gHJMUulj/OMT7YXdvyiTYWIpt43DqSUnxB OE01raI6tc+bWwNvCERDUCvGQ1b9xI3wVsIm0jPFB84oJkpgJla/mgSeF F5WbhTE4X5MTbt795SSeSbu5DC1FWrao1QAuBtlNlw3XU0/x+AR70OpnY Q=; X-IronPort-AV: E=Sophos;i="6.03,175,1694736000"; d="scan'208";a="585505402" Subject: RE: [PATCH 0/3] crypto: jitter - Offer compile-time options Thread-Topic: [PATCH 0/3] crypto: jitter - Offer compile-time options Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-pdx-2b-m6i4x-ed19f671.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-52002.iad7.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 15:11:14 +0000 Received: from EX19MTAUEA002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2b-m6i4x-ed19f671.us-west-2.amazon.com (Postfix) with ESMTPS id C052E8A5A3; Mon, 25 Sep 2023 15:11:12 +0000 (UTC) Received: from EX19D030UEC002.ant.amazon.com (10.252.137.180) by EX19MTAUEA002.ant.amazon.com (10.252.134.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Mon, 25 Sep 2023 15:11:12 +0000 Received: from EX19D030UEC003.ant.amazon.com (10.252.137.182) by EX19D030UEC002.ant.amazon.com (10.252.137.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Mon, 25 Sep 2023 15:11:12 +0000 Received: from EX19D030UEC003.ant.amazon.com ([fe80::6222:63e7:9834:7b89]) by EX19D030UEC003.ant.amazon.com ([fe80::6222:63e7:9834:7b89%3]) with mapi id 15.02.1118.037; Mon, 25 Sep 2023 15:11:12 +0000 From: "Ospan, Abylay" To: =?iso-8859-1?Q?Stephan_M=FCller?= , "herbert@gondor.apana.org.au" CC: "linux-crypto@vger.kernel.org" Thread-Index: AQHZ7IHXOjhrYWJJlUG53kdcMUz5/7Arpuvg Date: Mon, 25 Sep 2023 15:11:11 +0000 Message-ID: <79fe855f99e44c97b6ac3348faac05d3@amazon.com> References: <2700818.mvXUDI8C0e@positron.chronox.de> In-Reply-To: <2700818.mvXUDI8C0e@positron.chronox.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.106.239.32] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 25 Sep 2023 08:11:18 -0700 (PDT) Hi Stephan, We ran tests with your patches on our bare metal platform (AMD Epyc CPU) an= d saw an improvement in boot time entropy after analyzing the collected jit= ter deltas. Patches looks good to me. Thanks for your work! Acked-by: Abylay Ospan -----Original Message----- From: Stephan M=FCller =20 Sent: Thursday, September 21, 2023 7:48 AM To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org; Ospan, Abylay Subject: [EXTERNAL] [PATCH 0/3] crypto: jitter - Offer compile-time options CAUTION: This email originated from outside of the organization. Do not cli= ck links or open attachments unless you can confirm the sender and know the= content is safe. Hi, the following patchset offers a set of compile-time options to accommodate = different hardware with different entropy rates implied in their timers. Th= is allows configuring the Jitter RNG in systems which exhibits insufficient= entropy with the default parameters. The default parameters defined by the= patches, however, are identical to the existing code and thus do not alter= the Jitter RNG behavior. The first patch sets the state by allowing the configuration of different o= versampling rates. The second patch allows the configuration of different m= emory sizes and the third allows the configuration of differnet oversamplin= g rates. The update of the power up test with the first patch also addresses reports= that the Jitter RNG did not initialize due to it detected insufficient ent= ropy. Stephan Mueller (3): crypto: jitter - add RCT/APT support for different OSRs crypto: jitter - Allow configuration of memory size crypto: jitter - Allow configuration of oversampling rate crypto/Kconfig | 60 +++++++++ crypto/jitterentropy-kcapi.c | 17 ++- crypto/jitterentropy.c | 249 ++++++++++++++++++----------------- crypto/jitterentropy.h | 5 +- 4 files changed, 207 insertions(+), 124 deletions(-) -- 2.42.0