[PATCH v3 0/3] powerpc: wire up rng during setup_arch

Jason A. Donenfeld posted 3 patches 3 years, 10 months ago
arch/powerpc/platforms/microwatt/microwatt.h |  7 +++++++
arch/powerpc/platforms/microwatt/rng.c       | 10 +++-------
arch/powerpc/platforms/microwatt/setup.c     |  8 ++++++++
arch/powerpc/platforms/powernv/powernv.h     |  2 ++
arch/powerpc/platforms/powernv/rng.c         | 18 +++++-------------
arch/powerpc/platforms/powernv/setup.c       |  2 ++
arch/powerpc/platforms/pseries/pseries.h     |  2 ++
arch/powerpc/platforms/pseries/rng.c         | 11 +++--------
arch/powerpc/platforms/pseries/setup.c       |  1 +
9 files changed, 33 insertions(+), 28 deletions(-)
create mode 100644 arch/powerpc/platforms/microwatt/microwatt.h
[PATCH v3 0/3] powerpc: wire up rng during setup_arch
Posted by Jason A. Donenfeld 3 years, 10 months ago
The platform's RNG must be available before random_init() in order to be
useful for initial seeding, which in turn means that it needs to be
called from setup_arch(), rather than from an init call. This series
wires that up properly on the three platforms that currently initialize
the RNG from the wrong place.

Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>

Jason A. Donenfeld (3):
  powerpc/microwatt: wire up rng during setup_arch
  powerpc/powernv: wire up rng during setup_arch
  powerpc/pseries: wire up rng during setup_arch

 arch/powerpc/platforms/microwatt/microwatt.h |  7 +++++++
 arch/powerpc/platforms/microwatt/rng.c       | 10 +++-------
 arch/powerpc/platforms/microwatt/setup.c     |  8 ++++++++
 arch/powerpc/platforms/powernv/powernv.h     |  2 ++
 arch/powerpc/platforms/powernv/rng.c         | 18 +++++-------------
 arch/powerpc/platforms/powernv/setup.c       |  2 ++
 arch/powerpc/platforms/pseries/pseries.h     |  2 ++
 arch/powerpc/platforms/pseries/rng.c         | 11 +++--------
 arch/powerpc/platforms/pseries/setup.c       |  1 +
 9 files changed, 33 insertions(+), 28 deletions(-)
 create mode 100644 arch/powerpc/platforms/microwatt/microwatt.h

-- 
2.35.1
Re: [PATCH v3 0/3] powerpc: wire up rng during setup_arch
Posted by Michael Ellerman 3 years, 10 months ago
On Sat, 11 Jun 2022 17:10:12 +0200, Jason A. Donenfeld wrote:
> The platform's RNG must be available before random_init() in order to be
> useful for initial seeding, which in turn means that it needs to be
> called from setup_arch(), rather than from an init call. This series
> wires that up properly on the three platforms that currently initialize
> the RNG from the wrong place.
> 
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
> 
> [...]

Patches 1 & 3 applied to powerpc/fixes.

[1/3] powerpc/microwatt: wire up rng during setup_arch
      https://git.kernel.org/powerpc/c/20a9689b3607456d92c6fb764501f6a95950b098
[3/3] powerpc/pseries: wire up rng during setup_arch
      https://git.kernel.org/powerpc/c/e561e472a3d441753bd012333b057f48fef1045b

cheers