All of
 help / color / mirror / Atom feed
From: Herbert Xu <>
To: Rick Altherr <>
	Matt Mackall <>,,
Subject: Re: [PATCH v1] hw_random: Fix timeriomem_rng for sub-jiffie update periods
Date: Wed, 5 Apr 2017 20:57:17 +0800	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Tue, Apr 04, 2017 at 02:43:07PM -0700, Rick Altherr wrote:
> Some hardware RNGs provide a single register for obtaining random data.
> Instead of signaling when new data is available, the reader must wait a
> fixed amount of time between reads for new data to be generated.
> timeriomem_rng implements this scheme with the period specified in
> platform data or device tree.  While the period is specified in
> microseconds, the implementation used a standard timer which has a
> minimum delay of 1 jiffie and caused a significant bottleneck for
> devices that can update at 1us.  By switching to an hrtimer, 1us periods
> now only delay at most 2us per read.
> Migrated to new hw_random API while I in this driver.
> Signed-off-by: Rick Altherr <>

Thanks Rick.  Could you split this into two patches? One doing
the API conversion and the other one doing the substantive change
to the entropy gathering?

That way if there is a problem it'll be easier to track down.

Email: Herbert Xu <>
Home Page:
PGP Key:

  reply	other threads:[~2017-04-05 13:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 21:43 Rick Altherr
2017-04-05 12:57 ` Herbert Xu [this message]
2017-04-05 16:22   ` Rick Altherr

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH v1] hw_random: Fix timeriomem_rng for sub-jiffie update periods' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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.