Re: DMA map buffer allocated in ahash_request_ctx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 9, 2018 at 8:37 PM, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote:
> 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.

Thanks Herbert/Gilad.

It means, It's perfectly fine to have array of required(For DMA)
memory in request context structure and DMA map it later on.

>
> Cheers,
> --
> Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux