Re: [PATCH v3] powerpc/powernv: Use darn instr for random_seed on p9

2017-08-07 Thread Michael Ellerman
Michael Ellerman writes: > Matt Brown writes: >> On Sat, Aug 5, 2017 at 3:06 AM, Tyrel Datwyler >> wrote: >>> On 08/03/2017 06:12 PM, Matt Brown wrote: @@ -135,8 +152,9 @@ static __init int rng_create(struct

Re: [PATCH v3] powerpc/powernv: Use darn instr for random_seed on p9

2017-08-06 Thread Michael Ellerman
Matt Brown writes: > On Sat, Aug 5, 2017 at 3:06 AM, Tyrel Datwyler > wrote: >> On 08/03/2017 06:12 PM, Matt Brown wrote: >>> @@ -135,8 +152,9 @@ static __init int rng_create(struct device_node *dn) >>> >>> static __init int

Re: [PATCH v3] powerpc/powernv: Use darn instr for random_seed on p9

2017-08-06 Thread Matt Brown
On Sat, Aug 5, 2017 at 3:06 AM, Tyrel Datwyler wrote: > On 08/03/2017 06:12 PM, 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

Re: [PATCH v3] powerpc/powernv: Use darn instr for random_seed on p9

2017-08-04 Thread Tyrel Datwyler
On 08/03/2017 06:12 PM, 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