Re: [PATCH v2 6/9] powerpc/microwatt: Add support for hardware random number generator

2021-06-20 Thread Nicholas Piggin
Excerpts from Segher Boessenkool's message of June 20, 2021 12:36 am: > On Sat, Jun 19, 2021 at 01:08:51PM +1000, Nicholas Piggin wrote: >> Excerpts from Paul Mackerras's message of June 18, 2021 1:47 pm: >> > Microwatt's hardware RNG is accessed using the DARN instruction. >> >> I think we're get

Re: [PATCH v2 6/9] powerpc/microwatt: Add support for hardware random number generator

2021-06-19 Thread Segher Boessenkool
On Sat, Jun 19, 2021 at 01:08:51PM +1000, Nicholas Piggin wrote: > Excerpts from Paul Mackerras's message of June 18, 2021 1:47 pm: > > Microwatt's hardware RNG is accessed using the DARN instruction. > > I think we're getting a platforms/book3s soon with the VAS patches, > might be a place to ad

Re: [PATCH v2 6/9] powerpc/microwatt: Add support for hardware random number generator

2021-06-18 Thread Nicholas Piggin
Excerpts from Paul Mackerras's message of June 18, 2021 1:47 pm: > Microwatt's hardware RNG is accessed using the DARN instruction. > I think we're getting a platforms/book3s soon with the VAS patches, might be a place to add the get_random_darn function. Huh, DARN is unprivileged right? And ye

[PATCH v2 6/9] powerpc/microwatt: Add support for hardware random number generator

2021-06-17 Thread Paul Mackerras
Microwatt's hardware RNG is accessed using the DARN instruction. Signed-off-by: Paul Mackerras --- arch/powerpc/platforms/microwatt/Kconfig | 1 + arch/powerpc/platforms/microwatt/Makefile | 2 +- arch/powerpc/platforms/microwatt/rng.c| 48 +++ 3 files changed, 50 inse