Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Alex Porosanu <alexandru.porosanu@freescale.com>
Cc: linux-crypto@vger.kernel.org, horia.geanta@freescale.com,
	vakul@freescale.com
Subject: Re: [PATCH 0/7] crypto: caam - RNG4 patches and fixes
Date: Fri, 13 Sep 2013 22:23:29 +1000	[thread overview]
Message-ID: <20130913122329.GE8579@gondor.apana.org.au> (raw)
In-Reply-To: <1378742194-32194-1-git-send-email-alexandru.porosanu@freescale.com>

On Mon, Sep 09, 2013 at 06:56:27PM +0300, Alex Porosanu wrote:
> This patch series attempts to fix some identified issues and add some new
> functionalities regarding the RNG4 block in the CAAM driver:
> o if the CAAM driver isn't properly instantiated (e.g. RNG4 initialization
>   fails), then there's an illegal memory access generated by the modules
>   depending on it; patch 1 in the patch-set fixes this;
> o if the CAAM module is removed, the state handles are not uninstantiated;
>   patch 3  in the patch-set adds the necessary descriptor to uninstantiate
>   state handle 0;
> o the RNG4 block in CAAM needs to be 'seeded' first before being used
>   for generating pseudo-random data. The 'seeding' is done by getting
>   entropy from the TRNG ring oscillator. The RTFRQMAX register controls
>   the maximum allowable number of samples that can be acquired during
>   an entropy sample. Depending on the clock at which the RNG4 block
>   (and for that matter the SEC block) runs, it's possible that a
>   hard-coded value for the maximum frequency is inadequate, i.e. more
>   samples than needed are taken. This leads to failures on devices
>   like BSC913x. Patch number 2 fixes this issue by using a kind of
>   a software loop to increase the maximum number of samples taken
>   until the state handle can be properly initialized; o there are two
>   state handles present in the RNG4 block and only one
>   is initialized; patch 5 in the patch-set fixes this issue, also
>   adding the necessary code for deinstantiation only the handles that were
>   instantiated by the driver.

All applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

      parent reply	other threads:[~2013-09-13 12:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-09 15:56 [PATCH 0/7] crypto: caam - RNG4 patches and fixes Alex Porosanu
2013-09-09 15:56 ` [PATCH 1/7] crypto: caam - fix RNG state handle instantiation descriptor Alex Porosanu
2013-09-09 15:56 ` [PATCH 2/7] crypto: caam - fix hash, alg and rng registration if CAAM driver not initialized Alex Porosanu
2013-09-09 15:56 ` [PATCH 3/7] crypto: caam - fix RNG4 instantiation Alex Porosanu
2013-09-09 15:56 ` [PATCH 4/7] crypto: caam - split RNG4 instantiation function Alex Porosanu
2013-09-09 15:56 ` [PATCH 5/7] crypto: caam - uninstantiate RNG state handle 0 if instantiated by caam driver Alex Porosanu
2013-09-09 15:56 ` [PATCH 6/7] crypto: caam - fix RNG4 AAI defines Alex Porosanu
2013-09-09 15:56 ` [PATCH 7/7] crypto: caam - enable instantiation of all RNG4 state handles Alex Porosanu
2013-09-13 12:23 ` Herbert Xu [this message]

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=20130913122329.GE8579@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=alexandru.porosanu@freescale.com \
    --cc=horia.geanta@freescale.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=vakul@freescale.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox