Re: [PATCH v2 3/3] crypto: scompress - defer allocation of scratch buffer to first use

2017-07-28 Thread Giovanni Cabiddu
On Wed, Jul 26, 2017 at 01:07:34AM +0100, Ard Biesheuvel wrote: > > > On 26 Jul 2017, at 00:36, Giovanni Cabiddu <giovanni.cabi...@intel.com> > > wrote: > > > > Hi Ard, > > > >> On Fri, Jul 21, 2017 at 04:42:38PM +0100, Ard Biesheuvel wrot

Re: [PATCH v2 3/3] crypto: scompress - defer allocation of scratch buffer to first use

2017-07-25 Thread Giovanni Cabiddu
Hi Ard, On Fri, Jul 21, 2017 at 04:42:38PM +0100, Ard Biesheuvel wrote: > +static int crypto_scomp_init_tfm(struct crypto_tfm *tfm) > +{ > + int ret; > + > + mutex_lock(_lock); > + ret = crypto_scomp_alloc_all_scratches(); > + mutex_unlock(_lock); > + > + return ret; > +} If

Re: [PATCH v3 3/4] btrfs: Add zstd support

2017-07-25 Thread Giovanni Cabiddu
Hi Nick, On Thu, Jul 20, 2017 at 10:27:42PM +0100, Nick Terrell wrote: > Add zstd compression and decompression support to BtrFS. zstd at its > fastest level compresses almost as well as zlib, while offering much > faster compression and decompression, approaching lzo speeds. Can we look at

[PATCH v2 2/2] crypto: scomp - add support for deflate rfc1950 (zlib)

2017-04-21 Thread Giovanni Cabiddu
Add scomp backend for zlib-deflate compression algorithm. This backend outputs data using the format defined in rfc1950 (raw deflate surrounded by zlib header and footer). Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/deflate.

[PATCH v2 1/2] crypto: scomp - allow registration of multiple scomps

2017-04-21 Thread Giovanni Cabiddu
Add crypto_register_scomps and crypto_unregister_scomps to allow the registration of multiple implementations with one call. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/scompress.c | 29 + include/crypto/in

[PATCH 1/2] crypto: scomp - allow registration of multiple scomps

2017-04-19 Thread Giovanni Cabiddu
Add crypto_register_scomps and crypto_unregister_scomps to allow the registration of multiple implementations with one call. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/scompress.c | 29 + include/crypto/in

[PATCH 2/2] crypto: acomp - add support for deflate rfc1950 (zlib)

2017-04-19 Thread Giovanni Cabiddu
Add scomp backend for zlib-deflate compression algorithm. This backend outputs data using the format defined in rfc1950 (raw deflate surrounded by zlib header and footer). Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/deflate.

[PATCH] crypto: acomp - replace compression known answer test

2017-04-19 Thread Giovanni Cabiddu
test for acomp compression tests rather than a known answer test. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index c

[PATCH] crypto: acomp - report scomp implementations

2017-04-19 Thread Giovanni Cabiddu
Fix crypto_has_acomp to report scomp implementations. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- include/crypto/acompress.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/crypto/acompress.h b/include/crypto/acompress.h index e328b52..39871f9

[PATCH] crypto: acomp - allow registration of multiple acomps

2017-04-19 Thread Giovanni Cabiddu
Add crypto_register_acomps and crypto_unregister_acomps to allow the registration of multiple implementations with one call. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/acompress.c | 29 + include/crypto/in

Re: [PATCH] crypto: qat - zero esram only for DH85x devices

2017-01-31 Thread Giovanni Cabiddu
Hi Herbert, On Fri, Dec 30, 2016 at 08:20:11PM +0800, Herbert Xu wrote: > On Thu, Dec 22, 2016 at 03:00:24PM +0000, Giovanni Cabiddu wrote: > > Zero embedded ram in DH85x devices. This is not > > needed for newer generations as it is done by HW. > > > > Sign

[PATCH] crypto: qat - increase number of supported devices

2016-12-22 Thread Giovanni Cabiddu
From: Xin Zeng <xin.z...@intel.com> The unsigned long type for init_status and start_status in service_hndl are not long enough to represent more than 64 acceleration devices. Use an array instead. Signed-off-by: Xin Zeng <xin.z...@intel.com> Signed-off-by: Giovanni Cabiddu &l

[PATCH] crypto: qat - initialize cra_flags before register into kpp

2016-12-22 Thread Giovanni Cabiddu
Initialize dh.base.cra_flags before registering the dh algorithm. Without this fix, the registration of the dh algorithm might fail if the qat driver is restarted. Signed-off-by: Sushil Kumar <sushilx.ku...@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com>

[PATCH] crypto: qat - modify format of dev top level debugfs entries

2016-12-22 Thread Giovanni Cabiddu
From: Pablo Marcos Oltra <pablo.marcos.ol...@intel.com> Remove leading zeros in pci function number to be consistent with output from lspci. Signed-off-by: Pablo Marcos Oltra <pablo.marcos.ol...@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> ---

[PATCH] crypto: qat - fix bar discovery for c62x

2016-12-22 Thread Giovanni Cabiddu
Some accelerators of the c62x series have only two bars. This patch skips BAR0 if the accelerator does not have it. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_c62x/adf_drv.c | 2 +- drivers/crypto/qat/qat_common/adf_accel_devices

[PATCH] crypto: qat - zero esram only for DH85x devices

2016-12-22 Thread Giovanni Cabiddu
Zero embedded ram in DH85x devices. This is not needed for newer generations as it is done by HW. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_common/qat_hal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cryp

[PATCH] crypto: qat - replace hardcoded BIT(0) in vf_isr

2016-12-22 Thread Giovanni Cabiddu
Replace BIT(0) macro with proper definition in pf2vf path Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_common/adf_vf_isr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/qat/qat_common/adf_vf_isr.c b/d

[PATCH] crypto: qat - fix comments describing adf_disable_sriov()

2016-12-22 Thread Giovanni Cabiddu
From: Ahsan Atta <ahsan.a...@intel.com> Signed-off-by: Ahsan Atta <ahsan.a...@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_common/adf_sriov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

[PATCH] crypto: qat - fix indentation

2016-12-22 Thread Giovanni Cabiddu
From: Ahsan Atta <ahsan.a...@intel.com> Signed-off-by: Ahsan Atta <ahsan.a...@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_common/adf_dev_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cry

Re: [PATCH] crypto: acomp: export all scomp interfaces

2016-10-27 Thread Giovanni Cabiddu
Hi Arnd, On Thu, Oct 27, 2016 at 04:09:49PM +0200, Arnd Bergmann wrote: > The newly added scomp/acomp interface has a couple of functions > that should be exported to allow linking the two drivers > as loadable modules: > > ERROR: "crypto_acomp_scomp_free_ctx" [crypto/acompress.ko] undefined! >

Re: linux-next: Tree for Oct 26 (crypto/acompress.ko)

2016-10-26 Thread Giovanni Cabiddu
Hi, On Wed, Oct 26, 2016 at 07:54:00PM -0400, Paul Gortmaker wrote: > So, no EXPORT_SYMBOL, and any .config which has ACOMP2=m will fail. I sent a patch for this: https://patchwork.kernel.org/patch/9396503/ Regards, -- Giovanni -- To unsubscribe from this list: send the line "unsubscribe

Re: [cryptodev:master 41/47] ERROR: "crypto_acomp_scomp_free_ctx" [crypto/acompress.ko] undefined!

2016-10-26 Thread Giovanni Cabiddu
scomp that appears when acomp is built as module Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index 5c83f3d..82ffeee 100644 --- a/crypto/Makefile +++

[PATCH v10 3/8] crypto: acomp - add support for lzo via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for lzo compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lzo.c | 97 +- 2 files changed, 83 insertions(+), 15 deletions(-) diff --git a/crypto/K

[PATCH v10 4/8] crypto: acomp - add support for lz4 via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for lz4 compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lz4.c | 91 +++--- 2 files changed, 82 insertions(+), 10 deletions(-) diff --git a/crypto/K

[PATCH v10 5/8] crypto: acomp - add support for lz4hc via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for lz4hc compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lz4hc.c | 92 +++--- 2 files changed, 83 insertions(+), 10 deletions(-) diff --git a/

[PATCH v10 8/8] crypto: acomp - update testmgr with support for acomp

2016-10-21 Thread Giovanni Cabiddu
Add tests to the test manager for algorithms exposed through acomp. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 158 ++- 1 file changed, 145 insertions(+), 13 deletions(-) diff --git a/crypto/testm

[PATCH v10 2/8] crypto: add driver-side scomp interface

2016-10-21 Thread Giovanni Cabiddu
Add a synchronous back-end (scomp) to acomp. This allows to easily expose the already present compression algorithms in LKCF via acomp. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Makefile | 1 + crypto/acompress.c

[PATCH v10 0/8] crypto: asynchronous compression api

2016-10-21 Thread Giovanni Cabiddu
compressors --- Giovanni Cabiddu (8): crypto: add asynchronous compression api crypto: add driver-side scomp interface crypto: acomp - add support for lzo via scomp crypto: acomp - add support for lz4 via scomp crypto: acomp - add support for lz4hc via scomp crypto: acomp - add support for 842

[PATCH v10 6/8] crypto: acomp - add support for 842 via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for 842 compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/842.c | 81 -- crypto/Kconfig | 1 + 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/crypto/8

[PATCH v10 7/8] crypto: acomp - add support for deflate via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for deflate compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/deflate.c | 111 ++- 2 files changed, 102 insertions(+), 10 deletions(-) diff --git a/

[PATCH v10 1/8] crypto: add asynchronous compression api

2016-10-21 Thread Giovanni Cabiddu
Add acomp, an asynchronous compression api that uses scatterlist buffers. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 10 ++ crypto/Makefile | 2 + crypto/acompress.c | 118 +++

[PATCH v9 8/8] crypto: acomp - update testmgr with support for acomp

2016-09-29 Thread Giovanni Cabiddu
Add tests to the test manager for algorithms exposed through acomp. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 158 ++- 1 file changed, 145 insertions(+), 13 deletions(-) diff --git a/crypto/testm

[PATCH v9 6/8] crypto: acomp - add support for 842 via scomp

2016-09-29 Thread Giovanni Cabiddu
Add scomp backend for 842 compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/842.c | 81 -- crypto/Kconfig | 1 + 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/crypto/8

[PATCH v9 5/8] crypto: acomp - add support for lz4hc via scomp

2016-09-29 Thread Giovanni Cabiddu
Add scomp backend for lz4hc compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lz4hc.c | 92 +++--- 2 files changed, 83 insertions(+), 10 deletions(-) diff --git a/

[PATCH v9 3/8] crypto: acomp - add support for lzo via scomp

2016-09-29 Thread Giovanni Cabiddu
Add scomp backend for lzo compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lzo.c | 97 +- 2 files changed, 83 insertions(+), 15 deletions(-) diff --git a/crypto/K

[PATCH v9 2/8] crypto: add driver-side scomp interface

2016-09-29 Thread Giovanni Cabiddu
Add a synchronous back-end (scomp) to acomp. This allows to easily expose the already present compression algorithms in LKCF via acomp. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Makefile | 1 + crypto/acompress.c

[PATCH v9 4/8] crypto: acomp - add support for lz4 via scomp

2016-09-29 Thread Giovanni Cabiddu
Add scomp backend for lz4 compression algorithm. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lz4.c | 91 +++--- 2 files changed, 82 insertions(+), 10 deletions(-) diff --git a/crypto/K

[PATCH v9 0/8] crypto: asynchronous compression api

2016-09-29 Thread Giovanni Cabiddu
to allocate compression and decompression requests Changes from initial submit: - added consumed and produced fields to acomp_req - extended api to support configuration of deflate compressors --- Giovanni Cabiddu (8): crypto: add asynchronous compression api crypto: add driver

Re: [PATCH v7 4/9] crypto: acomp - add support for lzo via scomp

2016-09-26 Thread Giovanni Cabiddu
On Fri, Sep 23, 2016 at 11:05:18PM +0800, Herbert Xu wrote: > When I said acomp layer I'm referring specifically to the algorithm > or driver. As to your last question it would be the caller's > responsibility to free that memory. > > The use-case is our oldest user, IPcomp. Most packets are

Re: [PATCH v7 4/9] crypto: acomp - add support for lzo via scomp

2016-09-22 Thread Giovanni Cabiddu
On Thu, Sep 22, 2016 at 05:22:44PM +0800, Herbert Xu wrote: > I'm suggesting that we have just one set of buffers for all scomp > algorithms. After all, a CPU can only process one request at a > time. Makes sense. Implemented in v8. > Yes scomp should just be flat. A sync algorithm capable of

[PATCH v8 7/8] crypto: acomp - add support for deflate via scomp

2016-09-22 Thread Giovanni Cabiddu
Add scomp backend for deflate compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/deflate.c | 111 ++- 2 files changed, 102 insertions(+), 10 deletions(-) diff --git a/

[PATCH v8 4/8] crypto: acomp - add support for lz4 via scomp

2016-09-22 Thread Giovanni Cabiddu
Add scomp backend for lz4 compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lz4.c | 91 +++--- 2 files changed, 82 insertions(+), 10 deletions(-) diff --git a/crypto/K

[PATCH v8 8/8] crypto: acomp - update testmgr with support for acomp

2016-09-22 Thread Giovanni Cabiddu
Add tests to the test manager for algorithms exposed through acomp Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 158 ++- 1 file changed, 145 insertions(+), 13 deletions(-) diff --git a/crypto/testm

[PATCH v8 6/8] crypto: acomp - add support for 842 via scomp

2016-09-22 Thread Giovanni Cabiddu
Add scomp backend for 842 compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/842.c | 81 -- crypto/Kconfig | 1 + 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/crypto/8

[PATCH v8 5/8] crypto: acomp - add support for lz4hc via scomp

2016-09-22 Thread Giovanni Cabiddu
Add scomp backend for lz4hc compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lz4hc.c | 92 +++--- 2 files changed, 83 insertions(+), 10 deletions(-) diff --git a/

[PATCH v8 2/8] crypto: add driver-side scomp interface

2016-09-22 Thread Giovanni Cabiddu
Add a synchronous back-end (scomp) to acomp. This allows to easily expose the already present compression algorithms in LKCF via acomp Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Makefile | 1 + crypto/acompress.c

[PATCH v8 3/8] crypto: acomp - add support for lzo via scomp

2016-09-22 Thread Giovanni Cabiddu
Add scomp backend for lzo compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 1 + crypto/lzo.c | 97 +- 2 files changed, 83 insertions(+), 15 deletions(-) diff --git a/crypto/K

[PATCH v8 1/8] crypto: add asynchronous compression api

2016-09-22 Thread Giovanni Cabiddu
Add acomp, an asynchronous compression api that uses scatterlist buffers Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 10 ++ crypto/Makefile | 2 + crypto/acompress.c | 118

[PATCH v8 0/8] crypto: asynchronous compression api

2016-09-22 Thread Giovanni Cabiddu
in acomp_alg in order to enable noctx support - extended api with helpers to allocate compression and decompression requests Changes from initial submit: - added consumed and produced fields to acomp_req - extended api to support configuration of deflate compressors --- Giovanni

Re: [PATCH v7 4/9] crypto: acomp - add support for lzo via scomp

2016-09-20 Thread Giovanni Cabiddu
Hi Herbert, apologies for the duplicate. The previous email didn't get delivered to the ML. On Tue, Sep 20, 2016 at 05:26:18PM +0800, Herbert Xu wrote: > Rather than duplicating the scratch buffer handling in every scomp > algorithm, let's centralize this and put it into scomp.c. Are you

[PATCH v7 4/9] crypto: acomp - add support for lzo via scomp

2016-09-13 Thread Giovanni Cabiddu
Add scomp backend for lzo compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lzo.c | 146 +++- 2 files changed, 134 insertions(+), 13 deletions(-) diff --git a/

[PATCH v7 7/9] crypto: acomp - add support for 842 via scomp

2016-09-13 Thread Giovanni Cabiddu
Add scomp backend for 842 compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/842.c | 135 +++- crypto/Kconfig |1 + 2 files changed, 134 insertions(+), 2 deletions(-) diff --git a/crypto

[PATCH v7 5/9] crypto: acomp - add support for lz4 via scomp

2016-09-13 Thread Giovanni Cabiddu
Add scomp backend for lz4 compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4.c | 147 2 files changed, 138 insertions(+), 10 deletions(-) diff --git a/

[PATCH v7 1/9] crypto: add asynchronous compression api

2016-09-13 Thread Giovanni Cabiddu
Add acomp, an asynchronous compression api that uses scatterlist buffers Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 10 ++ crypto/Makefile |2 + crypto/acompress.c

[PATCH v7 9/9] crypto: acomp - update testmgr with support for acomp

2016-09-13 Thread Giovanni Cabiddu
Add tests to the test manager for algorithms exposed through the acomp api Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 158 +- 1 files changed, 145 insertions(+), 13 deletions(-) diff --git a/

[PATCH v7 6/9] crypto: acomp - add support for lz4hc via scomp

2016-09-13 Thread Giovanni Cabiddu
Add scomp backend for lz4hc compression algorithm Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4hc.c | 147 2 files changed, 138 insertions(+), 10 deletions(-) diff --git a/

[PATCH v7 3/9] crypto: scomp - add scratch buffers allocator and deallocator

2016-09-13 Thread Giovanni Cabiddu
Add utility functions to allocate and deallocate scratch buffers used by software implementations of scomp Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/scompress.c | 41 +++ include/crypto/internal/scompress.h

Re: [PATCH v2 2/2] crypto: qat - fix resource release omissions

2016-09-06 Thread Giovanni Cabiddu
uc loader. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_common/qat_uclo.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/qat/qat_common/qat_uclo.c b/drivers/crypto/qat/qat_common/qat_uclo.c index

[PATCH] crypto: qat - fix incorrect accelerator mask for C3X devices

2016-08-30 Thread Giovanni Cabiddu
From: Maksim Lukoshkov <maksim.lukosh...@intel.com> Fix incorrect value of ADF_C3XXX_ACCELERATORS_MASK. Signed-off-by: Maksim Lukoshkov <maksim.lukosh...@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_d

[PATCH] crypto: qat - fix constants table DMA

2016-08-29 Thread Giovanni Cabiddu
From: Maksim Lukoshkov <maksim.lukosh...@intel.com> Copy const_tab array into DMA-able memory (accesible by qat hw). Signed-off-by: Maksim Lukoshkov <maksim.lukosh...@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_common/

[PATCH] crypto: qat - fix aes-xts key sizes

2016-08-18 Thread Giovanni Cabiddu
Increase value of supported key sizes for qat_aes_xts. aes-xts keys consists of keys of equal size concatenated. Reported-by: Wenqian Yu <wenqian...@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- drivers/crypto/qat/qat_common/qat_algs.c |4 ++-- 1 f

Re: [PATCH v6 2/8] crypto: add driver-side scomp interface

2016-06-28 Thread Giovanni Cabiddu
On Fri, Jun 24, 2016 at 05:26:43PM +0800, Herbert Xu wrote: > Hmm, I guess we can still keep scomp and use vmalloc until someone > spends the effort and optimises each algorithm to make them use acomp > directly. Ok. > So I'd still like to move the allocation down into the algorithm. > That way

Re: [PATCH v6 2/8] crypto: add driver-side scomp interface

2016-06-24 Thread Giovanni Cabiddu
On Thu, Jun 23, 2016 at 06:50:34PM +0800, Herbert Xu wrote: > No that's not the problem. The problem is that you can't kmalloc > 64K of memory. kmalloc requires physically contiguous memory and > you cannot rely on having 64K of contiguous memory. It is clear now. Thanks. > > > This totally

[PATCH v6 5/8] crypto: acomp - add support for lz4hc via scomp

2016-06-08 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lz4hc compression algorithm. This way, lz4hc is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4hc.c | 92 +---

[PATCH v6 4/8] crypto: acomp - add support for lz4 via scomp

2016-06-08 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lz4 compression algorithm. This way, lz4 is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4.c | 91 +---

[PATCH v6 7/8] crypto: acomp - add support for deflate via scomp

2016-06-08 Thread Giovanni Cabiddu
This patch implements an scomp backend for the deflate compression algorithm. This way, deflate is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/deflate.c

[PATCH v6 8/8] crypto: acomp - update testmgr with support for acomp

2016-06-08 Thread Giovanni Cabiddu
This patch adds tests to the test manager for algorithms exposed through the acomp api Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 158 +- 1 files changed, 145 insertions(+), 13 deletions(-) diff

[PATCH v6 6/8] crypto: acomp - add support for 842 via scomp

2016-06-08 Thread Giovanni Cabiddu
This patch implements an scomp backend for the 842 compression algorithm. This way, 842 is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/842.c | 82 +-- crypto/Kconfig |

[PATCH v6 2/8] crypto: add driver-side scomp interface

2016-06-08 Thread Giovanni Cabiddu
Add a synchronous back-end (scomp) to acomp. This allows to easily expose the already present compression algorithms in LKCF via acomp Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Makefile |1 + crypto/acompress.c

[PATCH v6 1/8] crypto: add asynchronous compression api

2016-06-08 Thread Giovanni Cabiddu
This patch introduces acomp, an asynchronous compression api that uses scatterlist buffers. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 10 ++ crypto/Makefile |2 + crypto/acompress.c

[PATCH v6 0/8] crypto: asynchronous compression api

2016-06-08 Thread Giovanni Cabiddu
requests Changes from initial submit: - added consumed and produced fields to acomp_req - extended api to support configuration of deflate compressors --- Giovanni Cabiddu (8): crypto: add asynchronous compression api crypto: add driver-side scomp interface crypto: acomp - add

[PATCH v6 3/8] crypto: acomp - add support for lzo via scomp

2016-06-08 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lzo compression algorithm. This way, lzo is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lzo.c | 97 +++--

[PATCH v5 0/9] crypto: asynchronous compression api

2016-06-02 Thread Giovanni Cabiddu
of deflate compressors Giovanni Cabiddu (9): crypto: shrink hash down to two types crypto: add asynchronous compression api crypto: add driver-side scomp interface crypto: acomp - add support for lzo via scomp crypto: acomp - add support for lz4 via scomp crypto: acomp - add support

[PATCH v5 8/9] crypto: acomp - add support for deflate via scomp

2016-06-02 Thread Giovanni Cabiddu
This patch implements an scomp backend for the deflate compression algorithm. This way, deflate is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/deflate.c

[PATCH v5 2/9] crypto: add asynchronous compression api

2016-06-02 Thread Giovanni Cabiddu
This patch introduces acomp, an asynchronous compression api that uses scatterlist buffers. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 10 ++ crypto/Makefile |2 + crypto/acompress.c

[PATCH v5 3/9] crypto: add driver-side scomp interface

2016-06-02 Thread Giovanni Cabiddu
Add a synchronous back-end (scomp) to acomp. This allows to easily expose the already present compression algorithms in LKCF via acomp Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Makefile |1 + crypto/acompress.c

[PATCH v5 1/9] crypto: shrink hash down to two types

2016-06-02 Thread Giovanni Cabiddu
Move hash to 0xe to free up the space for acomp/scomp Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- include/linux/crypto.h | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 6e28c89..d

[PATCH v5 7/9] crypto: acomp - add support for 842 via scomp

2016-06-02 Thread Giovanni Cabiddu
This patch implements an scomp backend for the 842 compression algorithm. This way, 842 is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/842.c | 82 +-- crypto/Kconfig |

[PATCH v5 5/9] crypto: acomp - add support for lz4 via scomp

2016-06-02 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lz4 compression algorithm. This way, lz4 is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4.c | 91 +---

[PATCH v5 9/9] crypto: acomp - update testmgr with support for acomp

2016-06-02 Thread Giovanni Cabiddu
This patch adds tests to the test manager for algorithms exposed through the acomp api Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 158 +- 1 files changed, 145 insertions(+), 13 deletions(-) diff

[PATCH v4 01/10] crypto: shrink hash down to two types

2016-05-31 Thread Giovanni Cabiddu
Move hash to 0xe to free up the space for acomp/scomp/qdecomp Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- include/linux/crypto.h | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 6

[PATCH v4 05/10] crypto: acomp - add support for lzo via scomp

2016-05-31 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lzo compression algorithm. This way, lzo is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lzo.c | 97 +++--

[PATCH v4 09/10] crypto: acomp - add support for deflate via scomp

2016-05-31 Thread Giovanni Cabiddu
This patch implements an scomp backend for the deflate compression algorithm. This way, deflate is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/deflate.c

[PATCH v4 02/10] crypto: add asynchronous compression api

2016-05-31 Thread Giovanni Cabiddu
This patch introduces acomp, an asynchronous compression api that uses scatterlist buffers. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 10 ++ crypto/Makefile |2 + crypto/acompress.c

[PATCH v4 04/10] crypto: add quick decompression api

2016-05-31 Thread Giovanni Cabiddu
This patch introduces qdecomp, an asynchronous decompression api. qdecomp is a front-end for acomp and scomp algorithms which do not not need additional vmalloc work space for decompression. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Ma

[PATCH v4 08/10] crypto: acomp - add support for 842 via scomp

2016-05-31 Thread Giovanni Cabiddu
This patch implements an scomp backend for the 842 compression algorithm. This way, 842 is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/842.c | 82 +-- crypto/Kconfig |

[PATCH v4 07/10] crypto: acomp - add support for lz4hc via scomp

2016-05-31 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lz4hc compression algorithm. This way, lz4hc is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4hc.c | 92 +---

[PATCH v4 00/10] crypto: asynchronous compression api

2016-05-31 Thread Giovanni Cabiddu
--- Giovanni Cabiddu (10): crypto: shrink hash down to two types crypto: add asynchronous compression api crypto: add driver-side scomp interface crypto: add quick decompression api crypto: acomp - add support for lzo via scomp crypto: acomp - add support for lz4 via scomp crypto

[PATCH v4 03/10] crypto: add driver-side scomp interface

2016-05-31 Thread Giovanni Cabiddu
Add a synchronous back-end (scomp) to acomp. This allows to easily expose the already present compression algorithms in LKCF via acomp Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Makefile |1 + crypto/acompress.c

[PATCH v4 06/10] crypto: acomp - add support for lz4 via scomp

2016-05-31 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lz4 compression algorithm. This way, lz4 is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4.c | 91 +---

[PATCH v4 10/10] crypto: acomp - update testmgr with support for acomp

2016-05-31 Thread Giovanni Cabiddu
This patch adds tests to the test manager for algorithms exposed through the acomp api Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 158 +- 1 files changed, 145 insertions(+), 13 deletions(-) diff

Re: [PATCH v3 2/8] crypto: add driver-side scomp interface

2016-03-19 Thread Giovanni Cabiddu
Hi Herbert, I would like to have some clarifications before submitting a v4. On Thu, Mar 17, 2016 at 07:00:27PM +0800, Herbert Xu wrote: > On Wed, Feb 24, 2016 at 05:51:44PM +0000, Giovanni Cabiddu wrote: > > > > +#define CRYPTO_SCOMP_DECOMP_NOCTX CRYPTO_ALG_PRIVATE >

[PATCH v3 5/8] crypto: acomp - add support for lz4hc via scomp

2016-02-24 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lz4hc compression algorithm. This way, lz4hc is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4hc.c

[PATCH v3 2/8] crypto: add driver-side scomp interface

2016-02-24 Thread Giovanni Cabiddu
Add a synchronous back-end (scomp) to acomp. This allows to easily expose the already present compression algorithms in LKCF via acomp. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Makefile |1 + crypto/acompress.c

[PATCH v3 8/8] crypto: acomp - update testmgr with support for acomp

2016-02-24 Thread Giovanni Cabiddu
This patch adds tests to the test manager for algorithms exposed through the acomp api Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/testmgr.c | 159 +- 1 files changed, 146 insertions(+), 13 deletions(-) diff

[PATCH v3 4/8] crypto: acomp - add support for lz4 via scomp

2016-02-24 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lz4 compression algorithm. This way, lz4 is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lz4.c | 93 ++---

[PATCH v3 0/8] crypto: asynchronous compression api

2016-02-24 Thread Giovanni Cabiddu
in order to enable noctx support - extended api with helpers to allocate compression and decompression requests Changes from initial submit: - added consumed and produced fields to acomp_req - extended api to support configuration of deflate compressors --- Giovanni Cabiddu (8

[PATCH v3 1/8] crypto: add asynchronous compression api

2016-02-24 Thread Giovanni Cabiddu
This patch introduces acomp, an asynchronous compression api that uses scatterlist buffers. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig | 10 + crypto/Makefile |2 + crypto/acompress.c

[PATCH v3 3/8] crypto: acomp - add support for lzo via scomp

2016-02-24 Thread Giovanni Cabiddu
This patch implements an scomp backend for the lzo compression algorithm. This way, lzo is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/Kconfig |1 + crypto/lzo.c | 100 +++-

[PATCH v3 6/8] crypto: acomp - add support for 842 via scomp

2016-02-24 Thread Giovanni Cabiddu
This patch implements an scomp backend for the 842 compression algorithm. This way, 842 is exposed through the acomp api. Signed-off-by: Giovanni Cabiddu <giovanni.cabi...@intel.com> --- crypto/842.c | 84 ++-- crypto/Kconfig |

  1   2   >