From: boris.brezillon@free-electrons.com (Boris Brezillon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA
Date: Sun, 21 Jun 2015 10:24:18 +0200 [thread overview]
Message-ID: <20150621102418.2ea74910@bbrezillon> (raw)
In-Reply-To: <CAP=VYLpSrTvXRovWo4G7AXWv1OKFQRpQR255hS5z+=h4+XOLhg@mail.gmail.com>
Hi Paul,
On Sat, 20 Jun 2015 20:14:08 -0400
Paul Gortmaker <paul.gortmaker@windriver.com> wrote:
> On Sat, Jun 20, 2015 at 4:32 PM, Paul Gortmaker
> <paul.gortmaker@windriver.com> wrote:
> > On Fri, Jun 19, 2015 at 10:24 AM, Herbert Xu
> > <herbert@gondor.apana.org.au> wrote:
> >> On Thu, Jun 18, 2015 at 03:46:16PM +0200, Boris Brezillon wrote:
> >>> Hello,
> >>>
> >>> This patch series adds a new driver supporting Marvell's CESA IP.
> >>> This driver addresses some limitations of the existing one.
> >>> >From a performance and CPU load point of view the most important
> >>> limitation in the existing driver is the lack of DMA support, thus
> >>> preventing us from chaining crypto operations.
> >>
> >> All applied to cryptodev. Thanks a lot!
> >
> > It seems this breaks linux-next allmodconfig on i386:
>
> Similar breakage for s390 and sparc it seems:
>
> drivers/crypto/marvell/cesa.c:353:2: error: implicit declaration of
> function 'phys_to_dma' [-Werror=implicit-function-declaration]
>
> http://kisskb.ellerman.id.au/kisskb/buildresult/12445415/
> http://kisskb.ellerman.id.au/kisskb/buildresult/12445345/
>
> If the CESA IP is only available on a single arch then
> adding an arch dependency might be the easiest fix,
> since phys_to_dma seems sparsely implemented.
Indeed. Here is a patch fixing that.
Thanks,
Boris
--- >8 ---
>From 891d4e5f185c39cd34b5859a1a63850ef997514d Mon Sep 17 00:00:00 2001
From: Boris Brezillon <boris.brezillon@free-electrons.com>
Date: Sun, 21 Jun 2015 10:17:54 +0200
Subject: [PATCH] crypto: marvell/CESA: enforce dependency on ARM
The CESA driver calls phys_to_virt() which is not available on all
architectures.
Enforce the dependency on ARM so that other architectures won't compile
the driver even if COMPILE_TEST is set.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Suggested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
drivers/crypto/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index cdca762..b374d5d 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -176,7 +176,7 @@ config CRYPTO_DEV_MV_CESA
config CRYPTO_DEV_MARVELL_CESA
tristate "New Marvell's Cryptographic Engine driver"
- depends on (PLAT_ORION || ARCH_MVEBU || COMPILE_TEST) && HAS_DMA && HAS_IOMEM
+ depends on (PLAT_ORION || ARCH_MVEBU || COMPILE_TEST) && HAS_DMA && HAS_IOMEM && ARM
select CRYPTO_AES
select CRYPTO_DES
select CRYPTO_BLKCIPHER
--
1.9.1
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-06-21 8:24 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-18 13:46 [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 01/14] crypto: mv_cesa: document the clocks property Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 02/14] crypto: mv_cesa: use gen_pool to reserve the SRAM memory region Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 03/14] crypto: mv_cesa: explicitly define kirkwood and dove compatible strings Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 04/14] crypto: add a new driver for Marvell's CESA Boris Brezillon
2015-06-19 6:42 ` Herbert Xu
2015-06-19 8:24 ` Thomas Petazzoni
2015-06-19 8:40 ` Gregory CLEMENT
2015-06-19 14:03 ` Herbert Xu
2015-06-18 13:46 ` [PATCH v7 05/14] crypto: marvell/CESA: add TDMA support Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 06/14] crypto: marvell/CESA: add DES support Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 07/14] crypto: marvell/CESA: add Triple-DES support Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 08/14] crypto: marvell/CESA: add MD5 support Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 09/14] crypto: marvell/CESA: add SHA256 support Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 10/14] crypto: marvell/CESA: add support for all armada SoCs Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 11/14] crypto: marvell/CESA: add allhwsupport module parameter Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 12/14] crypto: marvell/CESA: add support for Orion SoCs Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 13/14] crypto: marvell/CESA: add support for Kirkwood and Dove SoCs Boris Brezillon
2015-06-18 13:46 ` [PATCH v7 14/14] crypto: marvell/CESA: add DT bindings documentation Boris Brezillon
2015-06-19 14:24 ` [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA Herbert Xu
2015-06-20 20:32 ` Paul Gortmaker
2015-06-21 0:14 ` Paul Gortmaker
2015-06-21 8:24 ` Boris Brezillon [this message]
2015-06-21 8:27 ` Herbert Xu
2015-06-21 15:36 ` Boris Brezillon
2015-06-22 7:23 ` Boris Brezillon
2015-06-22 7:59 ` Herbert Xu
2015-06-25 0:00 ` Paul Gortmaker
2015-06-25 0:33 ` Javier Martinez Canillas
2015-06-25 8:37 ` [PATCH] crypto: mv_cesa - fix up for of_get_named_gen_pool() rename Simon Guinot
2015-06-25 15:30 ` Herbert Xu
2015-06-25 15:41 ` Paul Gortmaker
2015-06-25 15:56 ` Simon Guinot
2015-06-26 8:32 ` Herbert Xu
2015-07-25 14:51 ` [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA Gregory CLEMENT
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=20150621102418.2ea74910@bbrezillon \
--to=boris.brezillon@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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).