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

2020-07-02 Thread Song Bao Hua (Barry Song)
r.kernel.org; > linux...@kvack.org; linux-kernel@vger.kernel.org; Linuxarm > ; Seth Jennings ; Dan > Streetman ; Vitaly Wool > Subject: Re: [PATCH v2 1/3] crypto: permit users to specify numa node of > acomp hardware > > On Tue, Jun 23, 2020 at 04:16:08PM +1200, Barry Song wrot

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

2020-07-02 Thread Herbert Xu
On Tue, Jun 23, 2020 at 04:16:08PM +1200, Barry Song wrote: > > -void *crypto_create_tfm(struct crypto_alg *alg, > - const struct crypto_type *frontend) > +void *crypto_create_tfm_node(struct crypto_alg *alg, > + const struct crypto_type *frontend, > +

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

2020-06-22 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