linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] powerpc: wire up rng during setup_arch
@ 2022-06-11 10:04 Jason A. Donenfeld
  2022-06-11 10:04 ` [PATCH v2 1/3] powerpc/microwatt: " Jason A. Donenfeld
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Jason A. Donenfeld @ 2022-06-11 10:04 UTC (permalink / raw)
  To: linuxppc-dev, linux-kernel, Michael Ellerman; +Cc: Jason A. Donenfeld

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.

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/rng.c   |  9 ++-------
 arch/powerpc/platforms/microwatt/setup.c |  8 ++++++++
 arch/powerpc/platforms/powernv/rng.c     | 17 ++++-------------
 arch/powerpc/platforms/powernv/setup.c   |  4 ++++
 arch/powerpc/platforms/pseries/rng.c     | 11 ++---------
 arch/powerpc/platforms/pseries/setup.c   |  3 +++
 6 files changed, 23 insertions(+), 29 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-06-11 14:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-11 10:04 [PATCH v2 0/3] powerpc: wire up rng during setup_arch Jason A. Donenfeld
2022-06-11 10:04 ` [PATCH v2 1/3] powerpc/microwatt: " Jason A. Donenfeld
2022-06-11 14:40   ` Christophe Leroy
2022-06-11 14:41     ` Jason A. Donenfeld
2022-06-11 14:46       ` Jason A. Donenfeld
2022-06-11 14:48         ` Christophe Leroy
2022-06-11 14:53           ` Jason A. Donenfeld
2022-06-11 10:04 ` [PATCH v2 2/3] powerpc/powernv: " Jason A. Donenfeld
2022-06-11 14:42   ` Christophe Leroy
2022-06-11 14:47     ` Jason A. Donenfeld
2022-06-11 10:04 ` [PATCH v2 3/3] powerpc/pseries: " Jason A. Donenfeld
2022-06-11 14:45   ` Christophe Leroy
2022-06-11 14:53     ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).