From: Daniel Golle <daniel@makrotopia.org>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: "Aurelien Jarno" <aurelien@aurel32.net>,
"Olivia Mackall" <olivia@selenic.com>,
"Herbert Xu" <herbert@gondor.apana.org.au>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Heiko Stuebner" <heiko@sntech.de>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Dragan Simic" <dsimic@manjaro.org>,
"Uwe Kleine-König" <ukleinek@debian.org>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Cristian Ciocaltea" <cristian.ciocaltea@collabora.com>,
"Martin Kaiser" <martin@kaiser.cx>,
"Francesco Dolcini" <francesco.dolcini@toradex.com>,
"Ard Biesheuvel" <ardb@kernel.org>,
linux-crypto@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v8 3/3] arm64: dts: rockchip: add DT entry for RNG to RK356x
Date: Sun, 21 Jul 2024 14:49:17 +0100 [thread overview]
Message-ID: <Zp0R3YtzDoi02P1K@makrotopia.org> (raw)
In-Reply-To: <Zpz5-2q-C0oQBqoa@zx2c4.com>
On Sun, Jul 21, 2024 at 02:07:23PM +0200, 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.
It's not actually 90%. Around 125 out of 1000 test runs are failing on
the R5C boards I got here, so that makes it 87.5% which is pretty close
to the 87.9% of the 900/1024 figure there, hence I kept it 900 despite
your comment.
>
> 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.
So quality should be assigned using the DT compatible, right?
And if needed we should have several of them, one for each SoC (if
testing now turns out to show that the results are specific for the SoC
rather than for the board).
next prev parent reply other threads:[~2024-07-21 13:49 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
2024-07-21 13:49 ` Daniel Golle [this message]
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=Zp0R3YtzDoi02P1K@makrotopia.org \
--to=daniel@makrotopia.org \
--cc=Jason@zx2c4.com \
--cc=ardb@kernel.org \
--cc=aurelien@aurel32.net \
--cc=conor+dt@kernel.org \
--cc=cristian.ciocaltea@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=dsimic@manjaro.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;
as well as URLs for NNTP newsgroup(s).