Thread (15 messages) 15 messages, 6 authors, 2023-03-14

Re: [PATCH v2 2/3] crypto: sun8i-ce - Add TRNG clock to the D1 variant

flat view

From: Jernej Škrabec <jernej.skrabec@gmail.com>
Date: 2023-01-05 16:30:15
Also in: linux-crypto, linux-devicetree, linux-riscv, linux-sunxi, lkml

Dne sobota, 31. december 2022 ob 23:01:44 CET je Samuel Holland napisal(a):
At least the D1 variant requires a separate clock for the TRNG.
Without this clock enabled, reading from /dev/hwrng reports:

   sun8i-ce 3040000.crypto: DMA timeout for TRNG (tm=96) on flow 3

Experimentation shows that the necessary clock is the SoC's internal
RC oscillator. This makes sense, as noise from the oscillator can be
used as a source of entropy.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help