[PATCH] eal: add support for TRNG with Arm RNG feature

Wathsala Wathawana Vithanage wathsala.vithanage at arm.com
Mon Jul 29 06:34:57 CEST 2024


> 
> The Linux kernel in arch/arm64/include/asm/archrandom.h has support
> already. The support includes lots of checks for capabilities and caveats for the
> limitations of the ARM implementation that are not reflected in this simplistic
> version.

No, such checks are unnecessary, because
(a) the patch already uses the capability check carried out by Linux kernel by checking 
the capabilities flag in auxiliary vector (AT_HWCAP). 
(b) it uses Arm acle intrinsic __rndr which is identical to the implementation in the Linux 
kernel where it checks PSTATE.NZCV bits. 



More information about the dev mailing list