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

- From: Segher Boessenkool \<hidden\>
- Date: 2021-06-19 14:39:06 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/06/9523256
- Thread: https://ratatoskr.run/linuxppc-dev/2021/06/9523227/t.md

```text
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 add the get_random_darn function.
> 
> Huh, DARN is unprivileged right?

It is, that's the whole point: to make it very very cheap for user
software it has to be an unprivileged instruction.


Segher
```
