Re: [PATCH v2] crypto: vmx - Fix sleep-in-atomic bugs

2018-08-24 Thread Paulo Flabiano Smorigo
On 2018-08-23 17:34, Paulo Flabiano Smorigo wrote: On 2018-08-22 21:04, Marcelo Henrique Cerri wrote: That looks good to me. Maybe Paulo can help testing it. -- Regards, Marcelo On Wed, Aug 22, 2018 at 08:26:31AM +0200, Ondrej Mosnacek wrote: This patch fixes sleep-in-atomic bugs in AES-CBC

Re: [PATCH v2] crypto: vmx - Fix sleep-in-atomic bugs

2018-08-23 Thread Paulo Flabiano Smorigo
disable_kernel_vsx(); - pagefault_enable(); - preempt_enable(); } return ret; } -- 2.17.1 Sure thing. I'll test it later today. Thanks Ondrej for the fix. -- Paulo Flabiano Smorigo IBM Linux Technology Center

[PATCH] crypto: vmx - Use skcipher for ctr fallback

2017-10-16 Thread Paulo Flabiano Smorigo
Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aes_ctr.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/drivers/crypto/vmx/aes_ctr.c b/drivers/crypto/vmx/aes_ctr.c index 17d8421..fc60d00

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-30 Thread Paulo Flabiano Smorigo
ontexts." [1] https://patchwork.kernel.org/patch/6027481/ -- Paulo Flabiano Smorigo IBM Linux Technology Center

[PATCH v3 2/2] crypto: vmx - Use skcipher for xts fallback

2017-03-01 Thread Paulo Flabiano Smorigo
Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aes_xts.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/crypto/vmx/aes_xts.c b/drivers/crypto/vmx/aes_xts.c index 24353ec3..6adc929

[PATCH v3 1/2] crypto: vmx - Use skcipher for cbc fallback

2017-03-01 Thread Paulo Flabiano Smorigo
Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aes_cbc.c | 47 ++-- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/drivers/crypto/vmx/aes_cbc.c b/drivers/crypto/vmx/aes_cbc.c index 9

[PATCH v2 1/2] crypto: vmx - Use skcipher for cbc fallback

2017-02-24 Thread Paulo Flabiano Smorigo
Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aes_cbc.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/crypto/vmx/aes_cbc.c b/drivers/crypto/vmx/aes_cbc.c index 9

[PATCH v2 2/2] crypto: vmx - Use skcipher for xts fallback

2017-02-24 Thread Paulo Flabiano Smorigo
Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aes_xts.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/crypto/vmx/aes_xts.c b/drivers/crypto/vmx/aes_xts.c index 24353ec3..a1e653a

[PATCH 2/2] crypto: vmx - Use skcipher for xts fallback

2017-02-22 Thread Paulo Flabiano Smorigo
Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aes_xts.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/drivers/crypto/vmx/aes_xts.c b/drivers/crypto/vmx/aes_xts.c index 24353ec3..a8245e1

[PATCH 1/2] crypto: vmx - Use skcipher for cbc fallback

2017-02-22 Thread Paulo Flabiano Smorigo
Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aes_cbc.c | 41 - 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/drivers/crypto/vmx/aes_cbc.c b/drivers/crypto/vmx/aes_cbc.c index 94ad5c0..5a

[PATCH 0/2] crypto: vmx - fix vmx failures by changing fallback to skcipher

2017-02-22 Thread Paulo Flabiano Smorigo
Currently, neither cbc or xts are working with upstream kernel due to a failure in the fallback allocation. This can be fixed by changing the fallback to skcipher. Paulo Flabiano Smorigo (2): crypto: vmx - Use skcipher for cbc fallback crypto: vmx - Use skcipher for xts fallback drivers

Re: [bug] crypto/vmx/p8_ghash memory corruption in 4.8-rc7

2016-09-28 Thread Paulo Flabiano Smorigo
eric is the only posible fallback for ppc, I think that's a good solution. :) > > Thanks, > -- > Email: Herbert Xu <herb...@gondor.apana.org.au> > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt > -- Paulo Flabiano Smorigo IBM Linux Technology Center

Re: [PATCH] crypto: sha1-powerpc: little-endian support

2016-09-26 Thread Paulo Flabiano Smorigo
\ > add RT(t),RT(t),r6; \ > add r14,r0,W(t);\ > - lwz W((t)+4),((t)+4)*4(r4); \ > + LWZ(W((t)+4),((t)+4)*4,r4); \ > rotlwi RB(t),RB(t),30; \ > add RT(t),RT(t),r14 > > -- > 2.7.4 > -- Paulo Flabiano Smorigo IBM Linux Technology Center

[PATCH] crypto: vmx - Ignore generated files

2016-07-19 Thread Paulo Flabiano Smorigo
Ignore assembly files generated by the perl script. Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 drivers/crypto/vmx/.gitignore diff --git a/drivers/crypto/vmx/.gitig

[PATCH v2 2/2] crypto: vmx - Adding support for XTS

2016-07-18 Thread Paulo Flabiano Smorigo
From: "Leonidas S. Barbosa" <leosi...@linux.vnet.ibm.com> This patch add XTS support using VMX-crypto driver. Signed-off-by: Leonidas S. Barbosa <leosi...@linux.vnet.ibm.com> Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx

[PATCH v2 1/2] crypto: vmx - Adding asm subroutines for XTS

2016-07-18 Thread Paulo Flabiano Smorigo
m> Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aesp8-ppc.h |4 + drivers/crypto/vmx/aesp8-ppc.pl | 1865 ++- 2 files changed, 1867 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/vmx/aes

Re: [PATCH 1/2] crypto: vmx - Adding asm subroutines for XTS

2016-07-13 Thread Paulo Flabiano Smorigo
Thu, Jul 14, 2016 at 01:11:58AM +1000, Stephen Rothwell wrote: > Hi Paulo, > > On Wed, 13 Jul 2016 10:34:27 -0300 Paulo Flabiano Smorigo > <pfsmor...@linux.vnet.ibm.com> wrote: > > > > Wed, Jul 13, 2016 at 01:05:03PM +1000, Stewart Smith wrote: > > >

Re: [PATCH 1/2] crypto: vmx - Adding asm subroutines for XTS

2016-07-13 Thread Paulo Flabiano Smorigo
Wed, Jul 13, 2016 at 01:05:03PM +1000, Stewart Smith wrote: > Stephen Rothwell <s...@canb.auug.org.au> writes: > > On Mon, 11 Jul 2016 16:07:39 -0300 Paulo Flabiano Smorigo > > <pfsmor...@linux.vnet.ibm.com> wrote: > >> > >> diff --git a/drivers/crypt

[PATCH 2/2] crypto: vmx - Adding support for XTS

2016-07-11 Thread Paulo Flabiano Smorigo
From: "Leonidas S. Barbosa" <leosi...@linux.vnet.ibm.com> This patch add XTS support using VMX-crypto driver. Signed-off-by: Leonidas S. Barbosa <leosi...@linux.vnet.ibm.com> Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx

[PATCH 1/2] crypto: vmx - Adding asm subroutines for XTS

2016-07-11 Thread Paulo Flabiano Smorigo
m> Signed-off-by: Paulo Flabiano Smorigo <pfsmor...@linux.vnet.ibm.com> --- drivers/crypto/vmx/aesp8-ppc.h |4 + drivers/crypto/vmx/aesp8-ppc.pl | 1865 ++- 2 files changed, 1867 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/vmx/aes