linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Horia Geantă" <horia.geanta@freescale.com>
To: Victoria Milhoan <vicki.milhoan@freescale.com>,
	<linux-crypto@vger.kernel.org>
Cc: <herbert@gondor.apana.org.au>, <ruchika.gupta@freescale.com>,
	<shawnguo@kernel.org>, <kernel@pengutronix.de>,
	<linux@arm.linux.org.uk>
Subject: Re: [PATCH 00/12] crypto: caam - Add i.MX6 support to the Freescale CAAM driver
Date: Thu, 30 Jul 2015 20:53:08 +0300	[thread overview]
Message-ID: <55BA6484.9060305@freescale.com> (raw)
In-Reply-To: <1438228709-27650-1-git-send-email-vicki.milhoan@freescale.com>

On 7/30/2015 6:58 AM, Victoria Milhoan wrote:
> This patch series adds i.MX6 support to the Freescale CAAM driver.
> 
> Modifications include:
> 
> - explicit cache coherency support in the driver

1. Please check the aead failures when enabling self-tests
(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS not set).
They seem related with the lack of cache coherency support in caamalg.c.

> - register I/O primitive support
> - scatter/gather entry modifications
> - clocking support
> - i.MX6 device tree support for CAAM
> - DMA fixes
> 
> These patches have been tested on the i.MX6 and regression tested
> on QorIQ platforms. These patches include changes based on responses
> to the original RFC.

2. i.MX60 and i.MX61 have CHAVID_LS[MDVID] (MDHA version ID) equal to 0.
Thus, there is no support for sha384 and sha512.
Accordingly, all algorithms (hash-only or aead) that use them fail with
MDHA Mode error.

The driver should not be advertising these algorithms to Crypto API
unless supported (MDVID >=1).

3. Another type of failures is the following:
caam_jr 2101000.jr0: 40001d0a: DECO: desc idx 29: Invalid FIFO LOAD Command
alg: aead: encryption failed on test 1 for rfc4106-gcm-aes-caam:
ret=-1073749258
caam_jr 2101000.jr0: 40001c0a: DECO: desc idx 28: Invalid FIFO LOAD Command
alg: aead: encryption failed on test 1 for rfc4543-gcm-aes-caam:
ret=-1073749002
caam_jr 2101000.jr0: 4000210a: DECO: desc idx 33: Invalid FIFO LOAD Command
alg: aead: encryption failed on test 1 for gcm-aes-caam: ret=-1073750282

Thanks,
Horia

  parent reply	other threads:[~2015-07-30 17:53 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30  3:58 [PATCH 00/12] crypto: caam - Add i.MX6 support to the Freescale CAAM driver Victoria Milhoan
2015-07-30  3:58 ` [PATCH 01/12] crypto: caam - Add cache coherency support Victoria Milhoan
2015-07-30  3:58 ` [PATCH 02/12] crypto: caam - Add setbits32/clrbits32/clrsetbits primitives for ARM compatibility Victoria Milhoan
2015-07-30  3:58 ` [PATCH 03/12] crypto: caam - Enable and disable clocks on Freescale i.MX platforms Victoria Milhoan
2015-07-30  6:02   ` Sascha Hauer
2015-07-31  6:32     ` Victoria Milhoan
2015-07-31  6:40       ` Sascha Hauer
2015-07-30  3:58 ` [PATCH 04/12] crypto: caam - Modify Freescale CAAM driver Scatter Gather entry definition Victoria Milhoan
2015-07-30  3:58 ` [PATCH 05/12] crypto: caam - Change kmalloc to kzalloc to avoid residual data Victoria Milhoan
2015-07-30  3:58 ` [PATCH 06/12] crypto: caam - Correct DMA unmap size in ahash_update_ctx() Victoria Milhoan
2015-07-30  3:58 ` [PATCH 07/12] crypto: caam - Use local sg pointers to walk the scatterlist Victoria Milhoan
2015-07-30  3:58 ` [PATCH 08/12] ARM: clk-imx6q: Add CAAM clock support Victoria Milhoan
2015-07-30  6:14   ` Sascha Hauer
2015-07-31  6:38     ` Victoria Milhoan
2015-07-30  3:58 ` [PATCH 09/12] ARM: dts: mx6qdl: Add CAAM device node Victoria Milhoan
2015-07-30  6:12   ` Sascha Hauer
2015-07-30  3:58 ` [PATCH 10/12] ARM: dts: mx6sx: " Victoria Milhoan
2015-07-30  3:58 ` [PATCH 11/12] crypto: caam - Enable MXC devices to select CAAM driver in Kconfig Victoria Milhoan
2015-07-30  3:58 ` [PATCH 12/12] ARM: imx_v6_v7_defconfig: Select CAAM Victoria Milhoan
2015-07-30 17:53 ` Horia Geantă [this message]
2015-08-05 18:28 ` [PATCH v2 00/14] crypto: caam - Add i.MX6 support to the Freescale CAAM driver Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 01/14] crypto: caam - Add cache coherency support Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 02/14] crypto: caam - Add setbits32/clrbits32/clrsetbits primitives for ARM compatibility Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 03/14] crypto: caam - Enable and disable clocks on Freescale i.MX platforms Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 04/14] crypto: caam - Modify Freescale CAAM driver Scatter Gather entry definition Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 05/14] crypto: caam - Change kmalloc to kzalloc to avoid residual data Victoria Milhoan
2015-08-07  9:59     ` Herbert Xu
2015-08-05 18:28   ` [PATCH v2 06/14] crypto: caam - Correct DMA unmap size in ahash_update_ctx() Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 07/14] crypto: caam - Use local sg pointers to walk the scatterlist Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 08/14] crypto: caam - Added clocks and clock-names properties to SEC4.0 device tree binding Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 09/14] ARM: clk-imx6q: Add CAAM clock support Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 10/14] ARM: dts: mx6qdl: Add CAAM device node Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 11/14] ARM: dts: mx6sx: " Victoria Milhoan
2015-08-06  8:59     ` Horia Geantă
2015-08-06 18:37       ` Victoria Milhoan
2015-08-06 18:42       ` [PATCH v3 " Victoria Milhoan
2015-08-07  6:58         ` Horia Geantă
2015-08-05 18:28   ` [PATCH v2 12/14] crypto: caam - Enable MXC devices to select CAAM driver in Kconfig Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 13/14] ARM: imx_v6_v7_defconfig: Select CAAM Victoria Milhoan
2015-08-05 18:28   ` [PATCH v2 14/14] crypto: caam - Detect hardware features during algorithm registration Victoria Milhoan
2015-08-10 15:40   ` [PATCH v2 00/14] crypto: caam - Add i.MX6 support to the Freescale CAAM driver Herbert Xu

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=55BA6484.9060305@freescale.com \
    --to=horia.geanta@freescale.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=kernel@pengutronix.de \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=ruchika.gupta@freescale.com \
    --cc=shawnguo@kernel.org \
    --cc=vicki.milhoan@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;
as well as URLs for NNTP newsgroup(s).