From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org,
Dominik Brodowski <linux@dominikbrodowski.net>
Subject: Re: [PATCH v3] hw_random: use add_hwgenerator_randomness() for early entropy
Date: Tue, 8 Nov 2022 12:00:40 +0100 [thread overview]
Message-ID: <Y2o22ODqUZNO4NsR@zx2c4.com> (raw)
In-Reply-To: <1839f462-dccb-b926-1acd-f1bb5f5776ba@collabora.com>
On Tue, Nov 08, 2022 at 11:53:23AM +0100, AngeloGioacchino Del Regno wrote:
> Il 06/11/22 16:02, Jason A. Donenfeld ha scritto:
> > Rather than calling add_device_randomness(), the add_early_randomness()
> > function should use add_hwgenerator_randomness(), so that the early
> > entropy can be potentially credited, which allows for the RNG to
> > initialize earlier without having to wait for the kthread to come up.
> >
> > This requires some minor API refactoring, by adding a `sleep_after`
> > parameter to add_hwgenerator_randomness(), so that we don't hit a
> > blocking sleep from add_early_randomness().
> >
> > Cc: Herbert Xu <herbert@gondor.apana.org.au>
> > Cc: Dominik Brodowski <linux@dominikbrodowski.net>
> > Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
> > Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
> > ---
> > Herbert - it might be easiest for me to take this patch if you want? Or
> > if this will interfere with what you have going on, you can take it. Let
> > me know what you feel like. -Jason
> >
> > drivers/char/hw_random/core.c | 8 +++++---
> > drivers/char/random.c | 12 ++++++------
> > include/linux/random.h | 2 +-
> > 3 files changed, 12 insertions(+), 10 deletions(-)
> >
>
> Hello,
>
> I tried booting next-20221108 on Acer Tomato Chromebook (MediaTek MT8195) but
> this commit is producing a kernel panic.
Thanks for the report. I see exactly what the problem is, and I'll send
a v+1 right away.
Jason
next prev parent reply other threads:[~2022-11-08 11:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-05 20:44 [PATCH] hw_random: use add_hwgenerator_randomness() for early entropy Jason A. Donenfeld
2022-11-06 1:31 ` Jason A. Donenfeld
2022-11-06 1:50 ` [PATCH v2] " Jason A. Donenfeld
2022-11-06 7:02 ` Dominik Brodowski
2022-11-06 14:50 ` Jason A. Donenfeld
2022-11-06 15:02 ` [PATCH v3] " Jason A. Donenfeld
2022-11-07 2:17 ` Herbert Xu
2022-11-07 12:55 ` Jason A. Donenfeld
2022-11-08 9:58 ` Herbert Xu
2022-11-07 7:39 ` Dominik Brodowski
2022-11-08 10:53 ` AngeloGioacchino Del Regno
2022-11-08 11:00 ` Jason A. Donenfeld [this message]
2022-11-08 11:24 ` [PATCH v4] " Jason A. Donenfeld
2022-11-08 11:44 ` AngeloGioacchino Del Regno
2022-11-08 22:05 ` Marek Szyprowski
2022-11-13 13:48 ` [PATCH v3] " kernel test robot
2022-11-13 14:11 ` Jason A. Donenfeld
2022-11-07 7:37 ` [PATCH v2] " Dominik Brodowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y2o22ODqUZNO4NsR@zx2c4.com \
--to=jason@zx2c4.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.