On Wed, May 09, 2018 at 04:13:12PM +0300, Gilad Ben-Yossef wrote: > On Wed, May 9, 2018 at 3:12 PM, Harsh Jain <harshjain.prof@xxxxxxxxx> wrote: > > Hi Herbert, > > > > Can we use buffer defined in ahash request context(private space for > > each request) to DMA map it to H/W.? > > Not Herbert but... the ccree driver is doing just and Herbert > specifically indicated ahash request contexts are not allowed to be > allocated from stack (I asked) so it should be OK. That's right. For async algorithms the request must come from kmalloc memory. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt