> > 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.