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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7B12DC3DA49 for ; Tue, 16 Jul 2024 13:28:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=TF815M0MHPBYp/3TtLytnCXOCoWe3Z5Pimkt2dlp1GI=; b=d557ef2jZqwPmTDpmR1RNjZP5M GNGHHLSiMh92SBrCOXrV4RQU3x8+yVjBKUwWQijWV18dOjPLvBWt7drlqJ+GewNGFTUmFHgEExsWP qDTEsgEK+JUTP1VpRLIAt/lms8qEobIvS6d/ctBIHrgqLqFIpQOKKLGexyCjLOlXP4xs9tIkPGKpe +R53KMFbiB87SDvYSfexS4sJN8AMD+HFkRohTCG2zXFpYWxHDCty9vJYrV3JpGavx7Kkqw3LZMr/K iH66ForXvZE95SLhW07PcZBE0vOHhW4hEBQ0pupkJj9G2mokr+qBDoKdTMlyqjE6RnB3xPyJf+dNh t5dqC5Xg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTiED-0000000AYNB-1ukw; Tue, 16 Jul 2024 13:28:25 +0000 Received: from pidgin.makrotopia.org ([2a07:2ec0:3002::65]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTiDt-0000000AYGP-1gEj; Tue, 16 Jul 2024 13:28:07 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1sTiDR-000000003jW-40cV; Tue, 16 Jul 2024 13:27:38 +0000 Date: Tue, 16 Jul 2024 14:27:33 +0100 From: Daniel Golle To: Diederik de Haas Cc: Chen-Yu Tsai , Aurelien Jarno , Herbert Xu , Heiko Stuebner , linux-rockchip@lists.infradead.org, Olivia Mackall , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Dragan Simic , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Sebastian Reichel , Cristian Ciocaltea , Sascha Hauer , Martin Kaiser , Ard Biesheuvel , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 0/3] hwrng: add hwrng support for Rockchip RK3568 Message-ID: References: <6425788.NZdkxuyfQg@bagend> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tknJYtWE5EdE/uFK" Content-Disposition: inline In-Reply-To: <6425788.NZdkxuyfQg@bagend> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_062805_461845_B4C089D4 X-CRM114-Status: GOOD ( 12.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --tknJYtWE5EdE/uFK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Diederik, On Tue, Jul 16, 2024 at 02:34:40PM +0200, Diederik de Haas wrote: > [...] > rngtest: starting FIPS tests... > rngtest: bits received from input: 20000032 > rngtest: FIPS 140-2 successes: 362 > rngtest: FIPS 140-2 failures: 638 > rngtest: FIPS 140-2(2001-10-10) Monobit: 634 > rngtest: FIPS 140-2(2001-10-10) Poker: 106 > rngtest: FIPS 140-2(2001-10-10) Runs: 43 > rngtest: FIPS 140-2(2001-10-10) Long run: 0 > rngtest: FIPS 140-2(2001-10-10) Continuous run: 0 > rngtest: input channel speed: (min=3D2.638; avg=3D139.351; max=3D9765625.= 000)Kibits/s > rngtest: FIPS tests speed: (min=3D21.169; avg=3D36.158; max=3D68.610)Mibi= ts/s > rngtest: Program run time: 148109761 microseconds > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > That's almost twice as many failures as successes ... That's bad news, and apparently different from Aurelien's initial testing of the driver. Can you try if the result is also that bad when using his version of the driver: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20221128184718.= 1963353-3-aurelien@aurel32.net/ If so, we can try to increase RK_RNG_SAMPLE_CNT, and we may need different values depending on the SoC... --tknJYtWE5EdE/uFK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABEIAB0WIQQ8WXOkSQLJP/KOu5qX7zeyq+FyywUCZpZ1PgAKCRCX7zeyq+Fy y7a0AQCE/4d3YLgHabbloqz9iyKoj0GdIFZwjHK3KL4968XEDQD/ajA3gjz4QmH0 pQJAwVHNMGK6A9q8yQ6Rq+ZWpqvwmLM= =3OSJ -----END PGP SIGNATURE----- --tknJYtWE5EdE/uFK--