RE: [PATCH v3] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-06-26 Thread Song Bao Hua (Barry Song)
linux...@kvack.org; > > linux-kernel@vger.kernel.org; Linuxarm ; Luis > > Claudio R . Goncalves ; Sebastian Andrzej Siewior > > ; David S . Miller ; > > Mahipal Challa ; Seth Jennings > > ; Dan Streetman ; Vitaly Wool > > ; Wangzhou (B) ; > > Coli

RE: [PATCH v3] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-06-26 Thread Song Bao Hua (Barry Song)
rg; > linux-kernel@vger.kernel.org; Linuxarm ; Luis Claudio > R . Goncalves ; Sebastian Andrzej Siewior > ; David S . Miller ; Mahipal > Challa ; Seth Jennings > ; Dan Streetman ; Vitaly Wool > ; Wangzhou (B) ; > Colin Ian King > Subject: Re: [PATCH v3] mm/zswap: move to use crypto_acomp A

Re: [PATCH v3] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-06-26 Thread Herbert Xu
On Fri, Jun 26, 2020 at 07:09:03PM +1200, Barry Song wrote: > > + mutex_lock(_ctx->mutex); > + > + src = kmap(page); > + dst = acomp_ctx->dstmem; > + sg_init_one(, src, PAGE_SIZE); > + /* zswap_dstmem is of size (PAGE_SIZE * 2). Reflect same in sg_list */ > + sg_init_one(,