Re: [PATCH v4 04/11] mips: use fallback for random_get_entropy() instead of zero

2022-04-16 Thread Jason A. Donenfeld
Hi Maciej, On Fri, Apr 15, 2022 at 2:26 PM Maciej W. Rozycki wrote: > return (random_get_entropy_fallback() << 14) | ((1<<14) - > read_c0_random()); > > of course, as bit 13 is still one of the active ones in the R3k CP0 Random > register. Ah, thanks, will do that. > There are two variant

Re: [PATCH v4 04/11] mips: use fallback for random_get_entropy() instead of zero

2022-04-16 Thread Maciej W. Rozycki
Hi Jason, > > There are two variants only of the CP0 Random register that we can ever > > encounter, as it's been de-facto standardised in early 1990s already and > > then written down in the MIPSr1 architecture specification ~2000. So I > > think it may make sense to actually handle them both e

Re: [PATCH v4 04/11] mips: use fallback for random_get_entropy() instead of zero

2022-04-16 Thread Jason A. Donenfeld
Hi Maciej, On Sat, Apr 16, 2022 at 03:44:53PM +0100, Maciej W. Rozycki wrote: > > Okay, I can give this a shot, but this certainly isn't my forté. It > > may ultimately wind up being simpler for you to just send some code of > > what you envision for this, but if I understand your idea correctly,