Re: [PATCH v5 4/5] arm64: Add support for SMCCC TRNG entropy source

2021-01-06 Thread Andre Przywara
On Tue, 5 Jan 2021 17:00:14 + Mark Brown wrote: > On Tue, Jan 05, 2021 at 04:36:51PM +, Andre Przywara wrote: > > > @@ -77,10 +117,20 @@ arch_get_random_seed_long_early(unsigned long > > *v) { > > WARN_ON(system_state != SYSTEM_BOOTING); > > > > - if (!__early_cpu_has_rndr()) >

Re: [PATCH v5 4/5] arm64: Add support for SMCCC TRNG entropy source

2021-01-05 Thread Mark Brown
On Tue, Jan 05, 2021 at 04:36:51PM +, Andre Przywara wrote: > @@ -77,10 +117,20 @@ arch_get_random_seed_long_early(unsigned long *v) > { > WARN_ON(system_state != SYSTEM_BOOTING); > > - if (!__early_cpu_has_rndr()) > - return false; > + if (__early_cpu_has_rndr())

[PATCH v5 4/5] arm64: Add support for SMCCC TRNG entropy source

2021-01-05 Thread Andre Przywara
The ARM architected TRNG firmware interface, described in ARM spec DEN0098, defines an ARM SMCCC based interface to a true random number generator, provided by firmware. This can be discovered via the SMCCC >=v1.1 interface, and provides up to 192 bits of entropy per call. Hook this SMC call into