arm64: add credited/trusted RNG support
authorMark Rutland <mark.rutland@arm.com>
Mon, 10 Feb 2020 13:00:14 +0000 (13:00 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 28 Feb 2020 04:21:52 +0000 (23:21 -0500)
commitead5084cdf5af51445d219800c2ac8b01eb85f2f
tree37129018903b602c137a0c7801a2a2eb241582c0
parent253d3194c2b58152fe830fd27c2fd83ebc6fe5ee
arm64: add credited/trusted RNG support

Currently arm64 doesn't initialize the primary CRNG in a (potentially)
trusted manner as we only detect the presence of the RNG once secondary
CPUs are up.

Now that the core RNG code distinguishes the early initialization of the
primary CRNG, we can implement arch_get_random_seed_long_early() to
support this.

This patch does so.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200210130015.17664-4-mark.rutland@arm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
arch/arm64/include/asm/archrandom.h