[v3] powerpc/powernv: Use darn instr for random_seed on p9
Michael Ellerman
patch-notifications at ellerman.id.au
Tue Aug 8 20:55:14 AEST 2017
On Fri, 2017-08-04 at 01:12:18 UTC, Matt Brown wrote:
> This adds the powernv_get_random_darn function which utilises the darn
> instruction, introduced in POWER9. The powernv_get_random_darn function
> is used as the ppc_md.get_random_seed on P9.
>
> The DARN instruction can potentially throw an error, so we attempt to
> register the powernv_get_random_darn function up to 10 times before
> failing.
>
> Signed-off-by: Matt Brown <matthew.brown.dev at gmail.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/e66ca3db5917f4bcad039d3a3df9f1
cheers
More information about the Linuxppc-dev
mailing list