lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bfd6a1608ec5b9e0b4d7a77bd2a56309@manjaro.org>
Date: Sun, 21 Jul 2024 14:39:07 +0200
From: Dragan Simic <dsimic@...jaro.org>
To: "Jason A. Donenfeld" <Jason@...c4.com>
Cc: Daniel Golle <daniel@...rotopia.org>,
 linux-arm-kernel@...ts.infradead.org, Rob Herring <robh@...nel.org>, Conor
 Dooley <conor+dt@...nel.org>, Herbert Xu <herbert@...dor.apana.org.au>,
 devicetree@...r.kernel.org, Martin Kaiser <martin@...ser.cx>, Sascha Hauer
 <s.hauer@...gutronix.de>, linux-kernel@...r.kernel.org, Ard Biesheuvel
 <ardb@...nel.org>, Uwe Kleine-König <ukleinek@...ian.org>,
 linux-rockchip@...ts.infradead.org, linux-crypto@...r.kernel.org, Philipp
 Zabel <p.zabel@...gutronix.de>, Olivia Mackall <olivia@...enic.com>,
 Francesco Dolcini <francesco.dolcini@...adex.com>, Krzysztof Kozlowski
 <krzk+dt@...nel.org>, Aurelien Jarno <aurelien@...el32.net>, Heiko Stuebner
 <heiko@...ech.de>
Subject: Re: [PATCH v8 3/3] arm64: dts: rockchip: add DT entry for RNG to
 RK356x

Hello all,

On 2024-07-21 14:07, Jason A. Donenfeld wrote:
> On Sun, Jul 21, 2024 at 01:48:38AM +0100, Daniel Golle wrote:
>> From: Aurelien Jarno <aurelien@...el32.net>
>> 
>> Enable the just added Rockchip RNG driver for RK356x SoCs.
>> 
>> Signed-off-by: Aurelien Jarno <aurelien@...el32.net>
>> Signed-off-by: Daniel Golle <daniel@...rotopia.org>
>> ---
>>  arch/arm64/boot/dts/rockchip/rk3568.dtsi |  7 +++++++
>>  arch/arm64/boot/dts/rockchip/rk356x.dtsi | 10 ++++++++++
>>  2 files changed, 17 insertions(+)
>> 
>> diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi 
>> b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
>> index f1be76a54ceb..b9c6b2dc87fa 100644
>> --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
>> +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
>> @@ -257,6 +257,13 @@ power-domain@...568_PD_PIPE {
>>  	};
>>  };
>> 
>> +&rng {
>> +	rockchip,sample-count = <1000>;
>> +	quality = <900>;
> 
> As I already wrote you for v7, quality is out of 1024, not 1000, so 
> this
> won't hit 90% as you intend.
> 
> But also, I think putting this in the DT is a mistake. Other drivers
> don't generally do this, and if the hardware is actually the same piece
> to piece (it is...), then there's not per-manufactured unit tweaking
> needed. So keep this in the actual driver C like other drivers.

Actually, if we find out that some samples of RK3568 have HWRNG that
performs poorly, we'll be able to regrettably conclude that this driver
cannot be used at all.  As we remember, RK3566 has been already proven
to have inconsistent HRWNG that may perform poorly, which basically
disqualifies the RK3566 from using this driver.

Thus, I agree that the per-SoC-variant parameters should be moved
to the driver code in the final version.  However, this is still
a development version that has the parameters in the DT specifically
to allow easier testing of the different parameter values.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ