On 6/6/2019 10:16 AM, Herbert Xu wrote: > On Thu, Jun 06, 2019 at 07:10:06AM +0000, Horia Geanta wrote: >> >> Not really. >> I am in favor of using the HW to update the IV, which would work for all >> skcipher algorithms. >> I have the fix ready, will send it in a couple of days. > > OK that would be interesting to see. But I presume you are still > going to do a copy after the DMA unmap since you can't do DMA to > req->iv? > Yes, an internally kmalloc-ed buffer is used for storing the IV (both input and output IV). Once HW finishes the job, area is DMA unmapped and then output IV is copied into req->iv. Regards, Horia