Re: [PATCH V4 2/2] ARM: dts: imx7s: add snvs rtc clock

2018-02-01 Thread Shawn Guo
On Tue, Jan 09, 2018 at 05:52:06PM +0800, Anson Huang wrote: > Add i.MX7 SNVS RTC clock. > > Signed-off-by: Anson Huang Looks fine to me. Ping me when clk driver part lands mainline. Shawn

Re: [PATCH 1/3] compiler-gcc.h: Introduce __optimize function attribute

2018-02-01 Thread Ard Biesheuvel
On 1 February 2018 at 10:21, Geert Uytterhoeven wrote: > Create a new function attribute __optimize, which allows to specify an > optimization level on a per-function basis. > > Signed-off-by: Geert Uytterhoeven Acked-by: Ard Biesheuvel

Re: [PATCH 3/3] crypto: sha3-generic - Use __optimize to support old compilers

2018-02-01 Thread Ard Biesheuvel
On 1 February 2018 at 10:22, Geert Uytterhoeven wrote: > With gcc-4.1.2: > > crypto/sha3_generic.c:39: warning: ‘__optimize__’ attribute directive > ignored > > Use the newly introduced __optimize macro to fix this. > > Fixes: 83dee2ce1ae791c3 ("crypto: sha3-generic -

Re: [PATCH 2/3] compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

2018-02-01 Thread Arnd Bergmann
On Thu, Feb 1, 2018 at 12:55 PM, Geert Uytterhoeven wrote: > Hi Arnd, > > On Thu, Feb 1, 2018 at 12:46 PM, Arnd Bergmann wrote: >> On Thu, Feb 1, 2018 at 11:21 AM, Geert Uytterhoeven >> wrote: >>> Gcc versions before 4.4 do not

Re: [PATCH v3 4/5] clk: imx7d: add CAAM clock

2018-02-01 Thread Fabio Estevam
On Wed, Jan 31, 2018 at 12:00 AM, Bryan O'Donoghue wrote: > From: Rui Miguel Silva > > Add CAAM clock so that we could use the Cryptographic Acceleration and > Assurance Module (CAAM) hardware block. > > Signed-off-by: Rui Miguel Silva

Re: [PATCH v3 2/5] crypto: caam: Fix endless loop when RNG is already initialized

2018-02-01 Thread Horia Geantă
On 1/31/2018 4:00 AM, Bryan O'Donoghue wrote: > commit 1005bccd7a4a ("crypto: caam - enable instantiation of all RNG4 state > handles") introduces a control when incrementing ent_delay which contains > the following comment above it: > > /* > * If either SH were instantiated by somebody else >

Re: [PATCH 2/3] compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

2018-02-01 Thread Geert Uytterhoeven
Hi Arnd, On Thu, Feb 1, 2018 at 12:46 PM, Arnd Bergmann wrote: > On Thu, Feb 1, 2018 at 11:21 AM, Geert Uytterhoeven > wrote: >> Gcc versions before 4.4 do not recognize the __optimize__ compiler >> attribute: >> >> warning: ‘__optimize__’ attribute

Re: [PATCH 2/3] compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

2018-02-01 Thread Arnd Bergmann
On Thu, Feb 1, 2018 at 11:21 AM, Geert Uytterhoeven wrote: > Gcc versions before 4.4 do not recognize the __optimize__ compiler > attribute: > > warning: ‘__optimize__’ attribute directive ignored > > Fixes: 7375ae3a0b79ea07 ("compiler-gcc.h: Introduce __nostackprotector

Re: [PATCH v3 5/5] ARM: dts: imx7s: add CAAM device node

2018-02-01 Thread Horia Geantă
On 1/31/2018 4:00 AM, Bryan O'Donoghue wrote: > From: Rui Miguel Silva > > Add CAAM device node to the i.MX7s device tree. > > Signed-off-by: Rui Miguel Silva > Cc: Shawn Guo > Cc: Sascha Hauer > Cc:

Re: [PATCH] crypto: AF_ALG AIO - lock context IV

2018-02-01 Thread Harsh Jain
On 01-02-2018 15:55, Jonathan Cameron wrote: > On Thu, 1 Feb 2018 12:07:21 +0200 > Gilad Ben-Yossef wrote: > >> On Thu, Feb 1, 2018 at 12:04 PM, Stephan Mueller wrote: >>> Am Donnerstag, 1. Februar 2018, 10:35:07 CET schrieb Gilad Ben-Yossef: >>> >>>

Re: [PATCH] crypto: AF_ALG AIO - lock context IV

2018-02-01 Thread Jonathan Cameron
On Thu, 1 Feb 2018 12:07:21 +0200 Gilad Ben-Yossef wrote: > On Thu, Feb 1, 2018 at 12:04 PM, Stephan Mueller wrote: > > Am Donnerstag, 1. Februar 2018, 10:35:07 CET schrieb Gilad Ben-Yossef: > > > > Hi Gilad, > > > >> > > >> > Which works well for the

[PATCH 1/3] compiler-gcc.h: Introduce __optimize function attribute

2018-02-01 Thread Geert Uytterhoeven
Create a new function attribute __optimize, which allows to specify an optimization level on a per-function basis. Signed-off-by: Geert Uytterhoeven --- I assume this is supported as of gcc-4.4: - gcc version 4.3.3 (GCC): warning: ‘__optimize__’ attribute directive

[PATCH 2/3] compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

2018-02-01 Thread Geert Uytterhoeven
Gcc versions before 4.4 do not recognize the __optimize__ compiler attribute: warning: ‘__optimize__’ attribute directive ignored Fixes: 7375ae3a0b79ea07 ("compiler-gcc.h: Introduce __nostackprotector function attribute") Signed-off-by: Geert Uytterhoeven --- Can

[PATCH 3/3] crypto: sha3-generic - Use __optimize to support old compilers

2018-02-01 Thread Geert Uytterhoeven
With gcc-4.1.2: crypto/sha3_generic.c:39: warning: ‘__optimize__’ attribute directive ignored Use the newly introduced __optimize macro to fix this. Fixes: 83dee2ce1ae791c3 ("crypto: sha3-generic - rewrite KECCAK transform to help the compiler optimize") Signed-off-by: Geert Uytterhoeven

Re: [PATCH] crypto: AF_ALG AIO - lock context IV

2018-02-01 Thread Stephan Mueller
Am Donnerstag, 1. Februar 2018, 11:06:30 CET schrieb Gilad Ben-Yossef: Hi Gilad, > 2. Pointing out that the problem solved (and rightfully so) by mutex in > AF_ALG AIO implementation must exists elsewhere as well - for example > IPsec, and is probably solved there too, so if we add the flag as >

Re: [PATCH] crypto: AF_ALG AIO - lock context IV

2018-02-01 Thread Gilad Ben-Yossef
On Thu, Feb 1, 2018 at 12:04 PM, Stephan Mueller wrote: > Am Donnerstag, 1. Februar 2018, 10:35:07 CET schrieb Gilad Ben-Yossef: > > Hi Gilad, > >> > >> > Which works well for the sort of optimization I did and for hardware that >> > can do iv dependency tracking itself. If

Re: [PATCH] crypto: AF_ALG AIO - lock context IV

2018-02-01 Thread Gilad Ben-Yossef
On Thu, Feb 1, 2018 at 11:46 AM, Stephan Mueller wrote: > Am Donnerstag, 1. Februar 2018, 10:35:07 CET schrieb Gilad Ben-Yossef: > > Hi Gilad, > >> Hi, >> >> > >> > Quoting a private email from Stephan (at Stephan's suggestion) >> > >> >> What I however could fathom is that

Re: [PATCH] crypto: AF_ALG AIO - lock context IV

2018-02-01 Thread Stephan Mueller
Am Donnerstag, 1. Februar 2018, 10:35:07 CET schrieb Gilad Ben-Yossef: Hi Gilad, > > > > Which works well for the sort of optimization I did and for hardware that > > can do iv dependency tracking itself. If hardware dependency tracking was > > avilable, you would be able to queue up requests

Re: [PATCH] crypto: AF_ALG AIO - lock context IV

2018-02-01 Thread Stephan Mueller
Am Donnerstag, 1. Februar 2018, 10:35:07 CET schrieb Gilad Ben-Yossef: Hi Gilad, > Hi, > > On Wed, Jan 31, 2018 at 2:29 PM, Jonathan Cameron > > wrote: > > On Tue, 30 Jan 2018 15:51:40 + > > > > Jonathan Cameron wrote: > >> On

Re: [PATCH] crypto: AF_ALG AIO - lock context IV

2018-02-01 Thread Gilad Ben-Yossef
Hi, On Wed, Jan 31, 2018 at 2:29 PM, Jonathan Cameron wrote: > On Tue, 30 Jan 2018 15:51:40 + > Jonathan Cameron wrote: > >> On Tue, 30 Jan 2018 09:27:04 +0100 >> Stephan Müller wrote: > > A few clarifications

Re: [PATCH v2 0/4] crypto: aesni - Use zero-copy for gcm(aes) buffers that are partially contiguous

2018-02-01 Thread Steffen Klassert
On Wed, Jan 31, 2018 at 10:54:57AM -0800, Junaid Shahid wrote: > On Wed, Jan 31, 2018 at 12:13 AM, Steffen Klassert > wrote: > > > > I wonder which special usecase you have in mind that will be improved > > by your patches. > > > > This is not related to IPsec. We