Re: [PATCH] crypto: caam - Remove broken arc4 support

2020-07-05 Thread Horia Geantă
On 7/2/2020 7:36 AM, Herbert Xu wrote: > The arc4 algorithm requires storing state in the request context > in order to allow more than one encrypt/decrypt operation. As this > driver does not seem to do that, it means that using it for more > than one operation is broken. > The fact that smth. i

Re: [PATCH v3 12/13] crypto: sahara - permit asynchronous skcipher as fallback

2020-07-05 Thread Horia Geantă
On 6/30/2020 3:20 PM, Ard Biesheuvel wrote: > Even though the sahara driver implements asynchronous versions of > ecb(aes) and cbc(aes), the fallbacks it allocates are required to be > synchronous. Given that SIMD based software implementations are usually > asynchronous as well, even though they r

Re: [PATCH v3 09/13] crypto: mxs-dcp - permit asynchronous skcipher as fallback

2020-07-05 Thread Horia Geantă
On 6/30/2020 3:20 PM, Ard Biesheuvel wrote: > Even though the mxs-dcp driver implements asynchronous versions of > ecb(aes) and cbc(aes), the fallbacks it allocates are required to be > synchronous. Given that SIMD based software implementations are usually > asynchronous as well, even though they

[PATCH v3 2/3] crypto: hisilicon/zip - permit users to specify NUMA node

2020-07-05 Thread Barry Song
If users don't specify NUMA node, the driver will use the ZIP module near the CPU allocating acomp. Otherwise, it uses the ZIP module according to the requirement of users. Cc: Zhou Wang Signed-off-by: Barry Song --- drivers/crypto/hisilicon/zip/zip.h| 2 +- drivers/crypto/hisilicon/zip

[PATCH v3 0/3] crypto: allow users to specify acomp hardware from a desired NUMA node

2020-07-05 Thread Barry Song
For a typical Linux server, probably there are multiple ZIP modules. For example, numa node0 has a compressor, numa node2 has a same module. Some drivers are automatically using the module near the CPU calling acomp_alloc. But it isn't necessarily correct. Just like memory allocation API like kmall

[PATCH v3 3/3] mm/zswap: allocate acomp on the numa node committing acomp_req

2020-07-05 Thread Barry Song
zswap is allocating acomp on one different cpu with those cpus which will eventually committing acomp_req. this patch specifies the numa node to help compression/decompression done by local (de)compressors hardware. Cc: Seth Jennings Cc: Dan Streetman Cc: Vitaly Wool Cc: Herbert Xu Cc: David S

[PATCH v3 1/3] crypto: permit users to specify numa node of acomp hardware

2020-07-05 Thread Barry Song
For a Linux server with NUMA, there are possibly multiple (de)compressors which are either local or remote to some NUMA node. Some drivers will automatically use the (de)compressor near the CPU calling acomp_alloc(). However, it is not necessarily correct because users who send acomp_req could be f