Re: crypto_shash_update & CRYPTO_TFM_REQ_MAY_SLEEP

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

 



Hi,

we have HW accelerator which can be accessed without DMA.
CPU just sequentially writes data to the port and then reads result.

But before it can read result Interrupt will happen to notify processing
completion.

Instead of looping over "ready" bit the process would just go to sleep:
wait_for_completion().

Can you please shortly tell why crypto_kmap() cannot be also like
GFP_KERNEL or GFP_ATOMIC?

Is it really important to have kmap_atomic()?

Thanks,
Dmitry


ext Herbert Xu wrote:
> On Mon, Feb 15, 2010 at 09:20:35PM +0200, Dmitry Kasatkin wrote:
>   
>> Hi,
>>
>> Alg code and drivers uses req/desc->flags to use GFP_KERNEL or GFP_ATOMIC.
>>
>> crypto_kmap() -> Does not it make a sense to also use kmap/kmap_atomic
>> instead of just kmap_atomic()?
>>     
>
> crypto_kmap is not meant for async drivers.  Why do you need it?
>
> Cheers,
>   
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

  Powered by Linux