[PATCH v5 2/3] hwrng: add hwrng driver for Rockchip RK3568 SoC

Krzysztof Kozlowski krzk at kernel.org
Wed Jun 26 00:31:48 PDT 2024


On 26/06/2024 03:37, Daniel Golle wrote:
> From: Aurelien Jarno <aurelien at aurel32.net>
> 
> Rockchip SoCs used to have a random number generator as part of their
> crypto device, and support for it has to be added to the corresponding
> driver. However newer Rockchip SoCs like the RK3568 have an independent
> True Random Number Generator device. This patch adds a driver for it,
> greatly inspired from the downstream driver.
> 
> The TRNG device does not seem to have a signal conditionner and the FIPS
> 140-2 test returns a lot of failures. They can be reduced by increasing
> RK_RNG_SAMPLE_CNT, in a tradeoff between quality and speed. This value
> has been adjusted to get ~90% of successes and the quality value has
> been set accordingly.
> 
> Signed-off-by: Aurelien Jarno <aurelien at aurel32.net>
> [daniel at makrotpia.org: code style fixes]
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>

Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list