From: Dragan Simic <dsimic@manjaro.org>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: "Daniel Golle" <daniel@makrotopia.org>,
linux-arm-kernel@lists.infradead.org,
"Rob Herring" <robh@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Herbert Xu" <herbert@gondor.apana.org.au>,
devicetree@vger.kernel.org, "Martin Kaiser" <martin@kaiser.cx>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
linux-kernel@vger.kernel.org, "Ard Biesheuvel" <ardb@kernel.org>,
"Uwe Kleine-König" <ukleinek@debian.org>,
linux-rockchip@lists.infradead.org, linux-crypto@vger.kernel.org,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Olivia Mackall" <olivia@selenic.com>,
"Francesco Dolcini" <francesco.dolcini@toradex.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Aurelien Jarno" <aurelien@aurel32.net>,
"Heiko Stuebner" <heiko@sntech.de>
Subject: Re: [PATCH v8 3/3] arm64: dts: rockchip: add DT entry for RNG to RK356x
Date: Sun, 21 Jul 2024 14:39:07 +0200 [thread overview]
Message-ID: <bfd6a1608ec5b9e0b4d7a77bd2a56309@manjaro.org> (raw)
In-Reply-To: <Zpz5-2q-C0oQBqoa@zx2c4.com>
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@aurel32.net>
>>
>> Enable the just added Rockchip RNG driver for RK356x SoCs.
>>
>> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
>> Signed-off-by: Daniel Golle <daniel@makrotopia.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@RK3568_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.
next prev parent reply other threads:[~2024-07-21 12:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-21 0:46 [PATCH v8 0/3] hwrng: add hwrng support for Rockchip RK3568 Daniel Golle
2024-07-21 0:47 ` [PATCH v8 1/3] dt-bindings: rng: Add Rockchip RK3568 TRNG Daniel Golle
2024-07-21 0:48 ` [PATCH v8 2/3] hwrng: add hwrng driver for Rockchip RK3568 SoC Daniel Golle
2024-07-21 0:48 ` [PATCH v8 3/3] arm64: dts: rockchip: add DT entry for RNG to RK356x Daniel Golle
2024-07-21 12:07 ` Jason A. Donenfeld
2024-07-21 12:39 ` Dragan Simic [this message]
2024-07-21 13:49 ` Daniel Golle
2024-07-21 13:51 ` Jason A. Donenfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bfd6a1608ec5b9e0b4d7a77bd2a56309@manjaro.org \
--to=dsimic@manjaro.org \
--cc=Jason@zx2c4.com \
--cc=ardb@kernel.org \
--cc=aurelien@aurel32.net \
--cc=conor+dt@kernel.org \
--cc=daniel@makrotopia.org \
--cc=devicetree@vger.kernel.org \
--cc=francesco.dolcini@toradex.com \
--cc=heiko@sntech.de \
--cc=herbert@gondor.apana.org.au \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=martin@kaiser.cx \
--cc=olivia@selenic.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=ukleinek@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®